mirror of
https://git.busybox.net/buildroot.git
synced 2024-11-24 14:03:29 +08:00
8937db8dd5
Now that setuptools and its dependencies are using pep517 we can migrate the setuptools infrastructure itself to use the pep517 build frontend. As part of this we need to migrate the all python packages using _BUILD_OPTS to the new config settings format used by the pep517 build frontend. We need to use a setup.cfg file to pass the pg_config path when building python-psycopg2 as this package needs the pg_config path for all internal build stages while -C--build-option= only passes the flag to the internal bdist_wheel stage. Use new setup type variables to define setup type specific dependencies instead of using the conditional block. In python-m2crypto, the --openssl option is a build_ext option so we need to add -C--build-option build_ext in front of it. We also need to set --skip-dependency-check for the following packages which specify build dependencies that are not actually required: - python-lxml - python-matplotlib - python-msgpack - python-pymupdf - python-uvloop - python-wsaccel Signed-off-by: James Hilliard <james.hilliard1@gmail.com> Reviewed-by: Yegor Yefremov <yegorslists@googlemail.com> [Arnout: fix indentation in python-pyzmq] Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
34 lines
1.2 KiB
Makefile
34 lines
1.2 KiB
Makefile
################################################################################
|
|
#
|
|
# python-pyzmq
|
|
#
|
|
################################################################################
|
|
|
|
PYTHON_PYZMQ_VERSION = 25.1.2
|
|
PYTHON_PYZMQ_SOURCE = pyzmq-$(PYTHON_PYZMQ_VERSION).tar.gz
|
|
PYTHON_PYZMQ_SITE = https://files.pythonhosted.org/packages/3a/33/1a3683fc9a4bd64d8ccc0290da75c8f042184a1a49c146d28398414d3341
|
|
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 = LICENSE.LESSER LICENSE.BSD
|
|
PYTHON_PYZMQ_SETUP_TYPE = setuptools
|
|
PYTHON_PYZMQ_BUILD_OPTS = -C--build-option=--zmq=$(STAGING_DIR)/usr
|
|
PYTHON_PYZMQ_DEPENDENCIES = \
|
|
host-python-cython \
|
|
host-python-packaging \
|
|
host-python-setuptools-scm \
|
|
zeromq
|
|
|
|
# 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 += -C--build-option=--enable-drafts
|
|
endif
|
|
|
|
$(eval $(python-package))
|