Skip to content

Commit 0230820

Browse files
committed
Windows is temporarily unavailable
1 parent 3668c05 commit 0230820

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

setup.py

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,28 +34,20 @@
3434
try:
3535
new_cflags = subprocess.check_output(['pkg-config', '--cflags', 'libhackrf']).decode('utf-8').strip()
3636
except Exception:
37-
new_cflags = '-I/opt/homebrew/include/libhackrf -I/opt/local/include/libhackrf -I/usr/include/libhackrf -I/usr/include/libhackrf -I/usr/local/include/libhackrf'
37+
raise RuntimeError('Unable to run pkg-config. Set cflags manually export PYTHON_HACKRF_CFLAGS=') from None
3838
else:
3939
new_cflags = environ.get('PYTHON_HACKRF_CFLAGS', '')
4040

4141
if environ.get('PYTHON_HACKRF_LDFLAGS', None) is None:
4242
try:
4343
new_ldflags = subprocess.check_output(['pkg-config', '--libs', 'libhackrf']).decode('utf-8').strip()
4444
except Exception:
45-
new_ldflags = '-L/opt/homebrew/lib -L/opt/local/lib -L/usr/lib64 -L/usr/lib -L/usr/local/lib -L/usr/local/lib64'
45+
raise RuntimeError('Unable to run pkg-config. Set libs manually export PYTHON_HACKRF_LDFLAGS=') from None
4646
else:
4747
new_ldflags = environ.get('PYTHON_HACKRF_LDFLAGS', '')
4848

4949
elif PLATFORM == 'win32':
50-
if environ.get('PYTHON_HACKRF_CFLAGS', None) is None:
51-
new_cflags = '/I"C:\\Program Files\\Hackrf\\include"'
52-
else:
53-
new_cflags = environ.get('PYTHON_HACKRF_CFLAGS', '')
54-
55-
if environ.get('PYTHON_HACKRF_LDFLAGS', None) is None:
56-
new_ldflags = '/LIBPATH"C:\\Program Files\\Hackrf\\lib"'
57-
else:
58-
new_ldflags = environ.get('PYTHON_HACKRF_LDFLAGS', '')
50+
pass
5951

6052
environ['CFLAGS'] = f'{cflags} {new_cflags}'.strip()
6153
environ['LDFLAGS'] = f'{ldflags} {new_ldflags}'.strip()

0 commit comments

Comments
 (0)