-
Notifications
You must be signed in to change notification settings - Fork 25
/
setup.py
35 lines (29 loc) · 1.01 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
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(
'_CVXcanon',
sources=['src/CVXcanon.cpp', 'src/LinOpOperations.cpp', 'src/python/CVXcanon_wrap.cpp'],
include_dirs=['src/', 'src/python/', 'include/Eigen', get_numpy_include()]
)
setup(
name='CVXcanon',
version="0.1.2",
setup_requires=['numpy'],
author='Jack Zhu, John Miller, Paul Quigley',
ext_modules=[canon],
package_dir={'': 'src/python'},
py_modules=['canonInterface', 'CVXcanon', '_version__'],
description='A low-level library to perform the matrix building step in cvxpy, a convex optimization modeling software.',
license='Apache-2.0',
url='https://github.com/jacklzhu/CVXcanon',
install_requires=[
'numpy',
'scipy',
]
)