summaryrefslogtreecommitdiff
path: root/lang/python/python3
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2017-07-09 21:04:38 +0300
committerGitHub <noreply@github.com>2017-07-09 21:04:38 +0300
commit3c29561888b9b2c9386a6b75c88144ec70289ec8 (patch)
tree6c8de6cac9b8a6d37e4dfaf4230c3ba8e3727c61 /lang/python/python3
parent36112dea5b24b5934917e291e18aaa8822f39a43 (diff)
parentf9dddb6bb05cbad5f228d1c668d4e5f12994d57c (diff)
Merge pull request #4558 from commodo/python-cleanup1
python,python3: rename PyBuild/Compile rules & remove .egg-info from packages
Diffstat (limited to 'lang/python/python3')
-rw-r--r--lang/python/python3/files/python3-package-install.sh3
-rw-r--r--lang/python/python3/files/python3-package.mk4
2 files changed, 6 insertions, 1 deletions
diff --git a/lang/python/python3/files/python3-package-install.sh b/lang/python/python3/files/python3-package-install.sh
index cc1005189..ae5e17280 100644
--- a/lang/python/python3/files/python3-package-install.sh
+++ b/lang/python/python3/files/python3-package-install.sh
@@ -45,6 +45,9 @@ process_filespec "$src_dir" "$dst_dir" "$filespec" || {
exit 1
}
+# delete egg-info directories
+find "$dst_dir" -name "*.egg-info" | xargs rm -rf
+
if [ "$mode" == "sources" ] ; then
# Copy only python source files
find $dst_dir -not -name "*\.py" | xargs rm -f
diff --git a/lang/python/python3/files/python3-package.mk b/lang/python/python3/files/python3-package.mk
index 36a030c02..22ee527a1 100644
--- a/lang/python/python3/files/python3-package.mk
+++ b/lang/python/python3/files/python3-package.mk
@@ -132,8 +132,10 @@ define Py3Build/Compile/Default
)
endef
+Py3Build/Compile=$(Py3Build/Compile/Default)
+
ifeq ($(BUILD_VARIANT),python3)
define Build/Compile
- $(call Py3Build/Compile/Default)
+ $(call Py3Build/Compile)
endef
endif # python3