diff options
author | Lars Pedersen <lapeddk@gmail.com> | 2019-11-26 09:37:35 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2019-11-26 17:32:09 +0100 |
commit | 6496da8659d55375d54bef1d68148991b35023b1 (patch) | |
tree | a1590674c38a187701f517cb7990d8fba968f6c7 | |
parent | 460017909ddc947341637939d49ec477bb026460 (diff) | |
download | ptxdist-6496da8659d55375d54bef1d68148991b35023b1.tar.gz ptxdist-6496da8659d55375d54bef1d68148991b35023b1.tar.xz |
python3-setuptools: new package
Add python3-setuptools to target as some packages requires
the pkg_resources module.
Signed-off-by: Lars Pedersen <lapeddk@gmail.com>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | rules/host-python3-setuptools.make | 14 | ||||
-rw-r--r-- | rules/python3-setuptools.in | 10 | ||||
-rw-r--r-- | rules/python3-setuptools.make | 54 |
3 files changed, 64 insertions, 14 deletions
diff --git a/rules/host-python3-setuptools.make b/rules/host-python3-setuptools.make index 02a99deca..56dc98506 100644 --- a/rules/host-python3-setuptools.make +++ b/rules/host-python3-setuptools.make @@ -11,20 +11,6 @@ # HOST_PACKAGES-$(PTXCONF_HOST_PYTHON3_SETUPTOOLS) += host-python3-setuptools -# -# Paths and names -# -HOST_PYTHON3_SETUPTOOLS_VERSION := 41.6.0 -HOST_PYTHON3_SETUPTOOLS_MD5 := 5585a55bfc28474ef13cc0b1819c5a46 -HOST_PYTHON3_SETUPTOOLS := setuptools-$(HOST_PYTHON3_SETUPTOOLS_VERSION) -HOST_PYTHON3_SETUPTOOLS_SUFFIX := zip -HOST_PYTHON3_SETUPTOOLS_URL := https://pypi.io/packages/source/s/setuptools/$(HOST_PYTHON3_SETUPTOOLS).$(HOST_PYTHON3_SETUPTOOLS_SUFFIX) -HOST_PYTHON3_SETUPTOOLS_SOURCE := $(SRCDIR)/$(HOST_PYTHON3_SETUPTOOLS).$(HOST_PYTHON3_SETUPTOOLS_SUFFIX) -HOST_PYTHON3_SETUPTOOLS_DIR := $(HOST_BUILDDIR)/$(HOST_PYTHON3_SETUPTOOLS) -HOST_PYTHON3_SETUPTOOLS_LICENSE := MIT -HOST_PYTHON3_SETUPTOOLS_LICENSE_FILES := \ - file://LICENSE;md5=9a33897f1bca1160d7aad3835152e158 - # ---------------------------------------------------------------------------- # Prepare # ---------------------------------------------------------------------------- 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..935260741 --- /dev/null +++ b/rules/python3-setuptools.make @@ -0,0 +1,54 @@ +# -*-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 := MIT +HOST_PYTHON3_SETUPTOOLS_LICENSE_FILES := \ + file://LICENSE;md5=9a33897f1bca1160d7aad3835152e158 + +# ---------------------------------------------------------------------------- +# 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) + +# vim: syntax=make |