I haven't looked into newer Ubuntu versions, so everything I'm posting
is about Trusty.

As far as I can tell, virtualenv's bundled pip wheel is not built by
Debian maintainers, but by virtualenv's developers themselves. In fact,
if you compare the wheel python-virtualenv installs in /usr/share
/python-virtualenv/pip-1.5debian1-py2.py3-none-any.whl with the one in
virtualenv's tree
(https://github.com/pypa/virtualenv/raw/6dc9b1d376b041d83472c03c1ef334919a3b7c12/virtualenv_support/pip-1.5.4-py2.py3
-none-any.whl) their contents are identical.

You can also tell that the bundled pip is not patched by comparing its
contents with the contents of the python-pip package. The bundled pip
has a _vendor directory and all imports reference it (eg "from
pip._vendor.requests import ***"). The pip that is installed through apt
is missing that directory and all imports have been patched to import
system wide libraries (eg "from pip import ***).

The larger issue is whether the above behavior is correct. The pypa
developers (maintainers of pip, virtualenv etc) prefer vendoring
libraries, while Debian's python packagers prefer splitting packages and
patch them accordingly. How this applies to virtualenv's bundled wheel
which is installed as part of virtualenv's normal operation is not clear
to me.

I am not very familiar with Debian Python Policy, but I would argue that
the contents of the bundled wheel should be patched as well, since:

1. The bundled pip's version is the same as the apt pip's version, so bugfixes 
on dependencies would equally apply to both.
2. Currently, the bundled pip is not the same as the pip apt installs, even 
though the are both the same version. 

Esesntialy, I think that the pip virtualenv installs should be the same
as the one apt installs.

If this can't be done at this point of the release, bugfixes would need
to be applied to pip's vendored libraries (and their vendored
libraries).

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1415028

Title:
  virtualenv's included pip does not use system libraries

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-virtualenv/+bug/1415028/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to