compile time constant to differentiate 1.5.2 from 1.5.1?

Dale Nagata dnagata at creo.com
Wed Dec 1 01:06:35 EST 1999


Hi,

Does anyone know what compile time macros can be used
to detect whether I'm compiling against 1.5.2 or 1.5.1?

I searched through the headers in a 1.5.1 distribution
and didn't see any obvious version identification macros.

I would like to be able to build a particular package (CXX)
which is sensitive to changes in the type object internals 
between 1.5.1 and 1.5.2.

For now I made up my own macro, PYTHON_VERSION_1_5_1, which
gets the job done for now, but I would like to make use of
a more "standard" technique if one is available.

Thanks in advance,


--
Dale Nagata         |  tel : +1 604.451.2700 ext. 2254 (UTC-0800)
Software Developer  |  fax : +1 604.437.9891 
Creo Products Inc.  |  pgr : +1 604.691.8279
Burnaby BC Canada   |  http://www.creo.com/




More information about the Python-list mailing list