[Distutils] Equivalent of config.h?

Denis Jasselette dionysos_13 at yahoo.fr
Fri Jun 18 19:23:08 CEST 2010


Éric Araujo wrote : 
> There is another solution that doesn’t require the overkill of adding a
> mostly useless module or switching away from standard distutils: You can
> grep for “__version__ = ” in your script (either with real grep or a few
> lines of Python). Not sure this caters to your use case, but at least
> it’s recorded in the thread.

`overkill' is just the right term ^^. I like this solution, even though
it's a bit rough. I finally did this (using a python implementation for
portability reasons).



More information about the Distutils-SIG mailing list