Skip to content

Commit

Permalink
Merge pull request #288 from philsuess/master
Browse files Browse the repository at this point in the history
read in files from ipopt bin folder
  • Loading branch information
moorepants authored Jan 27, 2025
2 parents 3c0ac67 + 2eb9609 commit 097fae9
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,16 +146,10 @@ def handle_ext_modules_win_32_other_ipopt():
IPOPT_LIBS = ["ipopt.dll", "ipoptamplinterface.dll"]
IPOPT_LIB_DIRS = [os.path.join(ipoptdir, "lib")]

IPOPT_DLL = [
"ipopt-3.dll",
"ipoptamplinterface-3.dll",
"libifcoremd.dll",
"libmmd.dll",
"msvcp140.dll",
"svml_dispmd.dll",
"vcruntime140.dll",
]
IPOPT_DLL_DIRS = [os.path.join(ipoptdir, "bin")]
bin_folder = os.path.join(ipoptdir, "bin")
IPOPT_DLL = [file for file in os.listdir(bin_folder) if file.endswith(".dll")]
print("Found ipopt binaries {}".format(IPOPT_DLL))
IPOPT_DLL_DIRS = [bin_folder]
EXT_MODULES = [Extension("ipopt_wrapper",
["cyipopt/cython/ipopt_wrapper.pyx"],
include_dirs=IPOPT_INCLUDE_DIRS,
Expand Down

0 comments on commit 097fae9

Please sign in to comment.