Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
b0b9dae6
Commit
b0b9dae6
authored
Aug 19, 2015
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow disabling of the sys.path rewrite technique using an environment variable.
parent
e2124f4d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
CHANGES.txt
CHANGES.txt
+15
-0
setuptools/command/easy_install.py
setuptools/command/easy_install.py
+2
-1
No files found.
CHANGES.txt
View file @
b0b9dae6
...
...
@@ -2,6 +2,21 @@
CHANGES
=======
----
18.3
----
* Setuptools now allows disabling of the manipulation of the sys.path
during the processing of the easy-install.pth file. To do so, set
the environment variable ``SETUPTOOLS_SYS_PATH_TECHNIQUE`` to
anything but "rewrite" (consider "raw"). During any install operation
with manipulation disabled, setuptools packages will be appended to
sys.path naturally.
Future versions may change the default behavior to disable
manipulation. If so, the default behavior can be retained by setting
the variable to "rewrite".
----
18.2
----
...
...
setuptools/command/easy_install.py
View file @
b0b9dae6
...
...
@@ -1612,7 +1612,8 @@ class RewritePthDistributions(PthDistributions):
"""
)
PthDistributions
=
RewritePthDistributions
if
os
.
environ
.
get
(
'SETUPTOOLS_SYS_PATH_TECHNIQUE'
,
'rewrite'
)
==
'rewrite'
:
PthDistributions
=
RewritePthDistributions
def
_first_line_re
():
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment