OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
hps
/
faces
/
faces
/
lib
/
python3.10
/
site-packages
/
numpy
/
_pyinstaller
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
10/26/2024 01:27:22 PM
rwxr-xr-x
📄
__init__.py
0 bytes
10/26/2024 01:27:21 PM
rw-r--r--
📁
__pycache__
-
10/26/2024 01:28:24 PM
rwxr-xr-x
📄
hook-numpy.py
1.39 KB
10/26/2024 01:27:21 PM
rw-r--r--
📄
pyinstaller-smoke.py
1.12 KB
10/26/2024 01:27:21 PM
rw-r--r--
📄
test_pyinstaller.py
1.11 KB
10/26/2024 01:27:21 PM
rw-r--r--
Editing: hook-numpy.py
Close
"""This hook should collect all binary files and any hidden modules that numpy needs. Our (some-what inadequate) docs for writing PyInstaller hooks are kept here: https://pyinstaller.readthedocs.io/en/stable/hooks.html """ from PyInstaller.compat import is_conda, is_pure_conda from PyInstaller.utils.hooks import collect_dynamic_libs, is_module_satisfies # Collect all DLLs inside numpy's installation folder, dump them into built # app's root. binaries = collect_dynamic_libs("numpy", ".") # If using Conda without any non-conda virtual environment manager: if is_pure_conda: # Assume running the NumPy from Conda-forge and collect it's DLLs from the # communal Conda bin directory. DLLs from NumPy's dependencies must also be # collected to capture MKL, OpenBlas, OpenMP, etc. from PyInstaller.utils.hooks import conda_support datas = conda_support.collect_dynamic_libs("numpy", dependencies=True) # Submodules PyInstaller cannot detect (probably because they are only imported # by extension modules, which PyInstaller cannot read). hiddenimports = ['numpy.core._dtype_ctypes'] if is_conda: hiddenimports.append("six") # Remove testing and building code and packages that are referenced throughout # NumPy but are not really dependencies. excludedimports = [ "scipy", "pytest", "nose", "f2py", "setuptools", "numpy.f2py", "distutils", "numpy.distutils", ]