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>
This commit is contained in:
Daniel Golle committed 2026-11-02 07:41:54 +00:00
1 parent 3c88ccaa05
commit 9150b5ddf8
7 files changed
+6 -1

No files matched your search

+1
View File
@@ -23,6 +23,7 @@ PKG_CONFIG_DEPENDS:=CONFIG_PYTHON3_PYMYSQL_SHA_PASSWORD_SUPPORT
include ../pypi.mk
include $(INCLUDE_DIR)/package.mk
include ../python3-package.mk
include ../../rust/rust-values.mk
define Package/python3-pymysql/Default
SUBMENU:=Python
+1
View File
@@ -21,6 +21,7 @@ PKG_BUILD_DEPENDS:=python-setuptools-rust/host
include ../pypi.mk
include $(INCLUDE_DIR)/package.mk
include ../python3-package.mk
include ../../rust/rust-values.mk
define Package/python3-bcrypt
SECTION:=lang
+1
View File
@@ -24,6 +24,7 @@ PKG_BUILD_DEPENDS:=libffi/host python-cffi/host python-maturin/host python-setup
include ../pypi.mk
include $(INCLUDE_DIR)/package.mk
include ../python3-package.mk
include ../../rust/rust-values.mk
define Package/python3-cryptography
SECTION:=lang
+1
View File
@@ -30,6 +30,7 @@ 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
+1
View File
@@ -17,6 +17,7 @@ PKG_BUILD_DEPENDS:=python-maturin/host
include ../pypi.mk
include $(INCLUDE_DIR)/package.mk
include ../python3-package.mk
include ../../rust/rust-values.mk
define Package/python3-orjson
SECTION:=lang
+1
View File
@@ -24,6 +24,7 @@ PKG_BUILD_DEPENDS:=python-maturin/host
include ../pypi.mk
include $(INCLUDE_DIR)/package.mk
include ../python3-package.mk
include ../../rust/rust-values.mk
define Package/python3-rpds-py
SECTION:=lang
-1
View File
@@ -11,7 +11,6 @@
# For PYTHON3_VERSION
python3_mk_path:=$(dir $(lastword $(MAKEFILE_LIST)))
include $(python3_mk_path)python3-version.mk
include $(python3_mk_path)../rust/rust-values.mk
# Unset environment variables