Define macro when invoking setup.py
jason.heeris at gmail.com
Tue Nov 9 03:56:06 CET 2010
On Nov 9, 10:48 am, Christian Heimes <li... at cheimes.de> wrote:
> You were looking at the wrong manual. Readhttp://docs.python.org/distutils/setupscript.html#preprocessor-options
> define_macros=[('NDEBUG', '1'),
> ('HAVE_STRFTIME', None)],
> undef_macros=['HAVE_FOO', 'HAVE_BAR'])
> Note that define_macros requires a list of tuples each having two members.
But can they be selected or set from the command line, so I can do,
say, "setup.py build -DDEBUG=1"?
More information about the Python-list