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

Travis N. Vaught travis at enthought.com
Mon Mar 10 08:06:56 CST 2003


Pearu,

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:

C:\temp\2.1\scipy>c:\mingw\bin\gcc.exe -mno-cygwin -mdll -O -Wall
-Ic:\python21\
Include -c C:\temp\2.1\scipy\scipy_core\scipy_base\fastumathmodule.c -o
build\te
mp.win32-2.1\Release\fastumathmodule.o
In file included from
C:\temp\2.1\scipy\scipy_core\scipy_base\fastumathmodule.c:
27:
C:/temp/2.1/scipy/scipy_core/scipy_base/fastumath_unsigned.inc: In
function `UIN
T_multiply':
C:/temp/2.1/scipy/scipy_core/scipy_base/fastumath_unsigned.inc:963:
warning: `x'
 might be used uninitialized in this function
C:/temp/2.1/scipy/scipy_core/scipy_base/fastumath_unsigned.inc: In
function `Ini
tOperators':
C:/temp/2.1/scipy/scipy_core/scipy_base/fastumath_unsigned.inc:2860:
`PyNumber_T
rueDivide' undeclared (first use in this function)
C:/temp/2.1/scipy/scipy_core/scipy_base/fastumath_unsigned.inc:2860:
(Each undec
lared identifier is reported only once
C:/temp/2.1/scipy/scipy_core/scipy_base/fastumath_unsigned.inc:2860: for
each fu
nction it appears in.)
C:/temp/2.1/scipy/scipy_core/scipy_base/fastumath_unsigned.inc:2867:
`PyNumber_F
loorDivide' undeclared (first use in this function)
C:\temp\2.1\scipy\scipy_core\scipy_base\fastumathmodule.c: In function
`pinf_ini
t':
C:\temp\2.1\scipy\scipy_core\scipy_base\fastumathmodule.c:41: warning:
unused va
riable `tmp2'
C:\temp\2.1\scipy\scipy_core\scipy_base\fastumathmodule.c:41: warning:
`tmp' mig
ht be used uninitialized in this function
C:\temp\2.1\scipy\scipy_core\scipy_base\fastumathmodule.c: In function
`pzero_in
it':
C:\temp\2.1\scipy\scipy_core\scipy_base\fastumathmodule.c:55: warning:
unused va
riable `tmp2'
C:\temp\2.1\scipy\scipy_core\scipy_base\fastumathmodule.c:55: warning:
`tmp' mig
ht be used uninitialized in this function
C:\temp\2.1\scipy\scipy_core\scipy_base\fastumathmodule.c: At top level:
C:\temp\2.1\scipy\scipy_core\scipy_base\fastumathmodule.c:32: warning:
`Array0d_
FromDouble' defined but not used
C:/temp/2.1/scipy/scipy_core/scipy_base/fastumath_unsigned.inc:2111:
warning: `C
FLOAT_logical_and' defined but not used
C:/temp/2.1/scipy/scipy_core/scipy_base/fastumath_unsigned.inc:2118:
warning: `C
DOUBLE_logical_and' defined but not used
C:/temp/2.1/scipy/scipy_core/scipy_base/fastumath_unsigned.inc:2188:
warning: `C
FLOAT_logical_or' defined but not used
C:/temp/2.1/scipy/scipy_core/scipy_base/fastumath_unsigned.inc:2195:
warning: `C
DOUBLE_logical_or' defined but not used
C:/temp/2.1/scipy/scipy_core/scipy_base/fastumath_unsigned.inc:2265:
warning: `C
FLOAT_logical_xor' defined but not used
C:/temp/2.1/scipy/scipy_core/scipy_base/fastumath_unsigned.inc:2272:
warning: `C
DOUBLE_logical_xor' defined but not used
C:/temp/2.1/scipy/scipy_core/scipy_base/fastumath_unsigned.inc:2298:
warning: `C
FLOAT_logical_not' defined but not used
C:/temp/2.1/scipy/scipy_core/scipy_base/fastumath_unsigned.inc:2300:
warning: `C
DOUBLE_logical_not' defined but not used
C:/temp/2.1/scipy/scipy_core/scipy_base/fastumath_unsigned.inc:2364:
warning: `C
FLOAT_maximum' defined but not used
C:/temp/2.1/scipy/scipy_core/scipy_base/fastumath_unsigned.inc:2372:
warning: `C
DOUBLE_maximum' defined but not used
C:/temp/2.1/scipy/scipy_core/scipy_base/fastumath_unsigned.inc:2443:
warning: `C
FLOAT_minimum' defined but not used
C:/temp/2.1/scipy/scipy_core/scipy_base/fastumath_unsigned.inc:2451:
warning: `C
DOUBLE_minimum' defined but not used

> -----Original Message-----
> From: scipy-dev-admin at scipy.net [mailto:scipy-dev-admin at scipy.net] On
> Behalf Of Pearu Peterson
> Sent: Monday, March 10, 2003 7:49 AM
> To: scipy-dev at scipy.org
> Subject: [SciPy-dev] Re: [Scipy-cvs] world/scipy/Lib/xplt
> setup_xplt.py,1.13,1.14
> 
> 
> On Mon, 10 Mar 2003 travis at scipy.org wrote:
> 
> > Log Message:
> > Added try/except hack to get around os.environ trying to upper an
int on
> windows
> 
> >   x11 = not (windows or cygwin)
> > ! if 'NO_XLIB' in os.environ:
> > !     x11 = 0
> >
> >   run_config = ('config' in sys.argv)
> > --- 25,33 ----
> >
> >   x11 = not (windows or cygwin)
> > ! try:
> > !     if 'NO_XLIB' in os.environ:
> > !         x11 = 0
> > ! except:
> > !     pass
> 
> This will not work properly with Python 2.1 either. The
> problematic if statement should be replaced with
> 
>   if os.environ.has_key('NO_XLIB'):
>     ..
> 
> Pearu
> (I am away from scipy CVS tree at the moment,
> therefore cannot fix it myself)
> 
> _______________________________________________
> Scipy-dev mailing list
> Scipy-dev at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-dev





More information about the Scipy-dev mailing list