mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
add patches to stop '/Library/Python/X.X/site-packages' from being added to sys.path
This commit is contained in:
parent
5dc3ee95fd
commit
bc025641c2
1 changed files with 13 additions and 0 deletions
|
@ -0,0 +1,13 @@
|
|||
Only in .: 003_system_library_path_in_sys_path.patch
|
||||
diff -ur ../Python-2.7.9/Lib/site.py ./Lib/site.py
|
||||
--- ../Python-2.7.9/Lib/site.py 2014-06-30 05:05:30.000000000 +0300
|
||||
+++ ./Lib/site.py 2014-12-12 11:42:33.000000000 +0200
|
||||
@@ -300,7 +300,7 @@
|
||||
# locations.
|
||||
from sysconfig import get_config_var
|
||||
framework = get_config_var("PYTHONFRAMEWORK")
|
||||
- if framework:
|
||||
+ if False and framework:
|
||||
sitepackages.append(
|
||||
os.path.join("/Library", framework,
|
||||
sys.version[:3], "site-packages"))
|
Loading…
Reference in a new issue