From 1e3c233e251643b571e10f3312e1145d4ef8e4ce Mon Sep 17 00:00:00 2001 From: gentlegiantJGC Date: Tue, 6 Aug 2024 11:55:39 +0100 Subject: [PATCH] Added a PyInstaller hook for missing numpy file --- amulet_map_editor/__pyinstaller/hook-numpy.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 amulet_map_editor/__pyinstaller/hook-numpy.py diff --git a/amulet_map_editor/__pyinstaller/hook-numpy.py b/amulet_map_editor/__pyinstaller/hook-numpy.py new file mode 100644 index 00000000..9d53bd87 --- /dev/null +++ b/amulet_map_editor/__pyinstaller/hook-numpy.py @@ -0,0 +1,11 @@ +import os +import glob + +import numpy + +numpy_lib_path = numpy.__path__[0] + ".libs" + +datas = [ + (dll_path, "numpy.libs") + for dll_path in glob.glob(os.path.join(glob.escape(numpy_lib_path), "*.dll")) +]