From 7a6eb38a36a7c2f437d43f240994c4bfd8c2cc91 Mon Sep 17 00:00:00 2001 From: Jeff Tang Date: Tue, 7 Jul 2015 11:14:14 -0400 Subject: [PATCH] add patches to stop '/Library/Python/X.X/site-packages' from being added to sys.path --- .../003_system_library_path_in_sys_path.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 plugins/python-build/share/python-build/patches/2.7.10/Python-2.7.10/003_system_library_path_in_sys_path.patch diff --git a/plugins/python-build/share/python-build/patches/2.7.10/Python-2.7.10/003_system_library_path_in_sys_path.patch b/plugins/python-build/share/python-build/patches/2.7.10/Python-2.7.10/003_system_library_path_in_sys_path.patch new file mode 100644 index 0000000000..4da2c73d03 --- /dev/null +++ b/plugins/python-build/share/python-build/patches/2.7.10/Python-2.7.10/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.10/Lib/site.py ./Lib/site.py +--- ../Python-2.7.10/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"))