Files
packages/lang/python/python-maturin/Makefile
T
Daniel Golle 9150b5ddf8 python: include rust-values.mk in the Rust packages only
python3-host.mk includes the Rust values of lang/rust for every Python
package. The build system's cmake.mk and meson.mk react to Rust
variables, so packages without any Rust in them get Rust settings, and a
Python package moving to the build system's Rust toolchain would get
both sets of values.

Include rust-values.mk in the six packages that use its variables. The
variables in PYTHON3_VARS and HOST_PYTHON3_VARS are expanded late, so
the place of the include does not matter.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-11-02 07:41:54 +00:00

54 lines
1.3 KiB
Makefile

# SPDX-License-Identifier: GPL-2.0-only
#
# Copyright (C) 2023 Luca Barbato
include $(TOPDIR)/rules.mk
PKG_NAME:=python-maturin
PKG_VERSION:=1.15.0
PKG_RELEASE:=1
PYPI_NAME:=maturin
PKG_HASH:=94b26cc8e8aba61a5f2099715fe640e18c5f678e9a500408b38761263954228a
PKG_MAINTAINER:=Luca Barbato <lu_zero@luminem.org>
PKG_LICENSE:=Apache-2.0 MIT
PKG_LICENSE_FILES:=license-apache license-mit
HOST_BUILD_DEPENDS:= \
python3/host \
python-setuptools/host \
python-build/host \
python-installer/host \
python-wheel/host \
python-setuptools-rust/host
HOST_BUILD_PARALLEL:=1
PKG_HOST_ONLY:=1
include ../pypi.mk
include $(INCLUDE_DIR)/host-build.mk
include $(INCLUDE_DIR)/package.mk
include ../python3-package.mk
include ../python3-host-build.mk
include ../../rust/rust-values.mk
define Package/python3-maturin
SECTION:=lang
CATEGORY:=Languages
SUBMENU:=Python
TITLE:=Build and publish crates as python packages
DEPENDS:=$(RUST_ARCH_DEPENDS)
URL:=https://maturin.rs
BUILDONLY:=1
endef
define Package/python3-maturin/description
Build and publish crates with pyo3, rust-cpython, cffi and uniffi
bindings as well as rust binaries as python packages.
endef
$(eval $(call HostBuild))
$(eval $(call Py3Package,python3-maturin))
$(eval $(call BuildPackage,python3-maturin))
$(eval $(call BuildPackage,python3-maturin-src))