mirror of
https://github.com/openwrt/packages.git
synced 2025-12-22 21:14:32 +04:00
python-setuptools-rust: Set cargo profile from environment variable
This adds a patch (submitted upstream in https://github.com/PyO3/setuptools-rust/pull/364), to read the profile to pass to cargo from an environment variable. This also updates the Python include files to set the environment variable based on values from rust-values.mk. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
This commit is contained in:
@@ -46,7 +46,8 @@ PYTHON3_VARS = \
|
||||
_python_prefix="/usr" \
|
||||
_python_exec_prefix="/usr" \
|
||||
$(CARGO_PKG_CONFIG_VARS) \
|
||||
PYO3_CROSS_LIB_DIR="$(PYTHON3_LIB_DIR)"
|
||||
PYO3_CROSS_LIB_DIR="$(PYTHON3_LIB_DIR)" \
|
||||
SETUPTOOLS_RUST_CARGO_PROFILE="$(CARGO_PKG_PROFILE)"
|
||||
|
||||
# $(1) => directory of python script
|
||||
# $(2) => python script and its arguments
|
||||
|
||||
Reference in New Issue
Block a user