-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't require virtualenv #20019
Comments
Looks like the answer for Chromium is |
Actually, that |
In Chromium, we set --skip-venv-setup and also set --venv to a directory with an already-setup venv. |
I tried #20026 and for me locally on macOS, it means |
After struggling in #27377 I wonder if we still need
The @jgraham @gsnedders before I go too far down this path, are there complications here I'm not aware of yet? |
In general I like this idea. I just poked at it and quickly ran into https://stackoverflow.com/questions/27462582/how-can-i-activate-a-pyvenv-vitrualenv-from-within-python-activate-this-py-was (we're using |
Aha, so that explains something. I didn't understand what I also noticed there was no |
I would at least be newrous if we didn't copy ~all of |
How difficult would it be to move to creating a subprocess and invoking the venv |
@gsnedders I've experimented with that, invoking But I'm not too sure about that. I'm considering this also in light of web-platform-tests/rfcs#82, which might end up with a suggestion that changes how we currently use virtualenv, so right now I'm not attempting to just swap out virtualenv for |
Note that there may still be differences due to What I was suggesting was that the main process wouldn't run anything within the |
@gsnedders Yeah, that's an idea worth exploring. When using |
When working on #19940 I had this question: do
pip
andvirtualenv
really need to be on PATH, or could the instructions be simplified by using them as modules instead?It looks like
./wpt run
never invokespip
internally, and running withoutpip
on PATH works.For
virtualenv
, however, not having it on PATH runs into this code:wpt/tools/wpt/virtualenv.py
Lines 28 to 30 in ccbf1f9
Finding
virtualenv
in a way similar topip
here would remove the requirement:wpt/tools/wpt/virtualenv.py
Lines 48 to 59 in ccbf1f9
Alternatively, using
pip
andvirtualenv
aspython -m pip/virtualenv
or as Python modules could remove the requirement.@jgraham are there complexities hiding here that I haven't run into yet?
@LukeZielinski how is this dealt with in Chromium?
The text was updated successfully, but these errors were encountered: