[SciPy-dev] Re: [Scipy-cvs] world/scipy/Lib/xplt setup_xplt.py,1.13,1.14

Pearu Peterson pearu at cens.ioc.ee
Mon Mar 10 11:15:52 CST 2003


On Mon, 10 Mar 2003, Travis N. Vaught wrote:

> Thanks, I've checked in the change.  When I track down the error on
> Python 2.1 the build breaks with this (apologies for the weird wrapping,
> $%*%$&^ windows cmd)--I'm trying again, now, with a clean build:

I see similar errors on linux as well when using Python 2.1:

gcc -g -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.1 -c
/home/users/pearu/tmp/scipy/scipy_core/scipy_base/fastumathmodule.c -o
build/temp.linux-i686-2.1/fastumathmodule.o
In file included from
/home/users/pearu/tmp/scipy/scipy_core/scipy_base/fastumathmodule.c:29:
/home/users/pearu/tmp/scipy/scipy_core/scipy_base/fastumath_nounsigned.inc: In
function `InitOperators':
/home/users/pearu/tmp/scipy/scipy_core/scipy_base/fastumath_nounsigned.inc:2418: 
`PyNumber_TrueDivide' undeclared (first use in this function)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

As a fix, we can disable Python 2.2 specific code using

#if PY_VERSION_HEX >= 0x2020000
..
#endif

(see include/python<version>/patchlevel.h for details)

Pearu




More information about the Scipy-dev mailing list