diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2016-07-23 04:17:27 -0400 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2016-07-23 04:17:27 -0400 |
| commit | e211f4584ac59f404a3e1a17c6b54dff18468cf6 (patch) | |
| tree | 56d4a29528b9077985b42e9e8f868039a1fd19e5 | |
| parent | 9b058f7a10a4cca6541ef9f02b5a3a2703aacaea (diff) | |
| download | python-setuptools-git-e211f4584ac59f404a3e1a17c6b54dff18468cf6.tar.gz | |
Set sys path technique to raw by default. Fixes #674.
| -rw-r--r-- | CHANGES.rst | 19 | ||||
| -rwxr-xr-x | setuptools/command/easy_install.py | 2 |
2 files changed, 20 insertions, 1 deletions
diff --git a/CHANGES.rst b/CHANGES.rst index 97f46386..83c10ce7 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -2,6 +2,25 @@ CHANGES ======= +v25.0.0 +------- + +* #674: Default ``sys.path`` manipulation by easy-install.pth + is now "raw", meaning that when writing easy-install.pth + during any install operation, the ``sys.path`` will not be + rewritten, giving preference to easy_installed packages. + + To retain the old behavior when using any easy_install + operation (including ``setup.py install`` when setuptools is + present), set the environment variable: + + SETUPTOOLS_SYS_PATH_TECHNIQUE=rewrite + + This project hopes that that few if any environments find it + necessary to retain the old behavior, and intends to drop + support for it altogether in a future release. Please report + any relevant concerns in the ticket for this change. + v24.3.1 ------- diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index 19f8286b..0e0dc2c4 100755 --- a/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py @@ -1661,7 +1661,7 @@ class RewritePthDistributions(PthDistributions): """) -if os.environ.get('SETUPTOOLS_SYS_PATH_TECHNIQUE', 'rewrite') == 'rewrite': +if os.environ.get('SETUPTOOLS_SYS_PATH_TECHNIQUE', 'raw') == 'rewrite': PthDistributions = RewritePthDistributions |
