Page MenuHomePhabricator

tests: make test-install.t work on debian systems
ClosedPublic

Authored by spectral on Jul 24 2020, 6:25 PM.

Details

Summary

Debian systems, at least as of their version of python3.8 on my machine, have
rewritten some logic in ensurepip to make it not use the wheels in pip._bundled,
but instead to use wheels installed in /usr/share/python-wheels. It copies these
wheels into the virtual environment when it's created, and installenv/bin/pip is
able to see them and use them, so it thinks that 'wheel' is installed, and that
it can build the mercurial wheel instead of just installing it. For some reason,
when it subprocesses to run python3 setup.py bdist_wheel, it setup.py does
*not* have the 'wheel' wheel available, and we get an error message.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

spectral created this revision.Jul 24 2020, 6:25 PM
indygreg accepted this revision.Aug 8 2020, 4:32 PM
indygreg added a subscriber: indygreg.

Debian's perturbations to how Python is packaged continue to confound me. There's aren't enough Picard facepalm memes to express my feelings on the matter.

This revision is now accepted and ready to land.Aug 8 2020, 4:32 PM
This revision was automatically updated to reflect the committed changes.