[Numpy-discussion] numpy install script changes permissions?

Chris Colbert sccolbert at gmail.com
Fri Sep 25 12:23:26 EDT 2009


Oh, and sorry if calling you Chuck was offensive, that's out of habit
from a friend of mine named Charles.

My apologies...

On Fri, Sep 25, 2009 at 12:21 PM, Chris Colbert <sccolbert at gmail.com> wrote:
> here's an example from numpy/core/tests/
>
> from the source directory:
>
> brucewayne at broo:~/builds/numpy-1.3.0/numpy/core/tests$ ls -l
> total 244
> drwxr-xr-x 2 brucewayne brucewayne  4096 2009-04-05 04:29 data
> -rw-r--r-- 1 brucewayne brucewayne   465 2009-03-29 07:24 test_blasdot.py
> -rw-r--r-- 1 brucewayne brucewayne  2975 2009-04-05 04:09 test_defchararray.py
> -rw-r--r-- 1 brucewayne brucewayne 10861 2009-04-05 04:09 test_defmatrix.py
> -rw-r--r-- 1 brucewayne brucewayne  3306 2009-04-05 04:09 test_dtype.py
> -rw-r--r-- 1 brucewayne brucewayne  1769 2009-03-29 07:24 test_errstate.py
> -rw-r--r-- 1 brucewayne brucewayne  2101 2009-03-29 07:24 test_memmap.py
> -rw-r--r-- 1 brucewayne brucewayne 37911 2009-04-05 04:09 test_multiarray.py
> -rw-r--r-- 1 brucewayne brucewayne 28164 2009-03-29 07:24 test_numeric.py
> -rw-r--r-- 1 brucewayne brucewayne 14194 2009-03-29 07:24 test_numerictypes.py
> -rw-r--r-- 1 brucewayne brucewayne  8611 2009-04-05 04:09 test_print.py
> -rw-r--r-- 1 brucewayne brucewayne  4591 2009-03-29 07:24 test_records.py
> -rw-r--r-- 1 brucewayne brucewayne 42700 2009-04-05 04:19 test_regression.py
> -rw-r--r-- 1 brucewayne brucewayne  3768 2009-04-05 04:09 test_scalarmath.py
> -rw-r--r-- 1 brucewayne brucewayne 16944 2009-04-05 04:09 test_ufunc.py
> -rw-r--r-- 1 brucewayne brucewayne 24276 2009-04-05 04:09 test_umath.py
> -rw-r--r-- 1 brucewayne brucewayne 11255 2009-04-05 04:09 test_unicode.py
>
>
> /* Tests dont exist in the build directory */
>
> from the install directory:
>
> brucewayne at broo:/usr/local/lib/python2.6/dist-packages/numpy/core/tests$ ls -l
> total 244
> drwxr-sr-x 2 root staff  4096 2009-08-20 16:19 data
> -rwxrwxrwx 1 root staff   465 2009-08-17 18:01 test_blasdot.py
> -rwxrwxrwx 1 root staff  2975 2009-08-17 18:01 test_defchararray.py
> -rwxrwxrwx 1 root staff 10861 2009-08-17 18:01 test_defmatrix.py
> -rwxrwxrwx 1 root staff  3306 2009-08-17 18:01 test_dtype.py
> -rwxrwxrwx 1 root staff  1769 2009-08-17 18:01 test_errstate.py
> -rwxrwxrwx 1 root staff  2101 2009-08-17 18:01 test_memmap.py
> -rwxrwxrwx 1 root staff 37911 2009-08-17 18:01 test_multiarray.py
> -rwxrwxrwx 1 root staff 28164 2009-08-17 18:01 test_numeric.py
> -rwxrwxrwx 1 root staff 14194 2009-08-17 18:01 test_numerictypes.py
> -rwxrwxrwx 1 root staff  8611 2009-08-17 18:01 test_print.py
> -rwxrwxrwx 1 root staff  4591 2009-08-17 18:01 test_records.py
> -rwxrwxrwx 1 root staff 42700 2009-08-17 18:01 test_regression.py
> -rwxrwxrwx 1 root staff  3768 2009-08-17 18:01 test_scalarmath.py
> -rwxrwxrwx 1 root staff 16944 2009-08-17 18:01 test_ufunc.py
> -rwxrwxrwx 1 root staff 24276 2009-08-17 18:01 test_umath.py
> -rwxrwxrwx 1 root staff 11255 2009-08-17 18:01 test_unicode.py
>
>
> and after a fresh removal of the install and build dirs, and a rebuild
> and reinstall:
>
> brucewayne at broo:/usr/local/lib/python2.6/dist-packages/numpy/core/tests$ ls -l
> total 244
> drwxr-sr-x 2 root staff  4096 2009-09-25 12:20 data
> -rw-r--r-- 1 root staff   465 2009-03-29 07:24 test_blasdot.py
> -rw-r--r-- 1 root staff  2975 2009-04-05 04:09 test_defchararray.py
> -rw-r--r-- 1 root staff 10861 2009-04-05 04:09 test_defmatrix.py
> -rw-r--r-- 1 root staff  3306 2009-04-05 04:09 test_dtype.py
> -rw-r--r-- 1 root staff  1769 2009-03-29 07:24 test_errstate.py
> -rw-r--r-- 1 root staff  2101 2009-03-29 07:24 test_memmap.py
> -rw-r--r-- 1 root staff 37911 2009-04-05 04:09 test_multiarray.py
> -rw-r--r-- 1 root staff 28164 2009-03-29 07:24 test_numeric.py
> -rw-r--r-- 1 root staff 14194 2009-03-29 07:24 test_numerictypes.py
> -rw-r--r-- 1 root staff  8611 2009-04-05 04:09 test_print.py
> -rw-r--r-- 1 root staff  4591 2009-03-29 07:24 test_records.py
> -rw-r--r-- 1 root staff 42700 2009-04-05 04:19 test_regression.py
> -rw-r--r-- 1 root staff  3768 2009-04-05 04:09 test_scalarmath.py
> -rw-r--r-- 1 root staff 16944 2009-04-05 04:09 test_ufunc.py
> -rw-r--r-- 1 root staff 24276 2009-04-05 04:09 test_umath.py
> -rw-r--r-- 1 root staff 11255 2009-04-05 04:09 test_unicode.py
>
>
>
> so, something went amok probably a few installs back. This seems to
> have cleared it up.
>
> Thanks Chuck!
>
> Chris
>
>
>
>
>
>
>
>
> On Fri, Sep 25, 2009 at 12:10 PM, Charles R Harris
> <charlesr.harris at gmail.com> wrote:
>>
>>
>> On Fri, Sep 25, 2009 at 10:09 AM, Charles R Harris
>> <charlesr.harris at gmail.com> wrote:
>>>
>>>
>>> On Fri, Sep 25, 2009 at 9:59 AM, Chris Colbert <sccolbert at gmail.com>
>>> wrote:
>>>>
>>>> for numpy and scipy, only the tests have executable permissions. It's
>>>> as if the tests were specifically targeted and had their permissions
>>>> changed.
>>>>
>>>> And these are the only two python packages i've built from source and
>>>> installed in this manner, other i've gotten via easy_install, or in
>>>> the case of the enthought tool suite, I have as an svn install in my
>>>> home folder. The ETS install doesnt have these problems, but many of
>>>> the easy_installed packages are marked as executable, though they
>>>> could have come that way from the source....
>>>>
>>>> Chris
>>>>
>>>> On Fri, Sep 25, 2009 at 10:37 AM, Mark Sienkiewicz <sienkiew at stsci.edu>
>>>> wrote:
>>>> >
>>>> >> In the source build folder, all numpy test scripts have the correct
>>>> >> permissions and are not marked as executable,
>>>> >>
>>>> >> but in the install directory
>>>> >> (/usr/local/lib/python2.6/dist-packages/numpy/), the test test scripts
>>>> >> have completely different permissions, and are all marked as
>>>> >> executable. Thus, nose wont run the tests.
>>>> >>
>>>> >
>>>> > It works ok for me with python 2.5.1 on a mac and python 2.6.1 on
>>>> > linux.  That doesn't help you, but it may be a clue at some point.
>>>> >
>>>> > Is it only the test scripts that are executable, or is it everything
>>>> > that gets installed?
>>>> >
>>>> > Does it affect packages other than numpy / scipy?  If so, we can
>>>> > suspect
>>>> > distutils and/or ubuntu, rather than numpy.
>>>> >
>>>> > Mark S.
>>>> >
>>>
>>> What do the permissions look like in the source? In the build directory?
>>> What happens if you just copy a test script into the directory?
>>>
>>
>> Oh, and what happens if you delete the site-packages/numpy directory first?
>>
>> Chuck
>>
>>
>> _______________________________________________
>> NumPy-Discussion mailing list
>> NumPy-Discussion at scipy.org
>> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>>
>>
>



More information about the NumPy-Discussion mailing list