Re: [Numpy-discussion] unit tests / developing numpy (Pauli Virtanen)
Hi Pauli, Thanks for looking into this. Apologies for mangling the email subject line in my previous reply. Answers are below, inline:
That is interesting, as it has worked for me on all configurations. You can check under 'build/testenv/' --- does your Python version by chance install it to a `lib64` directory instead of `lib`?
$ ls build/testenv/ bin lib64
(i)
What does
import os from distutils.sysconfig import get_python_lib get_python_lib(prefix=os.path.abspath('build/testenv'))
report? Is there a 'numpy' directory below the reported directory after running runtests.py?
import os from distutils.sysconfig import get_python_lib get_python_lib(prefix=os.path.abspath('build/testenv'))
'/ssd-space/home/X/github/numpy/build/testenv/lib/python2.7/site-packages' I'm running this in a fresh python client in the directory 'github/numpy'.
(ii)
Start a fresh Python interpreter and run
import sys print sys.modules.get('numpy')
(Note: no "import numpy" above). Does it print `None` or something else?
import sys print sys.modules.get('numpy') None
Thanks, Pauli and Stefan. Graeme.
Hi, 29.07.2013 10:43, Graeme B. Bell kirjoitti: [clip]
$ ls build/testenv/ bin lib64
[clip]
import os from distutils.sysconfig import get_python_lib get_python_lib(prefix=os.path.abspath('build/testenv'))
'/ssd-space/home/X/github/numpy/build/testenv/lib/python2.7/site-packages'
I'm running this in a fresh python client in the directory 'github/numpy'.
Thanks, the issue seems to be due to some patch Fedora applied to its Python version. The fix seems to be to change on line 234 in runtests.py the line site_dir = get_python_lib(prefix=dst_dir) to site_dir = get_python_lib(prefix=dst_dir, plat_specific=True) -- Pauli Virtanen
participants (2)
-
Graeme B. Bell
-
Pauli Virtanen