aboutsummaryrefslogtreecommitdiff
path: root/package/python-setuptools/python-setuptools.mk
diff options
context:
space:
mode:
authorGravatar Yegor Yefremov <yegorslists@googlemail.com>2017-06-15 10:03:19 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-06-15 22:29:22 +0200
commit5896bb8aea975fdd811eec30552fd65e5aa8dee2 (patch)
tree36a70aefe69554f71f9f5a9673121a8bbceb0bda /package/python-setuptools/python-setuptools.mk
parentbc89353ac24ab8ac032d87bab7f00146348d6d96 (diff)
downloadbuildroot-5896bb8aea975fdd811eec30552fd65e5aa8dee2.tar.gz
buildroot-5896bb8aea975fdd811eec30552fd65e5aa8dee2.tar.bz2
python-setuptools: bump to version 36.0.1
Recent setuptools versions require bootstrap.py to be invoked before the standard setup process. So create such pre configure hooks for both host and target versions. Change download location to GitHub because setuptools doesn't provide *.tar.gz any longer. Fix legal info. setuptools is now licensed under MIT licence. Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/python-setuptools/python-setuptools.mk')
-rw-r--r--package/python-setuptools/python-setuptools.mk18
1 files changed, 13 insertions, 5 deletions
diff --git a/package/python-setuptools/python-setuptools.mk b/package/python-setuptools/python-setuptools.mk
index 15edc6fd07..1bdb78889f 100644
--- a/package/python-setuptools/python-setuptools.mk
+++ b/package/python-setuptools/python-setuptools.mk
@@ -4,12 +4,20 @@
#
################################################################################
-PYTHON_SETUPTOOLS_VERSION = 18.7.1
-PYTHON_SETUPTOOLS_SOURCE = setuptools-$(PYTHON_SETUPTOOLS_VERSION).tar.gz
-PYTHON_SETUPTOOLS_SITE = http://pypi.python.org/packages/source/s/setuptools
-PYTHON_SETUPTOOLS_LICENSE = Python Software Foundation or Zope Public License
-PYTHON_SETUPTOOLS_LICENSE_FILES = PKG-INFO
+PYTHON_SETUPTOOLS_VERSION = v36.0.1
+PYTHON_SETUPTOOLS_SITE = $(call github,pypa,setuptools,$(PYTHON_SETUPTOOLS_VERSION))
+PYTHON_SETUPTOOLS_LICENSE = MIT
+PYTHON_SETUPTOOLS_LICENSE_FILES = LICENSE
PYTHON_SETUPTOOLS_SETUP_TYPE = setuptools
+# recent setuptools versions require bootstrap.py to be invoked
+# before the standard setup process.
+define PYTHON_SETUPTOOLS_RUN_BOOTSTRAP
+ cd $(@D) && $(HOST_DIR)/usr/bin/python ./bootstrap.py
+endef
+
+PYTHON_SETUPTOOLS_PRE_CONFIGURE_HOOKS = PYTHON_SETUPTOOLS_RUN_BOOTSTRAP
+HOST_PYTHON_SETUPTOOLS_PRE_CONFIGURE_HOOKS = PYTHON_SETUPTOOLS_RUN_BOOTSTRAP
+
$(eval $(python-package))
$(eval $(host-python-package))