diff --git a/setup.py b/setup.py index 59d0469..a7725e8 100644 --- a/setup.py +++ b/setup.py @@ -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,