-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathsetup.py
More file actions
24 lines (21 loc) · 719 Bytes
/
setup.py
File metadata and controls
24 lines (21 loc) · 719 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
import numpy as np
from setuptools import setup, Extension
from Cython.Build import cythonize
# ----------------------------------------------------------------------------
# Cython Extension
# ----------------------------------------------------------------------------
extensions = [
Extension('dt',
['dt.pyx'],
include_dirs=[np.get_include()],
extra_compile_args=['-march=native', '-O3']
)
]
# ----------------------------------------------------------------------------
# Main Setup
# ----------------------------------------------------------------------------
setup(
name='Generalized Distance Transforms of Sampled Functions',
ext_modules = cythonize(extensions),
test_suite = 'test'
)