forked from cvxpy/cvxpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
79 lines (73 loc) · 2.78 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
from setuptools import setup, Extension
class get_numpy_include(object):
"""Returns Numpy's include path with lazy import.
"""
def __str__(self):
import numpy
return numpy.get_include()
canon = Extension(
'_cvxcore',
sources=['cvxpy/cvxcore/src/cvxcore.cpp',
'cvxpy/cvxcore/src/LinOpOperations.cpp',
'cvxpy/cvxcore/src/Utils.cpp',
'cvxpy/cvxcore/python/cvxcore_wrap.cpp'],
include_dirs=['cvxpy/cvxcore/src/',
'cvxpy/cvxcore/python/',
'cvxpy/cvxcore/include/Eigen',
get_numpy_include()],
)
setup(
name='cvxpy',
version='1.0.6',
author='Steven Diamond, Eric Chu, Stephen Boyd',
ext_modules=[canon],
packages=['cvxpy',
'cvxpy.atoms',
'cvxpy.atoms.affine',
'cvxpy.atoms.elementwise',
'cvxpy.cvxcore',
'cvxpy.cvxcore.python',
'cvxpy.constraints',
'cvxpy.expressions',
'cvxpy.expressions.constants',
'cvxpy.interface',
'cvxpy.interface.numpy_interface',
'cvxpy.lin_ops',
'cvxpy.problems',
'cvxpy.problems.problem_data',
'cvxpy.problems.solvers',
'cvxpy.reductions',
'cvxpy.reductions.complex2real',
'cvxpy.reductions.complex2real.atom_canonicalizers',
'cvxpy.reductions.dcp2cone',
'cvxpy.reductions.dcp2cone.atom_canonicalizers',
'cvxpy.reductions.eliminate_pwl',
'cvxpy.reductions.eliminate_pwl.atom_canonicalizers',
'cvxpy.reductions.qp2quad_form',
'cvxpy.reductions.qp2quad_form.atom_canonicalizers',
'cvxpy.reductions.eliminate_pwl.atom_canonicalizers',
'cvxpy.reductions.solvers',
'cvxpy.reductions.solvers.conic_solvers',
'cvxpy.reductions.solvers.qp_solvers',
'cvxpy.reductions.solvers.lp_solvers',
'cvxpy.tests',
'cvxpy.transforms',
'cvxpy.utilities',
'cvxpy.cvxcore.python'],
package_dir={'cvxpy': 'cvxpy'},
url='http://github.com/cvxgrp/cvxpy/',
license='Apache License, Version 2.0',
zip_safe=False,
description='A domain-specific language for modeling convex optimization problems in Python.',
install_requires=["osqp",
"ecos >= 2",
"scs >= 1.1.3",
"multiprocess",
"fastcache",
"six",
"toolz",
"numpy >= 1.14",
"scipy >= 0.19"],
use_2to3=True,
)