feedparser: 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:31 +02:00
parent 20275b2e38
commit a6e899f0f8
3 changed files with 18 additions and 2 deletions

View File

@ -4,10 +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 install --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,9 @@
diff -Naur feedparser-4.1/setup.py feedparser-4.1.patch/setup.py
--- feedparser-4.1/setup.py 2006-01-10 19:13:27.000000000 +0100
+++ feedparser-4.1.patch/setup.py 2010-10-19 01:30:43.326660941 +0200
@@ -1,4 +1,4 @@
-from distutils.core import setup
+from setuptools import setup
# patch distutils if it can't cope with the "classifiers" or "download_url"
# keywords (prior to python 2.3.0).