This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author cstratak
Recipients cstratak, dstufft, eric.araujo
Date 2017-02-10.10:14:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1486721661.65.0.755330059103.issue29523@psf.upfronthosting.co.za>
In-reply-to
Content
The latest versions of setuptools stopped bundling its dependencies and instead starting requiring them [0]. This seems to break virtualenvs as those dependencies are not bundled with python.

In order to reproduce it, replace the setuptools-28.8.0-py2.py3-none-any.whl with setuptools-34.1.1-py2.py3-none-any.whl at Lib/ensurepip/_bundled/ and change 

_SETUPTOOLS_VERSION = "28.8.0"

to 


_SETUPTOOLS_VERSION = "34.1.1"

Then configure, make and make install:

This message will appear first:
Could not find a version that satisfies the requirement packaging>=16.8 (from setuptools) (from versions: )
No matching distribution found for packaging>=16.8 (from setuptools)

Which is one of the new dependencies.

Then:
./python3.7 -m test test_venv -v

Where the EnsurePipTest will fail due to this assertion [1] at the do_test_with_pip test case with "No module named pip\n' != ''".

One way to fix this would be to bundle the other wheels with python, not sure if that would be the ideal approach though.

Attaching a patch for Lib/ensurepip/__init__.py. With this patch and adding the other wheels [2][3][4][5] at the _bundled directory fixes the issue.

[0] https://github.com/pypa/setuptools/blob/master/CHANGES.rst#v3400
[1] https://github.com/python/cpython/blob/master/Lib/test/test_venv.py#L384
[2] https://pypi.python.org/pypi/six/1.10.0
[3] https://pypi.python.org/pypi/appdirs/1.4.0
[4] https://pypi.python.org/pypi/packaging/16.8
[5] https://pypi.python.org/pypi/pyparsing/2.1.10
History
Date User Action Args
2017-02-10 10:14:21cstrataksetrecipients: + cstratak, eric.araujo, dstufft
2017-02-10 10:14:21cstrataksetmessageid: <1486721661.65.0.755330059103.issue29523@psf.upfronthosting.co.za>
2017-02-10 10:14:21cstrataklinkissue29523 messages
2017-02-10 10:14:21cstratakcreate