mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
PyBluez: add distutilscross and distribute support
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
7413c9f187
commit
99f00e2ae3
@ -4,15 +4,17 @@
|
||||
|
||||
$SCRIPTS/build toolchain
|
||||
$SCRIPTS/build Python
|
||||
$SCRIPTS/build distutilscross
|
||||
$SCRIPTS/build distribute
|
||||
$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
|
||||
|
||||
$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 "{}" ";"
|
||||
|
@ -3,6 +3,7 @@
|
||||
. config/options $1
|
||||
|
||||
$SCRIPTS/install Python
|
||||
$SCRIPTS/install distribute
|
||||
$SCRIPTS/install bluez
|
||||
|
||||
cp -PR $PKG_BUILD/.install/* $INSTALL
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user