Skip to content

Commit

Permalink
Update numpy pyinstaller hook
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlegiantJGC committed Aug 6, 2024
1 parent 1e3c233 commit f00fe2d
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions amulet_map_editor/__pyinstaller/hook-numpy.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
import os
import glob
import sys

import numpy

numpy_lib_path = numpy.__path__[0] + ".libs"
if sys.platform == "win32":
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"))
]
datas = [
(dll_path, "numpy.libs")
for dll_path in glob.glob(os.path.join(glob.escape(numpy_lib_path), "*.dll"))
] + [
(pyd_path, "numpy")
for pyd_path in glob.glob(os.path.join(glob.escape(numpy.__path__[0]), "**", "*.pyd"), recursive=True)
]

0 comments on commit f00fe2d

Please sign in to comment.