2022-07-24 01:03:59 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# python-maturin
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2022-08-15 04:22:45 +02:00
|
|
|
PYTHON_MATURIN_VERSION = 0.13.2
|
2022-07-24 01:03:59 +02:00
|
|
|
PYTHON_MATURIN_SOURCE = maturin-$(PYTHON_MATURIN_VERSION).tar.gz
|
2022-08-15 04:22:45 +02:00
|
|
|
PYTHON_MATURIN_SITE = https://files.pythonhosted.org/packages/2a/51/4794343461971a67a85db5025b7c89928c603957d6b00c9e940bc26a3cb3
|
2022-07-24 01:03:59 +02:00
|
|
|
PYTHON_MATURIN_SETUP_TYPE = setuptools
|
|
|
|
PYTHON_MATURIN_LICENSE = Apache-2.0 or MIT
|
|
|
|
PYTHON_MATURIN_LICENSE_FILES = license-apache license-mit
|
|
|
|
HOST_PYTHON_MATURIN_DEPENDENCIES = \
|
|
|
|
host-python-setuptools-rust \
|
|
|
|
host-python-tomli \
|
|
|
|
host-rustc
|
|
|
|
HOST_PYTHON_MATURIN_ENV = \
|
|
|
|
$(HOST_PKG_CARGO_ENV) \
|
2022-07-16 23:04:49 +02:00
|
|
|
PYO3_CROSS_LIB_DIR="$(HOST_DIR)/lib/python$(PYTHON3_VERSION_MAJOR)"
|
2022-07-24 01:03:59 +02:00
|
|
|
# We need to vendor the Cargo crates at download time
|
|
|
|
PYTHON_MATURIN_DOWNLOAD_POST_PROCESS = cargo
|
|
|
|
PYTHON_MATURIN_DOWNLOAD_DEPENDENCIES = host-rustc
|
|
|
|
HOST_PYTHON_MATURIN_DL_ENV = $(HOST_PKG_CARGO_ENV)
|
|
|
|
|
|
|
|
$(eval $(host-python-package))
|