yenc: add distutilscross and distribute support

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2010-10-19 20:30:11 +02:00
parent b16dd34c74
commit 20275b2e38
3 changed files with 20 additions and 4 deletions

View File

@ -4,14 +4,16 @@
$SCRIPTS/build toolchain
$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
$PYTHON setup.py build
$PYTHON setup.py install -O1 --skip-build --prefix /usr --root .install
python setup.py build --cross-compile
python setup.py install -O1 --skip-build --prefix /usr --root .install
find .install -name "*.py" -exec rm -rf "{}" ";"
find .install -name "*.pyo" -exec rm -rf "{}" ";"

View File

@ -3,5 +3,6 @@
. config/options $1
$SCRIPTS/install Python
$SCRIPTS/install distribute
cp -PR $PKG_BUILD/.install/* $INSTALL

View 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",