On Tue, Feb 23, 2010 at 13:32, Bruce Southey <bsout...@gmail.com> wrote: > On 02/23/2010 01:18 PM, Tom Loredo wrote: >> Hi- >> >> I've been testing Python-2.7a3 on Mac OS 10.6.2. NumPy-1.4.0 will >> not install; it appears something has changed within distutils that >> breaks it: >> >> $ export MACOSX_DEPLOYMENT_TARGET=10.6 >> $ export CFLAGS="-arch x86_64" >> $ export FFLAGS="-m64" >> $ export LDFLAGS="-Wall -undefined dynamic_lookup -bundle -arch x86_64" >> $ time python setup.py build --fcompiler=gnu95 >> Running from numpy source directory. >> Traceback (most recent call last): >> File "setup.py", line 187, in<module> >> setup_package() >> File "setup.py", line 155, in setup_package >> from numpy.distutils.core import setup >> File >> "/Volumes/System/Users/loredo/Downloads/numpy-1.4.0-OSX/numpy/distutils/__init__.py", >> line 6, in<module> >> import ccompiler >> File >> "/Volumes/System/Users/loredo/Downloads/numpy-1.4.0-OSX/numpy/distutils/ccompiler.py", >> line 17, in<module> >> _old_init_posix = distutils.sysconfig._init_posix >> AttributeError: 'module' object has no attribute '_init_posix' >> >> I realize NumPy makes no claim to be compatible with 2.7(alpha); I'm >> reporting this as a heads-up. >> >> -Tom >> >> PS: For testing purposes: To get nose to install for 2.7a3, >> you need to use the current hg branch. The last release >> (including the out-of-date dev branch on PyPI) is not >> compatible with 2.7 changes to unittest internals. >> >> >> >> >> ------------------------------------------------- >> This mail sent through IMP: http://horde.org/imp/ >> _______________________________________________ >> NumPy-Discussion mailing list >> NumPy-Discussion@scipy.org >> http://mail.scipy.org/mailman/listinfo/numpy-discussion >> > Hi, > I think it is Python related as I did a grep of my Python versions > installed from source for this function and got: > python2.5/distutils/sysconfig.py:def _init_posix(): > python2.6/distutils/sysconfig.py:def _init_posix(): > python2.7/sysconfig.py:def _init_posix(vars): > python3.1/distutils/sysconfig.py:def _init_posix(): > > I have not had time to check why Python2.7 is different from the other > versions (both location and call).
sysconfig was deemed useful outside of distutils and was promoted to the top level. Unfortunately, they didn't leave a backwards compatibility stub. Feel free to create a bug ticket on the Python bug tracker. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion