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
@@ -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