Issue #1 resolved

setup.py ignores --root

Jakub Wilk
created an issue

setup.py ignores the --root option and installs stuff directly to /usr:

{{{ $ python setup.py install --root=tmpdir running install running build running build_py creating build creating build/lib.linux-x86_64-2.6 copying pypissh.py -> build/lib.linux-x86_64-2.6 running install_lib creating tmpdir creating tmpdir/usr creating tmpdir/usr/local creating tmpdir/usr/local/lib creating tmpdir/usr/local/lib/python2.6 creating tmpdir/usr/local/lib/python2.6/dist-packages copying build/lib.linux-x86_64-2.6/pypissh.py -> tmpdir/usr/local/lib/python2.6/dist-packages byte-compiling tmpdir/usr/local/lib/python2.6/dist-packages/pypissh.py to pypissh.pyc running install_data creating /usr/lib/python2.6/site-packages error: could not create '/usr/lib/python2.6/site-packages': Permission denied }}}

Comments (2)

  1. Sridhar Ratnakumar

    Indeed this broke all the virtualenvs in PyPM's build machines. Future invokations of Python simply fail (thereby preventing other packages from building!):

    'import site' failed; use -v for traceback
    Traceback (most recent call last):
     File "<string>", line 1, in <module>
     File "/home/apy/as/pypm/tmp/env26/lib/python2.6/site.py", line 658, in <module>
       main()
     File "/home/apy/as/pypm/tmp/env26/lib/python2.6/site.py", line 638, in main
       paths_in_sys = addsitepackages(paths_in_sys)
     File "/home/apy/as/pypm/tmp/env26/lib/python2.6/site.py", line 270, in addsitepackages
       addsitedir(sitedir, known_paths)
     File "/home/apy/as/pypm/tmp/env26/lib/python2.6/site.py", line 200, in addsitedir
       addpackage(sitedir, name, known_paths)
     File "/home/apy/as/pypm/tmp/env26/lib/python2.6/site.py", line 169, in addpackage
       exec line
     File "<string>", line 1, in <module>
    ImportError: No module named pypissh
    

    I have to blacklist this module until this is fixed.

  2. Log in to comment