Public bug reported:
I need to install a couple of packages for a custom sys.path and it
fails. Ubuntu patch modifies default `pip` behaviour to install packages
into user path, but it does this with a hack. That hack unconditionally
adds --user options, and it should add it only if user doesn't specify
alternatives, such as --target.
$ pip install --target xxx ansible
...
Installing collected packages: PyYAML, MarkupSafe, jinja2, pyasn1, six,
pycparser, cffi, bcrypt, idna, enum34, ipaddress, asn1crypto, cryptography,
pynacl, paramiko, pycrypto, setuptools, ansible
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 360, in
run
prefix=options.prefix_path,
File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 784, in
install
**kwargs
File "/usr/lib/python2.7/dist-packages/pip/req/req_install.py", line 851, in
install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File "/usr/lib/python2.7/dist-packages/pip/req/req_install.py", line 1064, in
move_wheel_files
isolated=self.isolated,
File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 247, in
move_wheel_files
prefix=prefix,
File "/usr/lib/python2.7/dist-packages/pip/locations.py", line 153, in
distutils_scheme
i.finalize_options()
File
"/usr/share/python-wheels/setuptools-32.3.1-py2.py3-none-any.whl/setuptools/command/install.py",
line 38, in finalize_options
orig.install.finalize_options(self)
File "/usr/lib/python2.7/distutils/command/install.py", line 289, in
finalize_options
raise DistutilsOptionError("can't combine user with prefix, "
DistutilsOptionError: can't combine user with prefix, exec_prefix/home, or
install_(plat)base
ProblemType: Bug
DistroRelease: Ubuntu 17.04
Package: python-pip 9.0.1-2
ProcVersionSignature: Ubuntu 4.10.0-33.37-generic 4.10.17
Uname: Linux 4.10.0-33-generic x86_64
NonfreeKernelModules: nvidia_uvm nvidia_drm nvidia_modeset nvidia
ApportVersion: 2.20.4-0ubuntu4.5
Architecture: amd64
CurrentDesktop: XFCE
Date: Tue Aug 29 13:05:23 2017
PackageArchitecture: all
SourcePackage: python-pip
UpgradeStatus: Upgraded to zesty on 2017-04-15 (135 days ago)
** Affects: python-pip (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug zesty
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1713687
Title:
--target is broken
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-pip/+bug/1713687/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs