File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,6 +55,9 @@ email = "pythonnet@python.org"
5555Homepage = " https://pythonnet.github.io/"
5656Sources = " https://github.com/pythonnet/pythonnet"
5757
58+ [project .entry-points .pyinstaller40 ]
59+ hook-dirs = " pythonnet._pyinstaller:get_hook_dirs"
60+
5861[tool .setuptools ]
5962zip-safe = false
6063py-modules = [" clr" ]
Original file line number Diff line number Diff line change 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 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 = []
You can’t perform that action at this time.
0 commit comments