[SciPy-dev] Running tests outside site-packages (was: Re: numpy-0.9.2, scipy-0.4.4 RPMs)

Ignacio Vazquez-Abrams ivazquez at ivazquez.net
Fri Jan 20 00:23:44 CST 2006

I'm trying to write the %check section of the numpy spec file and I keep
running into the following:

+ /usr/bin/python -c 'import numpy ; numpy.test(1, 1)'
numpy/__init__.py:47: UserWarning: Module numpy was already imported
from numpy/__init__.pyc,
but /home/ignacio/work/rpmbuild/BUILD/numpy-0.9.2 is being added to
  import pkg_resources as _pk # activate namespace packages (manipulates
Running from numpy source directory.
Traceback (most recent call last):
  File "<string>", line 1, in ?
AttributeError: 'module' object has no attribute 'test'

How can I get the tests to run?

Ignacio Vazquez-Abrams <ivazquez at ivazquez.net>

gpg --keyserver hkp://subkeys.pgp.net --recv-key 38028b72
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://projects.scipy.org/pipermail/scipy-dev/attachments/20060120/2c4b240e/attachment.bin 

More information about the Scipy-dev mailing list