Define macro when invoking

Jason jason.heeris at
Tue Nov 9 03:56:06 CET 2010

On Nov 9, 10:48 am, Christian Heimes <li... at> wrote:
> You were looking at the wrong manual. Read
> 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, " build -DDEBUG=1"?

— Jason

More information about the Python-list mailing list