Skip to content

Commit e211f45

Browse files
committed
Set sys path technique to raw by default. Fixes #674.
1 parent 9b058f7 commit e211f45

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

CHANGES.rst

+19
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,25 @@
22
CHANGES
33
=======
44

5+
v25.0.0
6+
-------
7+
8+
* #674: Default ``sys.path`` manipulation by easy-install.pth
9+
is now "raw", meaning that when writing easy-install.pth
10+
during any install operation, the ``sys.path`` will not be
11+
rewritten, giving preference to easy_installed packages.
12+
13+
To retain the old behavior when using any easy_install
14+
operation (including ``setup.py install`` when setuptools is
15+
present), set the environment variable:
16+
17+
SETUPTOOLS_SYS_PATH_TECHNIQUE=rewrite
18+
19+
This project hopes that that few if any environments find it
20+
necessary to retain the old behavior, and intends to drop
21+
support for it altogether in a future release. Please report
22+
any relevant concerns in the ticket for this change.
23+
524
v24.3.1
625
-------
726

setuptools/command/easy_install.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1661,7 +1661,7 @@ def _wrap_lines(cls, lines):
16611661
""")
16621662

16631663

1664-
if os.environ.get('SETUPTOOLS_SYS_PATH_TECHNIQUE', 'rewrite') == 'rewrite':
1664+
if os.environ.get('SETUPTOOLS_SYS_PATH_TECHNIQUE', 'raw') == 'rewrite':
16651665
PthDistributions = RewritePthDistributions
16661666

16671667

0 commit comments

Comments
 (0)