On Nov 9, 10:48 am, Christian Heimes <li...@cheimes.de> wrote: > You were looking at the wrong manual. > Readhttp://docs.python.org/distutils/setupscript.html#preprocessor-options > > Extension(..., > 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"? — Jason -- http://mail.python.org/mailman/listinfo/python-list