[Numpy-discussion] Status of NumPy and Python 3.3

Ronan Lamy ronan.lamy@gmail....
Sun Jul 29 16:27:03 CDT 2012

Le samedi 28 juillet 2012 à 18:09 -0700, Ondřej Čertík a écrit :

> So now the PR actually seems to work. The rest of the failures are here:
> https://gist.github.com/3195520
I wanted to have a look at the import errors in your previous gist. How
did you get rid of them? I can't even install numpy on 3.3 as setup.py
chokes on 'import numpy.distutils.core':

(py33)ronan@ronan-desktop:~/dev/numpy$ python setup.py install
Converting to Python3 via 2to3...
Running from numpy source directory.
ResourceWarning: unclosed file <_io.TextIOWrapper
name='/usr/local/lib/python3.3/distutils/__init__.py' mode='r'
  exec(open(os.path.join(distutils_path, '__init__.py')).read())
Traceback (most recent call last):
  File "setup.py", line 214, in <module>
  File "setup.py", line 191, in setup_package
    from numpy.distutils.core import setup
  File "/home/ronan/dev/numpy/build/py3k/numpy/distutils/core.py", line
25, in <module>
    from numpy.distutils.command import config, config_compiler, \
line 17, in <module>
ImportError: No module named 'distutils.command.install_clib'

Actually, I don't even understand how this __import__() call can work on
earlier versions, nor what it's trying to achieve.

More information about the NumPy-Discussion mailing list