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

Merged
merged 1 commit into from Oct 17, 2015

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

@Ivoz @Ivoz Ivoz 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
348f80c
@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 Ivoz added a commit that referenced this pull request Feb 12, 2016
@Ivoz Ivoz Clarify changelog entry for #805 65253e5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment