mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 05:36:47 +00:00
feedparser: add distutilscross and distribute support
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
20275b2e38
commit
a6e899f0f8
@ -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 "{}" ";"
|
||||
|
@ -3,5 +3,6 @@
|
||||
. config/options $1
|
||||
|
||||
$SCRIPTS/install Python
|
||||
$SCRIPTS/install distribute
|
||||
|
||||
cp -PR $PKG_BUILD/.install/* $INSTALL
|
||||
|
@ -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).
|
Loading…
x
Reference in New Issue
Block a user