mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 21:56:42 +00:00
yenc: add distutilscross and distribute support
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
b16dd34c74
commit
20275b2e38
@ -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
|
||||||
|
13
packages/python/system/yenc/patches/yenc-setuptools.diff
Normal file
13
packages/python/system/yenc/patches/yenc-setuptools.diff
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff -Naur yenc-0.3/setup.py yenc-0.3.patch/setup.py
|
||||||
|
--- yenc-0.3/setup.py 2008-06-13 16:17:21.000000000 +0200
|
||||||
|
+++ yenc-0.3.patch/setup.py 2010-10-19 00:20:41.249504605 +0200
|
||||||
|
@@ -25,8 +25,7 @@
|
||||||
|
##=============================================================================
|
||||||
|
|
||||||
|
|
||||||
|
-
|
||||||
|
-from distutils.core import setup, Extension
|
||||||
|
+from setuptools import setup, Extension
|
||||||
|
|
||||||
|
setup(
|
||||||
|
name = "yenc",
|
Loading…
x
Reference in New Issue
Block a user