We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7e3868 commit 246642dCopy full SHA for 246642d
setup.cfg
@@ -1,3 +1,8 @@
1
+# Entry Points for PyInstaller
2
+[options.entry_points]
3
+pyinstaller40 =
4
+ hook-dirs = libusb_package.__pyinstaller:get_hook_dirs
5
+
6
[metadata]
7
name = libusb-package
8
description = Package containing libusb so it can be installed via Python package managers
src/libusb_package/__pyinstaller/__init__.py
@@ -0,0 +1,4 @@
+import os
+def get_hook_dirs():
+ return [os.path.dirname(__file__)]
src/libusb_package/__pyinstaller/hook-libusb_package.py
+from PyInstaller.utils.hooks import collect_dynamic_libs
+# copy the libusb shared library to the package root directory
+binaries = collect_dynamic_libs('libusb_package', destdir='.')
0 commit comments