summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Schwebel <r.schwebel@pengutronix.de>2015-06-03 11:39:49 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2015-06-03 18:26:52 +0200
commit777764becd34a73b425683b598741d37da1d0222 (patch)
tree7e6bad3f647af459fb6702f9638de64eae67f32e
parent0e09d5e4e514e5ab3710119d9d49af345a9a6359 (diff)
downloadptxdist-777764becd34a73b425683b598741d37da1d0222.tar.gz
ptxdist-777764becd34a73b425683b598741d37da1d0222.tar.xz
hosttools: add python setuptools
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/host-python-setuptools.in5
-rw-r--r--rules/host-python-setuptools.make58
2 files changed, 63 insertions, 0 deletions
diff --git a/rules/host-python-setuptools.in b/rules/host-python-setuptools.in
new file mode 100644
index 000000000..e97bf6ac5
--- /dev/null
+++ b/rules/host-python-setuptools.in
@@ -0,0 +1,5 @@
+## SECTION=hosttools_noprompt
+
+config HOST_PYTHON_SETUPTOOLS
+ tristate
+ select HOST_PYTHON
diff --git a/rules/host-python-setuptools.make b/rules/host-python-setuptools.make
new file mode 100644
index 000000000..040eaa619
--- /dev/null
+++ b/rules/host-python-setuptools.make
@@ -0,0 +1,58 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2014 by Michael Olbrich <m.olbrich@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+HOST_PACKAGES-$(PTXCONF_HOST_PYTHON_SETUPTOOLS) += host-python-setuptools
+
+#
+# Paths and names
+#
+HOST_PYTHON_SETUPTOOLS_VERSION := 17.0
+HOST_PYTHON_SETUPTOOLS_MD5 := a661715d164163ec7a01a9277a6d49da
+HOST_PYTHON_SETUPTOOLS := setuptools-$(HOST_PYTHON_SETUPTOOLS_VERSION)
+HOST_PYTHON_SETUPTOOLS_SUFFIX := zip
+HOST_PYTHON_SETUPTOOLS_URL := https://pypi.python.org/packages/source/s/setuptools/$(HOST_PYTHON_SETUPTOOLS).$(HOST_PYTHON_SETUPTOOLS_SUFFIX)
+HOST_PYTHON_SETUPTOOLS_SOURCE := $(SRCDIR)/$(HOST_PYTHON_SETUPTOOLS).$(HOST_PYTHON_SETUPTOOLS_SUFFIX)
+HOST_PYTHON_SETUPTOOLS_DIR := $(HOST_BUILDDIR)/$(HOST_PYTHON_SETUPTOOLS)
+HOST_PYTHON_SETUPTOOLS_LICENSE := PSF, ZPL
+
+HOST_PYTHON = $(PTXCONF_SYSROOT_HOST)/bin/python$(PYTHON_MAJORMINOR)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+HOST_PYTHON_SETUPTOOLS_CONF_TOOL := NO
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/host-python-setuptools.compile:
+ @$(call targetinfo)
+ @cd $(HOST_PYTHON_SETUPTOOLS_DIR)/$(HOST_PYTHON_SETUPTOOLS_SUBDIR) && \
+ $(HOST_ENV) $(HOST_PYTHON) \
+ setup.py build
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/host-python-setuptools.install:
+ @$(call targetinfo)
+ @cd $(HOST_PYTHON_SETUPTOOLS_DIR)/$(HOST_PYTHON_SETUPTOOLS_SUBDIR) && \
+ $(HOST_ENV) $(HOST_PYTHON) \
+ setup.py install --root=$(HOST_PYTHON_SETUPTOOLS_PKGDIR) --prefix=
+ @$(call touch)
+
+# vim: syntax=make