From: Lars Pedersen <lapeddk@gmail.com>
To: ptxdist@pengutronix.de
Cc: Lars Pedersen <lapeddk@gmail.com>
Subject: [ptxdist] [PATCH] python3-setuptools: new package
Date: Tue, 19 Nov 2019 15:53:43 +0100 [thread overview]
Message-ID: <20191119145343.2740-1-lapeddk@gmail.com> (raw)
Add python3-setuptools to target as some packages requires
the pkg_resources module.
Signed-off-by: Lars Pedersen <lapeddk@gmail.com>
---
rules/python3-setuptools.in | 10 ++++++
rules/python3-setuptools.make | 60 +++++++++++++++++++++++++++++++++++
2 files changed, 70 insertions(+)
create mode 100644 rules/python3-setuptools.in
create mode 100644 rules/python3-setuptools.make
diff --git a/rules/python3-setuptools.in b/rules/python3-setuptools.in
new file mode 100644
index 000000000..fbed4cccb
--- /dev/null
+++ b/rules/python3-setuptools.in
@@ -0,0 +1,10 @@
+## SECTION=python3
+
+config PYTHON3_SETUPTOOLS
+ tristate
+ prompt "python3-setuptools"
+ select PYTHON3
+ help
+ Setuptools is a package development process library designed to
+ facilitate packaging Python projects by enhancing the Python
+ standard library distutils.
diff --git a/rules/python3-setuptools.make b/rules/python3-setuptools.make
new file mode 100644
index 000000000..7200ae4dc
--- /dev/null
+++ b/rules/python3-setuptools.make
@@ -0,0 +1,60 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2019 by Lars Pedersen <lapeddk@gmail.com>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_PYTHON3_SETUPTOOLS) += python3-setuptools
+
+#
+# Paths and names
+#
+PYTHON3_SETUPTOOLS_VERSION := 41.6.0
+PYTHON3_SETUPTOOLS_MD5 := 5585a55bfc28474ef13cc0b1819c5a46
+PYTHON3_SETUPTOOLS := setuptools-$(PYTHON3_SETUPTOOLS_VERSION)
+PYTHON3_SETUPTOOLS_SUFFIX := zip
+PYTHON3_SETUPTOOLS_URL := https://files.pythonhosted.org/packages/source/s/setuptools/$(PYTHON3_SETUPTOOLS).$(PYTHON3_SETUPTOOLS_SUFFIX)
+PYTHON3_SETUPTOOLS_SOURCE := $(SRCDIR)/$(PYTHON3_SETUPTOOLS).$(PYTHON3_SETUPTOOLS_SUFFIX)
+PYTHON3_SETUPTOOLS_DIR := $(BUILDDIR)/$(PYTHON3_SETUPTOOLS)
+PYTHON3_SETUPTOOLS_LICENSE := PSF AND ZPL
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PYTHON3_SETUPTOOLS_CONF_TOOL := python3
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/python3-setuptools.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, python3-setuptools)
+ @$(call install_fixup, python3-setuptools,PRIORITY,optional)
+ @$(call install_fixup, python3-setuptools,SECTION,base)
+ @$(call install_fixup, python3-setuptools,AUTHOR,"Lars Pedersen <lapeddk@gmail.com>")
+ @$(call install_fixup, python3-setuptools,DESCRIPTION,missing)
+
+ @$(call install_glob,python3-setuptools, 0, 0, -, \
+ /usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages,, *.py)
+
+ @$(call install_finish, python3-setuptools)
+
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+#$(STATEDIR)/python3-setuptools.clean:
+# @$(call targetinfo)
+# @$(call clean_pkg, PYTHON3_SETUPTOOLS)
+
+# vim: syntax=make
--
2.23.0
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
next reply other threads:[~2019-11-19 14:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-19 14:53 Lars Pedersen [this message]
2019-11-25 6:46 ` Michael Olbrich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191119145343.2740-1-lapeddk@gmail.com \
--to=lapeddk@gmail.com \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox