-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
40 lines (32 loc) · 977 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/env python3
#
# 2021 - 2022 Jan Provaznik ([email protected])
#
# Let's see how poorly this goes.
import setuptools
VERSION = '0.1.4'
# Let setuptools fill in the blanks.
bridge = setuptools.Extension(
name = 'ipopt4py._bridge',
sources = [ 'ipopt4py/_bridge/bridge.cxx' ],
libraries = [ 'boost_python3', 'boost_numpy3', 'ipopt' ],
define_macros = [ ('IPOPT4PY_VERSION', '"{}"'.format(VERSION)) ],
extra_compile_args = [ '-std=c++17', '-Wextra', '-pthread', '-Wno-sign-compare' ],
language = 'c++'
)
# Yes, yes, yes!
setuptools.setup(
name = 'ipopt4py',
version = VERSION,
description = 'Basic interface for the COIN-OR IPOPT 3.14 library.',
author = 'Jan Provaznik',
author_email = '[email protected]',
url = 'https://provaznik.pro/ipopt4py',
license = 'LGPL',
install_requires = [
'numpy >= 1.22',
'scipy >= 1.8.0'
],
ext_modules = [ bridge ],
packages = [ 'ipopt4py' ]
)