Skip to content

Commit

Permalink
Hooks: numpy: Add hidden import numpy.core._dtype_ctypes.
Browse files Browse the repository at this point in the history
  • Loading branch information
bwoodsend committed Sep 17, 2020
1 parent 0ea8912 commit 3cb512f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions PyInstaller/hooks/hook-numpy.py
Expand Up @@ -44,11 +44,11 @@

# PyInstaller can't detect imports from a cython or C extension module. If a
# submodule is *only* ever `import`ed by a cython or C module then it wont be
# found. Numpy currently has none of these. But should one be added, its string
# name should be listed here. e.g. "numpy.core._hidden._guts._module".
# found. Likewise __import__ and importlib are invisible to PyInstaller.
# These issues should be very easy to track. You'll get a ModuleNotFoundError
# for that hidden module at runtime if you forget to include one.
hiddenimports = []
# for that hidden module at runtime (usually straight away) if you forget to
# include one.
hiddenimports = ['numpy.core._dtype_ctypes']


# --- Additional support for less official mkl builds ---
Expand Down

0 comments on commit 3cb512f

Please sign in to comment.