mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 21:26:49 +00:00
Cheetah: add distuilscross and distribute support
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
51ccb15dbc
commit
85970c7ff9
@ -4,14 +4,16 @@
|
|||||||
|
|
||||||
$SCRIPTS/build toolchain
|
$SCRIPTS/build toolchain
|
||||||
$SCRIPTS/build Python
|
$SCRIPTS/build Python
|
||||||
|
$SCRIPTS/build distribute
|
||||||
|
$SCRIPTS/build distutilscross
|
||||||
|
|
||||||
. config/options.python
|
export PYTHONXCPREFIX="$SYSROOT_PREFIX/usr"
|
||||||
|
export LDFLAGS="$LDFLAGS -L$SYSROOT_PREFIX/usr/lib -L$SYSROOT_PREFIX/lib"
|
||||||
|
|
||||||
cd $PKG_BUILD
|
cd $PKG_BUILD
|
||||||
|
|
||||||
$PYTHON setup.py build
|
python setup.py build --cross-compile
|
||||||
|
python setup.py install -O1 --skip-build --prefix /usr --root .install
|
||||||
$PYTHON setup.py install -O1 --skip-build --prefix /usr --root .install
|
|
||||||
|
|
||||||
find .install -name "*.py" -exec rm -rf "{}" ";"
|
find .install -name "*.py" -exec rm -rf "{}" ";"
|
||||||
find .install -name "*.pyo" -exec rm -rf "{}" ";"
|
find .install -name "*.pyo" -exec rm -rf "{}" ";"
|
||||||
|
@ -3,5 +3,6 @@
|
|||||||
. config/options $1
|
. config/options $1
|
||||||
|
|
||||||
$SCRIPTS/install Python
|
$SCRIPTS/install Python
|
||||||
|
$SCRIPTS/install distribute
|
||||||
|
|
||||||
cp -PR $PKG_BUILD/.install/* $INSTALL
|
cp -PR $PKG_BUILD/.install/* $INSTALL
|
||||||
|
@ -0,0 +1,23 @@
|
|||||||
|
diff -Naur Cheetah-2.0.1/SetupTools.py Cheetah-2.0.1.patch/SetupTools.py
|
||||||
|
--- Cheetah-2.0.1/SetupTools.py 2007-11-03 20:44:38.000000000 +0100
|
||||||
|
+++ Cheetah-2.0.1.patch/SetupTools.py 2010-10-19 00:34:45.377616641 +0200
|
||||||
|
@@ -19,18 +19,7 @@
|
||||||
|
import string
|
||||||
|
import traceback
|
||||||
|
|
||||||
|
-from distutils.core import setup
|
||||||
|
-if 'CHEETAH_USE_SETUPTOOLS' in os.environ:
|
||||||
|
- # @@TR: Please note that this is for testing purposes only! PEAK setuptools
|
||||||
|
- # is not required or recommended for installing Cheetah. Downstream
|
||||||
|
- # package managers (linux distros, etc.) should *not* enable this.
|
||||||
|
- try:
|
||||||
|
- # use http://peak.telecommunity.com/DevCenter/setuptools if it's installed
|
||||||
|
- # requires Py >=2.3
|
||||||
|
- from setuptools import setup
|
||||||
|
- except ImportError:
|
||||||
|
- from distutils.core import setup
|
||||||
|
-
|
||||||
|
+from setuptools import setup
|
||||||
|
from distutils.core import Command
|
||||||
|
from distutils.command.install_data import install_data
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user