summaryrefslogtreecommitdiff
path: root/lang/python/python3/files
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/files
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/files')
-rw-r--r--lang/python/python3/files/python3-package-setuptools.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/lang/python/python3/files/python3-package-setuptools.mk b/lang/python/python3/files/python3-package-setuptools.mk
index 64a86b81d..3a562c262 100644
--- a/lang/python/python3/files/python3-package-setuptools.mk
+++ b/lang/python/python3/files/python3-package-setuptools.mk
@@ -24,6 +24,9 @@ define Py3Package/python3-setuptools/install
$(PKG_BUILD_DIR)/install-setuptools/usr/lib/python$(PYTHON3_VERSION)/site-packages/setuptools-$(PYTHON3_SETUPTOOLS_VERSION).dist-info \
$(PKG_BUILD_DIR)/install-setuptools/usr/lib/python$(PYTHON3_VERSION)/site-packages/easy_install.py \
$(1)/usr/lib/python$(PYTHON3_VERSION)/site-packages
+ $(CP) \
+ $(1)/usr/lib/python$(PYTHON3_VERSION)/site-packages/setuptools/site-patch.py \
+ $(1)/usr/lib/python$(PYTHON3_VERSION)/site-packages/setuptools/site-patch.py.txt
find $(1)/usr/lib/python$(PYTHON3_VERSION)/site-packages/ -path '*/__pycache__/*' -delete
find $(1)/usr/lib/python$(PYTHON3_VERSION)/site-packages/ -type d -name __pycache__ -delete
endef