浏览代码

Merge pull request #355 from mrjefftang/master

2.7.9 - Stop '/Library/Python/X.X/site-packages' from being added to sys.path
pull/313/merge
Yamashita, Yuu 9 年前
父节点
当前提交
88270e83e8
共有 1 个文件被更改,包括 13 次插入0 次删除
  1. +13
    -0
      plugins/python-build/share/python-build/patches/2.7.9/Python-2.7.9/003_system_library_path_in_sys_path.patch

+ 13
- 0
plugins/python-build/share/python-build/patches/2.7.9/Python-2.7.9/003_system_library_path_in_sys_path.patch 查看文件

@ -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"))

正在加载...
取消
保存