forked from quadprog/quadprog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
61 lines (49 loc) · 1.63 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
"""Quadratic Programming Solver
Minimize 1/2 x^T G x - a^T x
Subject to C.T x >= b
This routine uses the the Goldfarb/Idnani dual algorithm [1].
References
----------
1) D. Goldfarb and A. Idnani (1983). A numerically stable dual
method for solving strictly convex quadratic programs.
Mathematical Programming, 27, 1-33.
"""
from setuptools import setup, Extension
##########################
VERSION = "0.1.7"
__version__ = VERSION
##########################
DOCLINES = __doc__.split("\n")
CLASSIFIERS = """\
Development Status :: 3 - Alpha
Intended Audience :: Science/Research
Intended Audience :: Developers
License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)
Programming Language :: Python
Operating System :: OS Independent
"""
extensions = [
Extension('quadprog', ['quadprog/quadprog.pyx',
'quadprog/aind.c', 'quadprog/solve.QP.c',
'quadprog/util.c', 'quadprog/dpofa.c',
'quadprog/daxpy.c', 'quadprog/ddot.c',
'quadprog/dscal.c', 'quadprog/f2c_lite.c'],
include_dirs=['quadprog'], language='c++')
]
setup(
setup_requires = [
# Setuptools 18.0 properly handles Cython extensions.
'setuptools>=18.0',
'Cython',],
install_requires = ['Cython',],
name='quadprog',
author="Robert T. McGibbon",
author_email='[email protected]',
url="https://github.com/rmcgibbo/quadprog",
description=DOCLINES[0],
version=__version__,
long_description="\n".join(DOCLINES[2:]),
license='GPLv2+',
zip_safe=False,
ext_modules=extensions,
)