Open mgorny opened 1 month ago
That sounds possible... I've already taken a step in that direction in #107 by isolating the package builds.
Why is it important that the venv be created with system_site_packages=True
?
I presumed you need some of the dependencies there, though perhaps you don't. Then I guess it's mostly a matter whether you want venv to install pip
from the Python bundle or use system pip
.
Ah, also please note that we actually need the tests to work fully offline, as all Gentoo builds are isolated from the Internet for security reasons.
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 becausepip
is 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=True
andsymlinks=True
) for every test case?