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

Remove file's directory from sys.path ASAP #805

Merged
merged 1 commit into from Oct 17, 2015

Conversation

Projects
None yet
1 participant
@Ivoz
Member

Ivoz commented Oct 2, 2015

This is needed to particularly when a new interpreter is used,
via -p/--python. Re-execing the same virtualenv.py will generally lead
to its path being added to the start of sys.path (as usual). And usually
its path will be the site-packages of the previous interpreter. This
will lead to issues if older backported packages are present in the
old environment (which will then get preference being imported).

Should fix #779, #763

Remove file's directory from sys.path ASAP
This is needed particularly when a new interpreter is used,
via -p/--python. Re-execing the same `virtualenv.py` will generally lead
to its path being added to the start of sys.path (as usual). And usually
its path will be the site-packages of the previous interpreter. This
will lead to issues if older backported packages are present in the
old environment (which will then get preference being imported).

Should fix #779, #774, #763

Ivoz added a commit that referenced this pull request Oct 17, 2015

Merge pull request #805 from Ivoz/early-syspath-removal
Remove file's directory from sys.path ASAP

@Ivoz Ivoz merged commit 42dfe53 into pypa:develop Oct 17, 2015

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details

@Ivoz Ivoz deleted the Ivoz:early-syspath-removal branch Oct 17, 2015

Ivoz added a commit that referenced this pull request Feb 12, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment