[Numpy-discussion] Status of NumPy and Python 3.3

Ronan Lamy ronan.lamy at gmail.com
Sun Jul 29 20:52:32 EDT 2012


Le dimanche 29 juillet 2012 à 23:55 +0200, Stefan Krah a écrit :
> Ronan Lamy <ronan.lamy at gmail.com> wrote:
> > ImportError: No module named 'distutils.command.install_clib'
> 
> I'm seeing the same with Python 3.3.0b1 (68e2690a471d+) and this patch
> solves the problem:
> 
> diff --git a/numpy/distutils/command/__init__.py b/numpy/distutils/command/__init__.py
> index f8f0884..b9f0d09 100644
> --- a/numpy/distutils/command/__init__.py
> +++ b/numpy/distutils/command/__init__.py
> @@ -7,13 +7,13 @@ __revision__ = "$Id: __init__.py,v 1.3 2005/05/16 11:08:49 pearu Exp $"
>  
>  distutils_all = [  #'build_py',
>                     'clean',
> -                   'install_clib',
>                     'install_scripts',
>                     'bdist',
>                     'bdist_dumb',
>                     'bdist_wininst',
>                  ]
>  
> +from numpy.distutils.command import install_clib
>  __import__('distutils.command',globals(),locals(),distutils_all)
>  
>  __all__ = ['build',

That does indeed solve the problem, thanks. However, I'm quite sure that
'rm numpy/distutils/command/__init__.py && touch
numpy/distutils/command/__init__.py' works just as well - or probably
better, in fact, as it allows 'from numpy.distutils.command import *' to
run without error.




More information about the NumPy-Discussion mailing list