331a23041d
This new package allows to install the host version of setuptools for python3, regardless of what the default Python version is. It will be used by the python-package infrastructure to make sure that host Python packages that need python3 and setuptools have setuptools installed for Python 3. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Reviewed-by: Yegor Yefremov <yegorslists@googlemail.com> [Thomas: replace duplicated patch by a symlink to the same patch in package/python-setuptools/] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
25 lines
1012 B
Makefile
25 lines
1012 B
Makefile
################################################################################
|
|
#
|
|
# python3-setuptools
|
|
#
|
|
################################################################################
|
|
|
|
# Please keep in sync with
|
|
# package/python-setuptools/python-setuptools.mk
|
|
PYTHON3_SETUPTOOLS_VERSION = 40.6.3
|
|
PYTHON3_SETUPTOOLS_SOURCE = setuptools-$(PYTHON3_SETUPTOOLS_VERSION).zip
|
|
PYTHON3_SETUPTOOLS_SITE = https://files.pythonhosted.org/packages/37/1b/b25507861991beeade31473868463dad0e58b1978c209de27384ae541b0b
|
|
PYTHON3_SETUPTOOLS_LICENSE = MIT
|
|
PYTHON3_SETUPTOOLS_LICENSE_FILES = LICENSE
|
|
PYTHON3_SETUPTOOLS_SETUP_TYPE = setuptools
|
|
HOST_PYTHON3_SETUPTOOLS_DL_SUBDIR = python-setuptools
|
|
HOST_PYTHON3_SETUPTOOLS_NEEDS_HOST_PYTHON = python3
|
|
|
|
define HOST_PYTHON3_SETUPTOOLS_EXTRACT_CMDS
|
|
$(UNZIP) -d $(@D) $(HOST_PYTHON3_SETUPTOOLS_DL_DIR)/$(PYTHON3_SETUPTOOLS_SOURCE)
|
|
mv $(@D)/setuptools-$(PYTHON3_SETUPTOOLS_VERSION)/* $(@D)
|
|
$(RM) -r $(@D)/setuptools-$(PYTHON3_SETUPTOOLS_VERSION)
|
|
endef
|
|
|
|
$(eval $(host-python-package))
|