[Numpy-discussion] distutils problem with NumPy-1.4 & Py-2.7a3 (Snow Leopard)
Tue Feb 23 13:32:08 CST 2010
On 02/23/2010 01:18 PM, Tom Loredo wrote:
> 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>
> 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.
> 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
I think it is Python related as I did a grep of my Python versions
installed from source for this function and got:
I have not had time to check why Python2.7 is different from the other
versions (both location and call).
More information about the NumPy-Discussion