[Distutils] Equivalent of config.h?

Denis Jasselette dionysos_13 at yahoo.fr
Wed Jun 16 00:26:18 CEST 2010


Hi,

I use the GNU Autotools when I program in C. They generate a config.h
file containing useful information such as the PACKAGE_VERSION that can
be retrieved by simply including the file. I'd like to know if there
exists anything similar with distutils. I am trying to distribute a
script where I should be able to output the current version number.

I thought that I could do things in an opposite way as in C. Rather than
having the building system to create the config.h, I could import a
config.py in my setup.py and distribute it as a py_module along with the
script.

Do you have better solutions?



More information about the Distutils-SIG mailing list