PyBluez: add distutilscross and distribute support

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2010-10-19 20:32:06 +02:00
parent 7413c9f187
commit 99f00e2ae3
3 changed files with 21 additions and 4 deletions

View File

@ -4,15 +4,17 @@
$SCRIPTS/build toolchain $SCRIPTS/build toolchain
$SCRIPTS/build Python $SCRIPTS/build Python
$SCRIPTS/build distutilscross
$SCRIPTS/build distribute
$SCRIPTS/build bluez $SCRIPTS/build bluez
. 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 "{}" ";"

View File

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

View File

@ -0,0 +1,14 @@
diff -Naur PyBluez-0.18/setup.py PyBluez-0.18.patch/setup.py
--- PyBluez-0.18/setup.py 2009-11-25 23:39:55.000000000 +0100
+++ PyBluez-0.18.patch/setup.py 2010-10-18 23:47:16.585821819 +0200
@@ -1,7 +1,9 @@
#!/usr/bin/env python
-from distutils.core import setup, Extension
+from setuptools import setup
+from setuptools.extension import Extension
from distutils.debug import DEBUG
+
import sys
import os