Skip to content

Commit

Permalink
add prommis packages to hidden imports
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelPesce committed Nov 11, 2024
1 parent b08addd commit 0bce46b
Showing 1 changed file with 1 addition and 33 deletions.
34 changes: 1 addition & 33 deletions backend/app/main-hooks/hook-watertap.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

# add all modules to watertap modules hidden imports

for package in ["watertap", "pyomo", "scipy"]:
for package in ["watertap", "pyomo", "scipy", "prommis"]:
pkg = importlib.import_module(package)
try:
# base_folder = Path(pkg.__path__[0])
Expand Down Expand Up @@ -101,35 +101,3 @@
hiddenimports = list(imports)
# add lorem ipsum.txt for jaraco
datas.append(('internal/assets/Lorem ipsum.txt', 'jaraco/text'))

pyomo_imports = [
"networkx",
"pint",
"numbers",
"pyutilib",
"sys",
"logging",
"re",
"pkg_resources.extern",
"pyomo.common.dependencies.numpy",
"collections.abc",
"types",
"pyutilib",
"pyutilib.component",
"importlib.abc",
"importlib",
"ctypes",
"random",
"yaml",
"numpy",
"scipy._lib.array_api_compat.numpy.fft",
"scipy._lib.array_api_compat.numpy",
"scipy._lib.array_api_compat",
"scipy._lib.",
"scipy.sparse",
"scipy.special._special_ufuncs",
"scipy.special._cdflib",
"scipy.special",
]

hiddenimports.extend(pyomo_imports)

0 comments on commit 0bce46b

Please sign in to comment.