[Updated] D8813: tests: make test-install.t work on debian systems
spectral (Kyle Lippincott)
phabricator at mercurial-scm.org
Sat Aug 8 21:01:34 UTC 2020
Closed by commit rHGd71693f799a0: tests: make test-install.t work on debian systems (authored by spectral).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D8813?vs=22093&id=22367
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D8813/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D8813
AFFECTED FILES
tests/test-install.t
CHANGE DETAILS
diff --git a/tests/test-install.t b/tests/test-install.t
--- a/tests/test-install.t
+++ b/tests/test-install.t
@@ -187,6 +187,14 @@
#if py3 ensurepip
$ "$PYTHON" -m venv installenv >> pip.log
+Hack: Debian does something a bit different in ensurepip.bootstrap. This makes
+it so that pip thinks the 'wheel' wheel is installed so it can build wheels;
+when it goes to try, however, it shells out to run `python3 -u <setup.py>`,
+that *doesn't* get the 'wheel' wheel, and it fails with an invalid command
+'bdist_wheel'. To fix this, we just delete the wheel from where Debian put it in
+our virtual env. Then pip doesn't think it's installed and doesn't try to build.
+ $ rm installenv/share/python-wheels/wheel-*.whl >/dev/null 2>&1 || true
+
Note: we use this weird path to run pip and hg to avoid platform differences,
since it's bin on most platforms but Scripts on Windows.
$ ./installenv/*/pip install --no-index $TESTDIR/.. >> pip.log
To: spectral, #hg-reviewers, indygreg
Cc: indygreg, mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20200808/2e2f9397/attachment-0002.html>
More information about the Mercurial-patches
mailing list