summaryrefslogtreecommitdiffstats
path: root/rules/python3-py.make
diff options
context:
space:
mode:
authorPhilipp Zabel <p.zabel@pengutronix.de>2020-07-03 13:57:06 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2020-07-05 11:04:44 +0200
commitc97d8880f0837b8bc78da5f527203ea7cf07d902 (patch)
treeb24cbbc6262b7d63fbeae80c8a5b6d6b1fa4da93 /rules/python3-py.make
parent7324654856c4fbb70f6fd1cb8b78a646b7ff2376 (diff)
downloadptxdist-c97d8880f0837b8bc78da5f527203ea7cf07d902.tar.gz
ptxdist-c97d8880f0837b8bc78da5f527203ea7cf07d902.tar.xz
python3-py: new package
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Message-Id: <20200703115710.30041-6-p.zabel@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/python3-py.make')
-rw-r--r--rules/python3-py.make54
1 files changed, 54 insertions, 0 deletions
diff --git a/rules/python3-py.make b/rules/python3-py.make
new file mode 100644
index 000000000..f1e80b915
--- /dev/null
+++ b/rules/python3-py.make
@@ -0,0 +1,54 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2020 by Philipp Zabel <p.zabel@pengutronix.de>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_PYTHON3_PY) += python3-py
+
+#
+# Paths and names
+#
+PYTHON3_PY_VERSION := 1.9.0
+PYTHON3_PY_MD5 := b80db4e61eef724f49feb4d20b649e62
+PYTHON3_PY := py-$(PYTHON3_PY_VERSION)
+PYTHON3_PY_SUFFIX := tar.gz
+PYTHON3_PY_URL := https://pypi.python.org/packages/source/p/py/$(PYTHON3_PY).$(PYTHON3_PY_SUFFIX)
+PYTHON3_PY_SOURCE := $(SRCDIR)/$(PYTHON3_PY).$(PYTHON3_PY_SUFFIX)
+PYTHON3_PY_DIR := $(BUILDDIR)/$(PYTHON3_PY)
+PYTHON3_PY_LICENSE := MIT
+PYTHON3_PY_LICENSE_FILES := \
+ file://LICENSE;md5=a6bb0320b04a0a503f12f69fea479de9
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PYTHON3_PY_CONF_TOOL := python3
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/python3-py.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, python3-py)
+ @$(call install_fixup, python3-py, PRIORITY, optional)
+ @$(call install_fixup, python3-py, SECTION, base)
+ @$(call install_fixup, python3-py, AUTHOR, "Philipp Zabel <p.zabel@pengutronix.de>")
+ @$(call install_fixup, python3-py, DESCRIPTION, missing)
+
+ @$(call install_glob, python3-py, 0, 0, -, \
+ /usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages,, *.py)
+
+ @$(call install_finish, python3-py)
+
+ @$(call touch)
+
+# vim: syntax=make