[Numpy-discussion] nosetests and permissions

Keith Goodman kwgoodman@gmail....
Thu Aug 20 16:03:38 CDT 2009


On Thu, Aug 20, 2009 at 1:52 PM, Chris Colbert<sccolbert@gmail.com> wrote:
> when I build numpy from source via:
>
> python setup.py build
> sudo python setup.py install
>
>
> the nosetests fail because of permissions:
>
> In [5]: np.test()
> Running unit tests for numpy
> NumPy version 1.3.0
> NumPy is installed in /usr/local/lib/python2.6/dist-packages/numpy
> Python version 2.6.2 (release26-maint, Apr 19 2009, 01:58:18) [GCC 4.3.3]
> nose version 0.10.4
>
> ----------------------------------------------------------------------
> Ran 0 tests in 0.007s
>
> OK
> Out[5]: <nose.result.TextTestResult run=0 errors=0 failures=0>
>
>
> The problem I'm running into is I can't do a blanket chmod 664 *.py on
> the numpy directory because that breaks things. And since I don't
> which files are nosetests, it's very difficult to change by hand.
>
> Is there a workaround for this, or would it more appropriate for the
> numpy build script to set the permissions of the test file
> accordingly?

Works for me. But my numpy is in the site-packages directory. Did you
move it to dist-packages?

>> np.test()
Running unit tests for numpy
NumPy version 1.3.0
NumPy is installed in /usr/local/lib/python2.6/site-packages/numpy
Python version 2.6.2 (release26-maint, Apr 19 2009, 01:58:18) [GCC 4.3.3]
nose version 0.11.1
[snip]
----------------------------------------------------------------------
Ran 2030 tests in 5.033s

OK (KNOWNFAIL=1, SKIP=11)
   <nose.result.TextTestResult run=2030 errors=0 failures=0>


More information about the NumPy-Discussion mailing list