summaryrefslogtreecommitdiffstats
path: root/rules/python3.make
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2016-05-26 08:14:37 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2016-05-26 08:15:08 +0200
commit6db4160c4f951aed3b56dbce9e94947b65f79d2b (patch)
treec1827165b809222fa13e053f43df9aba93b2e49b /rules/python3.make
parent7536ab9c459b6ecf039a3230d420407e62fe4856 (diff)
downloadptxdist-6db4160c4f951aed3b56dbce9e94947b65f79d2b.tar.gz
ptxdist-6db4160c4f951aed3b56dbce9e94947b65f79d2b.tar.xz
python3: use install_glob
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/python3.make')
-rw-r--r--rules/python3.make18
1 files changed, 2 insertions, 16 deletions
diff --git a/rules/python3.make b/rules/python3.make
index 8294bbead..1ddbeeafe 100644
--- a/rules/python3.make
+++ b/rules/python3.make
@@ -132,14 +132,6 @@ PYTHON3_SKIP-$(call ptx/opt-dis, PTXCONF_PYTHON3_LIBTK) += tkinter
PYTHON3_SKIP-$(call ptx/opt-dis, PTXCONF_PYTHON3_IDLELIB) += idlelib
PYTHON3_SKIP-$(call ptx/opt-dis, PTXCONF_PYTHON3_DISTUTILS) += distutils
-ifneq ($(PYTHON3_SKIP-y),)
-PYTHON3_SKIP_LIST_PRE :=-o -name $(quote)
-PYTHON3_SKIP_LIST_POST :=$(quote)
-
-PYTHON3_SKIP_LIST := $(subst $(space),$(PYTHON3_SKIP_LIST_POST) $(PYTHON3_SKIP_LIST_PRE),$(PYTHON3_SKIP-y))
-PYTHON3_SKIP_LIST := $(PYTHON3_SKIP_LIST_PRE)$(PYTHON3_SKIP_LIST)$(PYTHON3_SKIP_LIST_POST)
-endif
-
$(STATEDIR)/python3.targetinstall:
@$(call targetinfo)
@@ -150,14 +142,8 @@ $(STATEDIR)/python3.targetinstall:
@$(call install_fixup, python3,AUTHOR,"Han Sierkstra <han@protonic.nl>")
@$(call install_fixup, python3,DESCRIPTION,missing)
- @cd $(PYTHON3_PKGDIR) && \
- find ./usr/lib/python$(PYTHON3_MAJORMINOR) \
- \( -name test -o -name tests -o -name __pycache__ \
- $(PYTHON3_SKIP_LIST) \) -prune \
- -o -name "*.so" -print -o -name "*.pyc" -print | \
- while read file; do \
- $(call install_copy, python3, 0, 0, 644, -, $${file##.}); \
- done
+ @$(call install_glob, python3, 0, 0, -, /usr/lib/python$(PYTHON3_MAJORMINOR), \
+ *.so *.pyc, */test */tests */__pycache__ $(PYTHON3_SKIP-y))
@$(call install_copy, python3, 0, 0, 755, -, /usr/bin/python$(PYTHON3_MAJORMINOR))
@$(call install_lib, python3, 0, 0, 644, libpython$(PYTHON3_MAJORMINOR)m)