[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 08:49:21 EST 2003


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)




More information about the SciPy-Dev mailing list