summarylogtreecommitdiffstats
path: root/site.py.patch
diff options
context:
space:
mode:
authorFantix King2016-01-20 00:45:31 +0800
committerFantix King2016-01-20 00:45:31 +0800
commitcf7e557845e4378239ff3af5413e9cb74371ce9e (patch)
tree345a5f0be83caf0488cef49d873cae9cb9ac0c2e /site.py.patch
parent92c99c1c71399e99ff708cef11c58bc3176ec27c (diff)
downloadaur-libx32-python.tar.gz
3.5.1-1.2 sys.path bugfix
Diffstat (limited to 'site.py.patch')
-rw-r--r--site.py.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/site.py.patch b/site.py.patch
new file mode 100644
index 00000000000..6957be3a5fe
--- /dev/null
+++ b/site.py.patch
@@ -0,0 +1,18 @@
+diff -ru Python-3.5.1/Lib/site.py Python-3.5.1.changed/Lib/site.py
+--- Python-3.5.1/Lib/site.py 2015-12-07 09:39:08.000000000 +0800
++++ Python-3.5.1.changed/Lib/site.py 2016-01-19 23:20:14.729999998 +0800
+@@ -303,12 +303,12 @@
+ seen.add(prefix)
+
+ if os.sep == '/':
+- sitepackages.append(os.path.join(prefix, "lib",
++ sitepackages.append(os.path.join(prefix, "libx32",
+ "python" + sys.version[:3],
+ "site-packages"))
+ else:
+ sitepackages.append(prefix)
+- sitepackages.append(os.path.join(prefix, "lib", "site-packages"))
++ sitepackages.append(os.path.join(prefix, "libx32", "site-packages"))
+ if sys.platform == "darwin":
+ # for framework builds *only* we add the standard Apple
+ # locations.