Skip to content

Commit

Permalink
Added Ipopt 3.13 support for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
apommel committed Jun 5, 2020
1 parent fc82a98 commit a865cb1
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,13 @@ def pkgconfig(*packages, **kw):

ipoptdir = os.environ.get('IPOPTWINDIR', '')

IPOPT_INCLUDE_DIRS = [os.path.join(ipoptdir, 'include', 'coin'),
IPOPT_INCLUDE_DIRS = [os.path.join(ipoptdir, 'include', 'coin-or'),
np.get_include()]
IPOPT_LIBS = ['Ipopt-vc8', 'IpOptFSS', 'IpOpt-vc10']
IPOPT_LIB_DIRS = [os.path.join(ipoptdir, 'lib', 'x64', 'ReleaseMKL')]
IPOPT_DLL = ['IpOptFSS.dll', 'Ipopt-vc8.dll', 'IpOpt-vc10.dll',
'msvcp100.dll', 'msvcr100.dll']
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')]

EXT_MODULES = [
Extension(
Expand All @@ -92,7 +93,7 @@ def pkgconfig(*packages, **kw):
)
]
DATA_FILES = [(get_python_lib(),
[os.path.join(IPOPT_LIB_DIRS[0], dll)
[os.path.join(IPOPT_DLL_DIRS[0], dll)
for dll in IPOPT_DLL])] if IPOPT_DLL else None
include_package_data = False

Expand Down

0 comments on commit a865cb1

Please sign in to comment.