Skip to content

Commit 96c6735

Browse files
committed
changed setup
1 parent 3b1231d commit 96c6735

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@
5151
environ['CFLAGS'] = f'{cflags} {new_cflags}'.strip()
5252
environ['LDFLAGS'] = f'{ldflags} {new_ldflags}'.strip()
5353

54-
else:
55-
LIBHACKRF_FILES = ['python_hackrf/pylibhackrf/pyhackrf_android.pyx', 'python_hackrf/pylibhackrf/chackrf_android.pxd']
5654

5755
setup(
5856
name='python_hackrf',
@@ -65,6 +63,7 @@
6563
sources=LIBHACKRF_FILES,
6664
libraries=libraries,
6765
include_dirs=['python_hackrf/pylibhackrf', numpy.get_include()],
66+
define_macros=[("ANDROID", PLATFORM == 'android')],
6867
extra_compile_args=['-w'],
6968
),
7069
Extension(

0 commit comments

Comments
 (0)