The tests in test_examples.py currently install straight into the parent environment. Unfortunately, this means that in the best case the examples are left installed, and in the worst the tests cannot be run because pip is set not to allow installing packages into the build environment (the error: externally-managed-environment):
$ pip list | grep example
example_hatchling 24.7.0
example_noop 100
example_setuppy 1.2.3
example_setuptools 2.3.4
Could you please make the tests use a dedicated venv (set up with system_site_packages=True and symlinks=True) for every test case?
The tests in
test_examples.pycurrently install straight into the parent environment. Unfortunately, this means that in the best case the examples are left installed, and in the worst the tests cannot be run becausepipis set not to allow installing packages into the build environment (theerror: externally-managed-environment):Could you please make the tests use a dedicated venv (set up with
system_site_packages=Trueandsymlinks=True) for every test case?