Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upmach_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_NAMESe.g., preferpip2.7beforepip-2.7.Here's how the error looks on FreeBSD:
Adding a
print()before and dropping-qreveals more details:because virtualenv naming is different from downstream