mirror of
https://github.com/openwrt/packages.git
synced 2025-12-24 01:58:35 +04:00
python: Add environment variables to build Rust extensions
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
This commit is contained in:
@@ -44,7 +44,12 @@ PYTHON3_VARS = \
|
||||
PYTHONDONTWRITEBYTECODE=1 \
|
||||
_python_sysroot="$(STAGING_DIR)" \
|
||||
_python_prefix="/usr" \
|
||||
_python_exec_prefix="/usr"
|
||||
_python_exec_prefix="/usr" \
|
||||
CARGO_BUILD_TARGET="$(RUSTC_TARGET_ARCH)" \
|
||||
CARGO_HOME="$(CARGO_HOME)" \
|
||||
PATH="$(CARGO_HOME)/bin:$(PATH)" \
|
||||
PYO3_CROSS_LIB_DIR="$(PYTHON3_LIB_DIR)" \
|
||||
RUSTFLAGS="$(CARGO_RUSTFLAGS)"
|
||||
|
||||
# $(1) => directory of python script
|
||||
# $(2) => python script and its arguments
|
||||
|
||||
Reference in New Issue
Block a user