forked from Normaliz/PyNormaliz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
22 lines (20 loc) · 853 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
from distutils.core import setup, Extension
import sys
if sys.version_info < (3,5):
macro_list = [ ( "PYTHON_VERSION_OLDER_THREE_FIVE", "1" ) ]
else:
macro_list = [ ]
setup(
name = 'PyNormaliz',
version = '0.1',
description = 'A simple interface to LibNormaliz',
author = 'Sebastian Gutsche',
author_email = '[email protected]',
url = 'https://github.com/sebasguts/PyNormaliz',
ext_modules= [ Extension( "PyNormaliz",
[ "NormalizModule.cpp" ],
include_dirs=['/usr/local/include/LibNormaliz', '/usr/local/include/', '/usr/include' ],
library_dirs=['/usr/local/lib', '/usr/lib' ],
extra_link_args=['-lnormaliz', '-lgmp' ],
define_macros = macro_list ) ],
)