Skip to content

run-tests: create a venv to install hg

The goal is to prepare the modernization of the build system (remove most direct imports of distutils, as in !1009).

Calling python setup.py is deprecated so we should instead use pip.

There is a chance that installing Mercurial in a virtual env would nicely simplify run-tests.py.

An difficulty is that the approach is currently totally different (tweaking PYTHONPATH + hacks with symlinks) so this might lead to a lot of changes.

Another approach would be to use without virtual environment pip install . --target=..., which installs the packages in the target dir and the binaries in target/bin (or Scripts on Windows I guess).

CC @marmoute

Merge request reports

Loading