-
Notifications
You must be signed in to change notification settings - Fork 10
/
setup.py
executable file
·38 lines (30 loc) · 981 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
#!/usr/bin/env python
from setuptools import setup
from distutils.core import Extension
from distutils.cmd import Command
from distutils.command.build_ext import build_ext as _build_ext
import sys, os, subprocess
from copy import copy
has_extra_dir = False
try:
normaliz_dir = os.environ["NORMALIZ_LOCAL_DIR"]
except KeyError:
extra_kwds = {}
else:
has_extra_dir = True
extra_kwds = {
"include_dirs": [ normaliz_dir + '/include'],
"library_dirs": [ normaliz_dir + '/lib'],
"runtime_library_dirs": [ normaliz_dir + '/lib'],
}
from os import path
import io
setup(
py_modules = [ "PyNormaliz" ],
ext_modules = [ Extension( "PyNormaliz_cpp",
[ "NormalizModule.cpp" ],
extra_compile_args=['-std=c++14'],
libraries=[ 'normaliz' ],
**extra_kwds) ],
package_data = {'': [ "COPYING", "GPLv2", "README.md" ] },
)