summaryrefslogtreecommitdiff
path: root/lang/python/python3/patches-setuptools
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2020-05-21 15:51:23 +0300
committerGitHub <noreply@github.com>2020-05-21 15:51:23 +0300
commit643b91abb3defc28fafff35c363dd04a9658fac4 (patch)
tree15764203d1373432cff6cec203ea8a984aad082d /lang/python/python3/patches-setuptools
parente10a32d9b1f1cac04a1fd8e4fc8159b8e2dd3fc0 (diff)
parent70a7f736c5d6fb9ebec1acc8b3e8ca77704361bf (diff)
Merge pull request #12245 from jefferyto/python3-setuptools-site-patch
python3-setuptools: Fix error when installing from source
Diffstat (limited to 'lang/python/python3/patches-setuptools')
-rw-r--r--lang/python/python3/patches-setuptools/004-site-patch.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/lang/python/python3/patches-setuptools/004-site-patch.patch b/lang/python/python3/patches-setuptools/004-site-patch.patch
new file mode 100644
index 000000000..39b8c9026
--- /dev/null
+++ b/lang/python/python3/patches-setuptools/004-site-patch.patch
@@ -0,0 +1,14 @@
+--- a/setuptools/command/easy_install.py
++++ b/setuptools/command/easy_install.py
+@@ -1315,7 +1315,10 @@ class easy_install(Command):
+ return # already did it, or don't need to
+
+ sitepy = os.path.join(self.install_dir, "site.py")
+- source = resource_string("setuptools", "site-patch.py")
++ try:
++ source = resource_string("setuptools", "site-patch.py")
++ except FileNotFoundError:
++ source = resource_string("setuptools", "site-patch.py.txt")
+ source = source.decode('utf-8')
+ current = ""
+