File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ --- setup.old 2013-08-06 19:33:44.169818581 -0300
2+ +++ setup.py 2013-08-06 19:35:28.481815499 -0300
3+ @@ -1,12 +1,10 @@
4+ #!/usr/bin/env python
5+ -
6+ - from setuptools import setup, Extension
7+ + from distutils.core import setup
8+ + from distutils.extension import Extension
9+ import sys
10+ import platform
11+ import os
12+
13+ - from py4a import patch_distutils
14+ - patch_distutils()
15+
16+ mods = []
17+
18+ @@ -52,7 +50,7 @@
19+ )
20+ mods.append (mod2)
21+
22+ - elif sys.platform == 'linux2':
23+ + elif sys.platform == 'linux2' or sys.platform == 'linux3' :
24+ mod1 = Extension('bluetooth._bluetooth',
25+ sources = ['bluez/bluetooth/hci.c',
26+ 'bluez/bluetooth/bluetooth.c',
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ VERSION_pyblues=
4+ URL_pybluez=https://dl.dropboxusercontent.com/u/26205750/pybluez.tar.gz
5+ DEPS_pybluez=(python setuptools)
6+ BUILD_pybluez=$BUILD_PATH /pybluez/$( get_directory $URL_pybluez )
7+ RECIPE_pybluez=$RECIPE_PATH /pybluez
8+
9+
10+ function prebuild_pybluez() {
11+
12+ cd $BUILD_pybluez
13+
14+ if [ -f .patched ]; then
15+ return
16+ fi
17+
18+ try patch setup.py < $RECIPE_pybluez /patches/patch-android.patch
19+
20+ touch .patched
21+ }
22+
23+ function build_pybluez() {
24+
25+ if [ -d " $BUILD_PATH /python-install/lib/python2.7/site-packages/pybluez" ]; then
26+ return
27+ fi
28+
29+ cd $BUILD_pybluez
30+
31+ push_arm
32+
33+ export LDFLAGS=" $LDFLAGS -L$LIBS_PATH "
34+ export LDSHARED=" $LIBLINK "
35+
36+ # cythonize
37+ try $BUILD_PATH /python-install/bin/python.host setup.py build_ext -v
38+ try $BUILD_PATH /python-install/bin/python.host setup.py install -O2
39+
40+ unset LDSHARED
41+
42+ pop_arm
43+
44+ }
45+
46+ function postbuild_pybluez() {
47+ true
48+ }
You can’t perform that action at this time.
0 commit comments