| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent cf0ce2e commit 89a4b24
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -55,6 +55,9 @@ email = "pythonnet@python.org" | |||
| 55 | 55 | Homepage = "https://pythonnet.github.io/" | |
| 56 | 56 | Sources = "https://github.com/pythonnet/pythonnet" | |
| 57 | 57 | ||
| 58 | + [project.entry-points.pyinstaller40] | ||
| 59 | + hook-dirs = "pythonnet._pyinstaller:get_hook_dirs" | ||
| 60 | + | ||
| 58 | 61 | [tool.setuptools] | |
| 59 | 62 | zip-safe = false | |
| 60 | 63 | py-modules = ["clr"] | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,4 @@ | |||
| 1 | + import os | ||
| 2 | + | ||
| 3 | + def get_hook_dirs(): | ||
| 4 | + return [os.path.dirname(__file__)] | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,9 @@ | |||
| 1 | + from PyInstaller.utils.hooks import collect_data_files, collect_dynamic_libs | ||
| 2 | + | ||
| 3 | + try: | ||
| 4 | + binaries = collect_dynamic_libs("pythonnet") | ||
| 5 | + datas = collect_data_files("pythonnet") | ||
| 6 | + except Exception: | ||
| 7 | + # name conflict with https://pypi.org/project/clr/, do not crash if just clr is present | ||
| 8 | + binaries = [] | ||
| 9 | + datas = [] | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments