On Nov 9, 10:56 am, Jason wrote:
> But can they be selected or set from the command line, so I can do,
> say, "setup.py build -DDEBUG=1"?
Just answered my own question: there's an option for "build_ext" (NOT
"build") that allows this.
Thanks,
Jason
--
http://mail.python.org/mailman/listinfo/pyt
On Nov 9, 10:48 am, Christian Heimes 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_ma
Am 09.11.2010 03:09, schrieb Jason:
> I'd like to be able switch between building my C extension with a
> certain preprocessor macro defined or not defined. I'm using the
> rudimentary distutils setup.py example given here:
>
> http://docs.python.org/extending/building.html
>
> Is there a command
I'd like to be able switch between building my C extension with a
certain preprocessor macro defined or not defined. I'm using the
rudimentary distutils setup.py example given here:
http://docs.python.org/extending/building.html
Is there a command line option that distutils.core.setup() will
inte