-
-
Notifications
You must be signed in to change notification settings - Fork 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
Fix setting PYTHONPATH on Python 2 not working #1673
Conversation
5781f4f
to
997d515
Compare
08db125
to
56fc536
Compare
Is there anything left that needs fixing? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still needs tests and changelog entry 👍
Could you give me some hints about where to add some tests? |
In that pr the test were adding brew Python to the ci matrix. Here you want a test inside test_create 👍set Python path, run create, check sys path of the debug property 👍 |
I'm blocked by #1683 to try locally to add tests :( |
ab7c12a
to
9268426
Compare
Any idea how you set UTF-8 strings in a Windows env? 🤔 |
Environment variables are Unicode in Windows, so I'm not quite sure the question makes sense. Having said that, if this is Python 2, |
My question is related to the CI failure. IIUC the dir contains Unicode chars and setting that as |
Ah, OK. So passing a general Unicode value through to the subprocess' environment. I don't think you can, in Python 2 (IIRC, you can only use characters that are valid in the system ANSI codepage) 🙁 (I may be wrong, it's a long while since I used Python 2). Sorry I can't be more help. |
1f48d16
to
90bf357
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jd needed to do quite a few changes here, but I think now things should be OK. Can you validate with your system?
90bf357
to
fd53491
Compare
@jd it's just how pythonpath is parsed at the interpreter level. |
str.startswith() is a little bit too naive to check if a directories are related.
fd53491
to
763bbe7
Compare
Hello, a fix for this issue has been released via virtualenv 20.0.8; see https://pypi.org/project/virtualenv/20.0.8/ (https://virtualenv.pypa.io/en/latest/changelog.html#v20-0-8-2020-03-04). Please give a try and report back if your issue has not been addressed; if not, please comment here, and we'll reopen the ticket. We want to apologize for the inconvenience this has caused you and say thanks for having patience while we resolve the unexpected bugs with this new major release. |
PYTHONPATH
-E
flag.