mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
packages: add thread safety workaround
Avoids trashing $TOOLCHAIN/lib/python2.7/site-packages/easy-install.pth when installing Python host packages (distutilscross:host, setuptools:host, MarkupSafe:host etc.).
This commit is contained in:
parent
2ea31506a5
commit
b130a31822
@ -13,5 +13,5 @@ PKG_LONGDESC="Mako is a super-fast templating language that borrows the best ide
|
||||
PKG_TOOLCHAIN="manual"
|
||||
|
||||
makeinstall_host() {
|
||||
python3 setup.py install --prefix=$TOOLCHAIN
|
||||
exec_thread_safe python3 setup.py install --prefix=$TOOLCHAIN
|
||||
}
|
||||
|
@ -13,5 +13,5 @@ PKG_LONGDESC="MarkupSafe implements a XML/HTML/XHTML Markup safe string for Pyth
|
||||
PKG_TOOLCHAIN="manual"
|
||||
|
||||
makeinstall_host() {
|
||||
python3 setup.py install --prefix=$TOOLCHAIN
|
||||
exec_thread_safe python3 setup.py install --prefix=$TOOLCHAIN
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
||||
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
|
||||
|
||||
PKG_NAME="distutilscross"
|
||||
PKG_VERSION="0.1"
|
||||
@ -12,5 +13,5 @@ PKG_LONGDESC="distutilscross enhances distutils to support Cross Compile of Pyth
|
||||
PKG_TOOLCHAIN="manual"
|
||||
|
||||
makeinstall_host() {
|
||||
python setup.py install --prefix=$TOOLCHAIN
|
||||
exec_thread_safe python setup.py install --prefix=$TOOLCHAIN
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ make_host() {
|
||||
}
|
||||
|
||||
makeinstall_host() {
|
||||
python3 setup.py install --prefix=$TOOLCHAIN --skip-build
|
||||
exec_thread_safe python3 setup.py install --prefix=$TOOLCHAIN --skip-build
|
||||
|
||||
# Avoid using full path to python3 that may exceed 128 byte limit.
|
||||
# Instead use PATH as we know our toolchain is first.
|
||||
|
@ -12,5 +12,5 @@ PKG_LONGDESC="This module offers a set of classes featuring all the common opera
|
||||
PKG_TOOLCHAIN="manual"
|
||||
|
||||
makeinstall_host() {
|
||||
python3 setup.py install --prefix=$TOOLCHAIN
|
||||
exec_thread_safe python3 setup.py install --prefix=$TOOLCHAIN
|
||||
}
|
||||
|
@ -18,6 +18,6 @@ make_host() {
|
||||
}
|
||||
|
||||
makeinstall_host() {
|
||||
python2 setup.py install --prefix=$TOOLCHAIN
|
||||
python3 setup.py install --prefix=$TOOLCHAIN
|
||||
exec_thread_safe python2 setup.py install --prefix=$TOOLCHAIN
|
||||
exec_thread_safe python3 setup.py install --prefix=$TOOLCHAIN
|
||||
}
|
||||
|
@ -22,7 +22,7 @@ makeinstall_host() {
|
||||
|
||||
post_makeinstall_host() {
|
||||
python ./pylibfdt/setup.py build_ext --inplace
|
||||
python ./pylibfdt/setup.py install --prefix=$TOOLCHAIN
|
||||
exec_thread_safe python ./pylibfdt/setup.py install --prefix=$TOOLCHAIN
|
||||
|
||||
touch $TOOLCHAIN/lib/$PKG_PYTHON_VERSION/site-packages/pylibfdt/__init__.py
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user