[Touch-packages] [Bug 362570] Re: Python distutils installs into 'site-packages' instead of 'dist-packages' when a prefix is set
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: python3-defaults (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to python3-defaults in Ubuntu. https://bugs.launchpad.net/bugs/362570 Title: Python distutils installs into 'site-packages' instead of 'dist- packages' when a prefix is set Status in python2.6 package in Ubuntu: Fix Released Status in python3-defaults package in Ubuntu: New Status in python2.6 package in Debian: Fix Released Bug description: Binary package hint: python2.6 When running a setup.py script with distutils in Jaunty like this: $ python setup.py install modules get installed at '/usr/local/lib/python2.6/dist-packages'. In contrast, when running $ python setup.py install --prefix=/usr/local modules get installed at '/usr/local/lib/python2.6/site-packages'. In the same way $ python setup.py install --prefix=/usr installs modules at '/usr/lib/python2.6/site-packages'. The problem is that '/usr/[local/]lib/python2.6/site-packages' is not part of the default sys.path . Maybe this is intended but I would expect that specifying an install prefix like 'usr' or 'usr/local' still installs modules to a place which is in Python's default search path - it worked this way in Ubuntu <= 8.10 . ProblemType: Bug Architecture: i386 DistroRelease: Ubuntu 9.04 Package: python2.6 2.6.2~rc1-0ubuntu2 ProcEnviron: LANG=en_US.UTF-8 SHELL=/bin/bash SourcePackage: python2.6 Uname: Linux 2.6.28-11-generic i686 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python2.6/+bug/362570/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 362570] Re: Python distutils installs into 'site-packages' instead of 'dist-packages' when a prefix is set
** Changed in: python3-defaults (Ubuntu) Status: Confirmed => New -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to python3-defaults in Ubuntu. https://bugs.launchpad.net/bugs/362570 Title: Python distutils installs into 'site-packages' instead of 'dist- packages' when a prefix is set Status in python2.6 package in Ubuntu: Fix Released Status in python3-defaults package in Ubuntu: New Status in python2.6 package in Debian: Fix Released Bug description: Binary package hint: python2.6 When running a setup.py script with distutils in Jaunty like this: $ python setup.py install modules get installed at '/usr/local/lib/python2.6/dist-packages'. In contrast, when running $ python setup.py install --prefix=/usr/local modules get installed at '/usr/local/lib/python2.6/site-packages'. In the same way $ python setup.py install --prefix=/usr installs modules at '/usr/lib/python2.6/site-packages'. The problem is that '/usr/[local/]lib/python2.6/site-packages' is not part of the default sys.path . Maybe this is intended but I would expect that specifying an install prefix like 'usr' or 'usr/local' still installs modules to a place which is in Python's default search path - it worked this way in Ubuntu <= 8.10 . ProblemType: Bug Architecture: i386 DistroRelease: Ubuntu 9.04 Package: python2.6 2.6.2~rc1-0ubuntu2 ProcEnviron: LANG=en_US.UTF-8 SHELL=/bin/bash SourcePackage: python2.6 Uname: Linux 2.6.28-11-generic i686 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python2.6/+bug/362570/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
Re: [Touch-packages] [Bug 362570] Re: Python distutils installs into 'site-packages' instead of 'dist-packages' when a prefix is set
On May 02, 2016, at 08:28 PM, tripzero wrote: >This also needs to be fixed for python3... What exactly needs fixing? `sudo python3 setup.py install` will install into /usr/local/.../dist-packages which is exactly where it should install, and is definitely on the system Python's sys.path. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to python3-defaults in Ubuntu. https://bugs.launchpad.net/bugs/362570 Title: Python distutils installs into 'site-packages' instead of 'dist- packages' when a prefix is set Status in python2.6 package in Ubuntu: Fix Released Status in python3-defaults package in Ubuntu: New Status in python2.6 package in Debian: Fix Released Bug description: Binary package hint: python2.6 When running a setup.py script with distutils in Jaunty like this: $ python setup.py install modules get installed at '/usr/local/lib/python2.6/dist-packages'. In contrast, when running $ python setup.py install --prefix=/usr/local modules get installed at '/usr/local/lib/python2.6/site-packages'. In the same way $ python setup.py install --prefix=/usr installs modules at '/usr/lib/python2.6/site-packages'. The problem is that '/usr/[local/]lib/python2.6/site-packages' is not part of the default sys.path . Maybe this is intended but I would expect that specifying an install prefix like 'usr' or 'usr/local' still installs modules to a place which is in Python's default search path - it worked this way in Ubuntu <= 8.10 . ProblemType: Bug Architecture: i386 DistroRelease: Ubuntu 9.04 Package: python2.6 2.6.2~rc1-0ubuntu2 ProcEnviron: LANG=en_US.UTF-8 SHELL=/bin/bash SourcePackage: python2.6 Uname: Linux 2.6.28-11-generic i686 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python2.6/+bug/362570/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 362570] Re: Python distutils installs into 'site-packages' instead of 'dist-packages' when a prefix is set
This also needs to be fixed for python3... ** Also affects: python3-defaults (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to python3-defaults in Ubuntu. https://bugs.launchpad.net/bugs/362570 Title: Python distutils installs into 'site-packages' instead of 'dist- packages' when a prefix is set Status in python2.6 package in Ubuntu: Fix Released Status in python3-defaults package in Ubuntu: New Status in python2.6 package in Debian: Fix Released Bug description: Binary package hint: python2.6 When running a setup.py script with distutils in Jaunty like this: $ python setup.py install modules get installed at '/usr/local/lib/python2.6/dist-packages'. In contrast, when running $ python setup.py install --prefix=/usr/local modules get installed at '/usr/local/lib/python2.6/site-packages'. In the same way $ python setup.py install --prefix=/usr installs modules at '/usr/lib/python2.6/site-packages'. The problem is that '/usr/[local/]lib/python2.6/site-packages' is not part of the default sys.path . Maybe this is intended but I would expect that specifying an install prefix like 'usr' or 'usr/local' still installs modules to a place which is in Python's default search path - it worked this way in Ubuntu <= 8.10 . ProblemType: Bug Architecture: i386 DistroRelease: Ubuntu 9.04 Package: python2.6 2.6.2~rc1-0ubuntu2 ProcEnviron: LANG=en_US.UTF-8 SHELL=/bin/bash SourcePackage: python2.6 Uname: Linux 2.6.28-11-generic i686 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python2.6/+bug/362570/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp