mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 05:36:47 +00:00
buildsystem: Add function for executing python scripts with target environment
This commit is contained in:
parent
ea60ca457e
commit
244c19cf3e
@ -1384,6 +1384,15 @@ python_fix_abi() {
|
||||
done
|
||||
}
|
||||
|
||||
# arg1: python command for target
|
||||
python_target_env() {
|
||||
_PYTHON_HOST_PLATFORM="linux-${TARGET_ARCH}" \
|
||||
_PYTHON_PROJECT_BASE="$(get_install_dir Python3)" \
|
||||
_PYTHON_SYSCONFIGDATA_NAME="_sysconfigdata__linux_${TARGET_ARCH}-linux-gnu${TARGET_ABI}" \
|
||||
PYTHONPATH="$(get_install_dir Python3)/usr/lib/${PKG_PYTHON_VERSION}" \
|
||||
PYTHONNOUSERSITE=1 $@
|
||||
}
|
||||
|
||||
### KERNEL HELPERS ###
|
||||
kernel_path() {
|
||||
get_build_dir linux
|
||||
|
Loading…
x
Reference in New Issue
Block a user