488055eb58
Migrate to setuptools infrastructure. Add new host-python-packaging dependency. Refresh zmq version override patch. Signed-off-by: James Hilliard <james.hilliard1@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
30 lines
1.1 KiB
Makefile
30 lines
1.1 KiB
Makefile
################################################################################
|
|
#
|
|
# python-pyzmq
|
|
#
|
|
################################################################################
|
|
|
|
PYTHON_PYZMQ_VERSION = 24.0.1
|
|
PYTHON_PYZMQ_SOURCE = pyzmq-$(PYTHON_PYZMQ_VERSION).tar.gz
|
|
PYTHON_PYZMQ_SITE = https://files.pythonhosted.org/packages/46/0d/b06cf99a64d4187632f4ac9ddf6be99cd35de06fe72d75140496a8e0eef5
|
|
PYTHON_PYZMQ_LICENSE = LGPL-3.0+, BSD-3-Clause, Apache-2.0
|
|
# Apache license only online: http://www.apache.org/licenses/LICENSE-2.0
|
|
PYTHON_PYZMQ_LICENSE_FILES = COPYING.LESSER COPYING.BSD
|
|
PYTHON_PYZMQ_DEPENDENCIES = host-python-packaging zeromq
|
|
PYTHON_PYZMQ_SETUP_TYPE = setuptools
|
|
PYTHON_PYZMQ_BUILD_OPTS = --zmq=$(STAGING_DIR)/usr
|
|
|
|
# Due to issues with cross-compiling, hardcode to the zeromq in BR
|
|
define PYTHON_PYZMQ_PATCH_ZEROMQ_VERSION
|
|
$(SED) 's/##ZEROMQ_VERSION##/$(ZEROMQ_VERSION)/' \
|
|
$(@D)/buildutils/detect.py
|
|
endef
|
|
|
|
PYTHON_PYZMQ_POST_PATCH_HOOKS += PYTHON_PYZMQ_PATCH_ZEROMQ_VERSION
|
|
|
|
ifeq ($(BR2_PACKAGE_ZEROMQ_DRAFTS),y)
|
|
PYTHON_PYZMQ_BUILD_OPTS += --enable-drafts
|
|
endif
|
|
|
|
$(eval $(python-package))
|