[Numpy-discussion] nosetests and permissions

Chris Colbert sccolbert@gmail....
Thu Aug 20 16:06:51 CDT 2009


this happens with scipy too...

On Thu, Aug 20, 2009 at 5:06 PM, Chris Colbert<sccolbert@gmail.com> wrote:
> the issue is that the files are executable. I have no idea why they
> are set that way either. This is numpy 1.3.0 built from source.
>
> the default install location for setup.py install is the local
> dist-packages. So that's where it is.
>
>
>
> On Thu, Aug 20, 2009 at 5:03 PM, Keith Goodman<kwgoodman@gmail.com> wrote:
>> 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>
>> _______________________________________________
>> NumPy-Discussion mailing list
>> NumPy-Discussion@scipy.org
>> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>>
>


More information about the NumPy-Discussion mailing list