forked from drufat/triangle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
59 lines (56 loc) · 1.61 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
from setuptools import setup, Extension
# Read version number
with open("triangle/version.py") as f:
exec(f.read())
define_macros = [
('VOID', 'int'),
('REAL', 'double'),
('NO_TIMER', 1),
('TRILIBRARY', 1),
('ANSI_DECLARATORS', 1),
]
setup(name='triangle',
packages=['triangle'],
package_dir={'triangle': 'triangle'},
package_data={'triangle': [
'data/*.node',
'data/*.ele',
'data/*.poly',
'data/*.area',
'data/*.edge',
'data/*.neigh',
'c_triangle.pxd'
]},
version=__version__,
description='Python binding to the triangle library',
author='Dzhelil Rufat',
author_email='drufat@caltech.edu',
license='GNU LGPL',
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
url='http://dzhelil.info/triangle',
setup_requires=[
'setuptools>=28.3',
'Cython>=0.24'
],
install_requires=[
'numpy>=1.11',
'Cython>=0.24'
],
ext_modules=[
Extension('triangle.core',
[
'c/triangle.c',
'triangle/core.pyx'
],
include_dirs=['c'],
define_macros=define_macros)
]
)