Repository navigation
Make virtualenv more tolerant of spaces in directory names - #8394
Merged
Merged
Conversation
Contributor
Author
|
I confirmed this works locally |
Member
|
@bors-servo r+ |
Contributor
|
📌 Commit 4ff8d3a has been approved by |
Contributor
|
⌛ Testing commit 4ff8d3a with merge 6e8071f... |
bors-servo
pushed a commit
that referenced
this pull request
Nov 7, 2015
Make virtualenv more tolerant of spaces in directory names Fixes #8390 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8394) <!-- Reviewable:end -->
Contributor
|
💔 Test failed - gonk |
Contributor
Author
|
@bors-servo retry |
Contributor
|
⌛ Testing commit 4ff8d3a with merge abf2dfe... |
bors-servo
pushed a commit
that referenced
this pull request
Nov 7, 2015
Make virtualenv more tolerant of spaces in directory names Fixes #8390 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8394) <!-- Reviewable:end -->
Contributor
|
💔 Test failed - linux-rel |
Contributor
Author
|
@bors-servo retry yet another buildbot issue |
Contributor
|
⚡ Previous build results for android, gonk, linux-dev, mac-dev-ref-unit, mac-rel-css, mac-rel-wpt are reusable. Rebuilding only linux-rel... |
Contributor
|
☀️ Test successful - android, gonk, linux-dev, linux-rel, mac-dev-ref-unit, mac-rel-css, mac-rel-wpt |
This was referenced Apr 13, 2016
upsuper
pushed a commit
to upsuper-forks/servo
that referenced
this pull request
Jul 19, 2016
There are two changes: * remove quoting which causes virtuaenv not activate * check virtualenv actually activated If the quoting added in the fix in servo#8394 (4ff8d3a) kicks in, it causes virtualenv to fail to activate. For the common case it is no op: ```python >>> from pipes import quote >>> print quote('common/case') common/case ``` When the path actually needs quoting, this is what happens: ```python >>> print quote('test spaces') 'test spaces' >>> print quote('windows\\path') 'windows\\path' ``` Note the embedded quotes. Virtualenv in activate_this.py uses __file__ to build the path that should be added to PATH: ```python >>> print os.getcwd() C:\software\git >>> print os.path.abspath(quote('windows\\path')) C:\software\git\'windows\path' >>> ``` The constructed path is not valid. Adding it at the beginning of PATH has no effect. This issue affects any case when the call to `quote` kicks in.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #8390