$ python setup.py install --root=installroot/
No paths in the python path contain numpy/arrayobject.h
$ echo $?
0
$
The exit code should be non-zero .. this affects the behavior of programs
(ones that automate building of Python packages, for instance) that rely on
proper exit codes of setup.py.
The culprit is:
valid_paths = filter(contains_arrayobject_h, sys.path)
if len(valid_paths) == 0:
print "No paths in the python path contain numpy/arrayobject.h"
sys.exit(0) <--- change this to 1, or just 'raise RuntimeError'
Original issue reported on code.google.com by Sridhar....@gmail.com on 1 Jun 2009 at 5:58
Original issue reported on code.google.com by
Sridhar....@gmail.com
on 1 Jun 2009 at 5:58