Skip to content

Commit 81d7e11

Browse files
committed
updated
1 parent 851a92d commit 81d7e11

File tree

7 files changed

+10
-6
lines changed

7 files changed

+10
-6
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ include python_hackrf/pylibhackrf/chackrf.pxd
22
include python_hackrf/pylibhackrf/pyhackrf.pyi
33
include python_hackrf/pylibhackrf/pyhackrf.pyx
44
include python_hackrf/pylibhackrf/pyhackrf.pxd
5+
include python_hackrf_bootstrap.pth
56
include pyproject.toml
67
include README.md

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ export/set {linux and macos / windows} PYTHON_HACKRF_LDFLAGS=path_to_hackrf.(so,
1818
```
1919

2020
## Requirements:
21-
* Cython==0.29.37
2221
* Numpy>=2.2.1
2322
* Scipy (optional, for faster work)
2423
* pyFFTW (optional, for faster work)

android/python_hackrf/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class PythonHackrfRecipe(CythonRecipe):
1212
depends = ('python3', 'setuptools', 'numpy', 'pyjnius', 'libhackrf')
1313
site_packages_name = 'python_hackrf'
1414
name = 'python_hackrf'
15-
version = '1.3.0'
15+
version = '1.3.1'
1616

1717
def get_recipe_env(self, arch: Arch) -> dict:
1818
env = super().get_recipe_env(arch)

pyproject.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "python_hackrf"
3-
version = "1.3.0"
3+
version = "1.3.1"
44
authors = [
55
{name="Leonid Gvozdev", email="[email protected]"},
66
]
@@ -33,4 +33,7 @@ requires = [
3333
]
3434

3535
[project.scripts]
36-
python_hackrf= "python_hackrf.__main__:main"
36+
python_hackrf= "python_hackrf.__main__:main"
37+
38+
[tool.setuptools]
39+
data-files = {"site-packages" = ["python_hackrf_bootstrap.pth"]}

python_hackrf/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = '1.3.0'
1+
__version__ = '1.3.1'
22

33
from python_hackrf.pylibhackrf import pyhackrf # noqa F401
44
from python_hackrf.pyhackrf_tools import ( # noqa F401

python_hackrf_bootstrap.pth

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import os, sys; sys.platform.startswith('win') and os.add_dll_directory(os.environ.get("HACKRF_LIB_PATH", "C:\Program Files\HackRF\lib"))

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
else:
4545
new_ldflags = environ.get('PYTHON_HACKRF_LDFLAGS', '')
4646

47-
elif PLATFORM == 'win32':
47+
elif PLATFORM.startswith('win'):
4848
include_path = 'C:\\Program Files\\HackRF\\include'
4949
lib_path = 'C:\\Program Files\\HackRF\\lib'
5050

0 commit comments

Comments
 (0)