-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
30 lines (22 loc) · 694 Bytes
/
setup.py
File metadata and controls
30 lines (22 loc) · 694 Bytes
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
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
import numpy as np
import os
import sys
import subprocess
args = sys.argv[1:]
if args.count("build_ext") > 0 and args.count("--inplace") == 0:
sys.argv.insert(sys.argv.index("build_ext")+1, "--inplace")
setup(
name = 'pyintropt',
cmdclass = {'build_ext': build_ext},
include_dirs = [np.get_include(), '\opt\local\include'],
ext_modules = [
Extension("pyintropt.ss_spqr",
sources=["pyintropt/ss_spqr.pyx"],
libraries=["SuiteSparse", "m"],
extra_compile_args=["-fopenmp", "-O3"],
)
]
)