forked from drufat/triangle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
47 lines (43 loc) · 998 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
39
40
41
42
43
44
45
46
47
from setuptools import setup, Extension
# Read version number
ns = {}
with open("triangle/version.py") as f:
exec(f.read(), ns)
define_macros = [
('VOID', 'void'),
('REAL', 'double'),
('NO_TIMER', 1),
('TRILIBRARY', 1),
('ANSI_DECLARATORS', 1),
]
ext_modules = [
Extension(
'triangle.core',
['c/triangle.c', 'triangle/core.c'],
include_dirs=['c'],
define_macros=define_macros,
# extra_compile_args=['-g'],
),
]
setup(
name='triangle',
version=ns['__version__'],
description='Python binding to the triangle library',
author='Dzhelil Rufat',
author_email='[email protected]',
url='https://rufat.be/triangle',
packages=['triangle'],
package_data={'triangle': [
'data/*.node',
'data/*.ele',
'data/*.poly',
'data/*.area',
'data/*.edge',
'data/*.neigh',
]},
install_requires=[
'numpy',
],
ext_modules=ext_modules,
license='LGPLv3',
)