-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
mach_bootstrap.py may find system pip before virtualenv copy #8968
Comments
Also tracking downstream for FreeBSD. |
Relevant issue that prompted that commit: #7784 |
I believe this issue might be related to #10595. If the 'quote' kicks in for any reason (it is no-op most of the time), the virtualenv fails to activate - meaning the search path for executing binaries is not updated correctly. |
Since the virtualenv is already active at this point (assuming another bug hasn't prevented activation), I think it should be safe to replace |
For a more robust way and skipping the in-script virtualenv activation (which is tricky at best), you could also do this:
(which I think will also work in Windows, but might need checks for .bat/.cmd extensions). This can then be used for an installation test combined with upgrading, like this:
Please also note that sometimes an old |
thanks @campaul , I can build servo on my mac successfully by using your solution. |
f83fe9e makes sure that we find |
I ran into this issue before but I think I don't any more. Is there a simple way to test other than running the steps above (which worked fine for me)? |
Try removing |
Works fine for me. |
I'd better close this as fixed. Please ping me if this occurs again. |
Likely happens since 1a9263c. Also reported by @Yoric for OS X (MacPorts). To work around one may need to alter search order in
PIP_NAMES
e.g., preferpip2.7
beforepip-2.7
.Here's how the error looks on FreeBSD:
Adding a
print()
before and dropping-q
reveals more details:because virtualenv naming is different from downstream
The text was updated successfully, but these errors were encountered: