Skip to content

Commit 86b2998

Browse files
committed
Updated the repository
1 parent f0d10df commit 86b2998

File tree

168 files changed

+96
-55828
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

168 files changed

+96
-55828
lines changed

.flake8

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[flake8]
2+
extend-ignore = E501, E402, F401
3+
exclude =
4+
__pycache__,
5+
.venv,

.gitignore

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
1-
.DS_Store
1+
__pycache__/
2+
3+
dist/
4+
.venv/
5+
6+
.DS_Store
7+
.pypirc
8+
9+
*.egg-info

MANIFEST.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
include python_hackrf/libhackrf/hackrf.h
2+
include python_hackrf/libhackrf/chackrf.pxd
3+
include README.md
4+
include pyproject.toml

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ LDFLAGS="-L/path to libusb-1.0.so /lib" \
2323
python setup.py build_ext --inplace
2424
```
2525
## Requirements:
26+
* libusb-1.0 (https://github.com/libusb/libusb)
2627
* Cython==0.29.36
2728
* Numpy>=1.26
2829
* Scipy (optional, for faster work)
@@ -82,4 +83,4 @@ options:
8283
## Note
8384
This library can work on android. To do this, go to the android directory and download two recipes for p4a.
8485
## Examples
85-
Examples will be added later.
86+
Examples will be added later.

android/libusb/__init__.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
1-
from pythonforandroid.recipe import NDKRecipe, IncludedFilesBehaviour
21
from pythonforandroid.util import current_directory
2+
from pythonforandroid.recipe import NDKRecipe
33
from pythonforandroid.logger import shprint
44
from os.path import join
55
import shutil
66
import sh
77

88

9-
class LibusbRecipe(NDKRecipe, IncludedFilesBehaviour):
10-
version = '1.0'
11-
url = None
9+
class LibusbRecipe(NDKRecipe):
10+
version = '1.0.26'
11+
url = 'https://github.com/libusb/libusb/archive/refs/tags/v{version}.tar.gz'
1212
site_packages_name = 'libusb'
1313
name = 'libusb'
14-
src_filename = './src'
1514
generated_libraries = ['libusb1.0.so']
1615

1716
def should_build(self, arch):
1817
return True
19-
18+
2019
def get_recipe_env(self, arch):
2120
env = super().get_recipe_env(arch)
2221

@@ -41,7 +40,8 @@ def build_arch(self, arch, *extra_args):
4140
'APP_ABI=' + arch.arch,
4241
*extra_args, _env=env
4342
)
44-
43+
4544
shutil.copyfile(join(self.get_build_dir(arch.arch), 'android', 'libs', arch.arch, 'libusb1.0.so'), join(self.ctx.get_libs_dir(arch.arch), 'libusb1.0.so'))
4645

47-
recipe = LibusbRecipe()
46+
47+
recipe = LibusbRecipe()

android/libusb/src/.private/README.txt

Lines changed: 0 additions & 5 deletions
This file was deleted.

android/libusb/src/.private/appveyor_build.sh

Lines changed: 0 additions & 22 deletions
This file was deleted.

android/libusb/src/.private/bm.sh

Lines changed: 0 additions & 54 deletions
This file was deleted.

android/libusb/src/.private/ci-build.sh

Lines changed: 0 additions & 67 deletions
This file was deleted.

android/libusb/src/.private/ci-container-build.sh

Lines changed: 0 additions & 71 deletions
This file was deleted.

0 commit comments

Comments
 (0)