Issue #1 resolved ignores --root

Jakub Wilk
created an issue ignores the --root option and installs stuff directly to /usr:

{{{ $ python install --root=tmpdir running install running build running build_py creating build creating build/lib.linux-x86_64-2.6 copying -> 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/ -> tmpdir/usr/local/lib/python2.6/dist-packages byte-compiling tmpdir/usr/local/lib/python2.6/dist-packages/ 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/", line 658, in <module>
     File "/home/apy/as/pypm/tmp/env26/lib/python2.6/", line 638, in main
       paths_in_sys = addsitepackages(paths_in_sys)
     File "/home/apy/as/pypm/tmp/env26/lib/python2.6/", line 270, in addsitepackages
       addsitedir(sitedir, known_paths)
     File "/home/apy/as/pypm/tmp/env26/lib/python2.6/", line 200, in addsitedir
       addpackage(sitedir, name, known_paths)
     File "/home/apy/as/pypm/tmp/env26/lib/python2.6/", 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