Safemotion Lib
Loading...
Searching...
No Matches
setup.py
Go to the documentation of this file.
1from distutils.core import setup
2from distutils.extension import Extension
3
4import numpy as np
5from Cython.Build import cythonize
6
7
9 try:
10 numpy_include = np.get_include()
11 except AttributeError:
12 numpy_include = np.get_numpy_include()
13 return numpy_include
14
15
16ext_modules = [
17 Extension(
18 'rank_cy',
19 ['rank_cy.pyx'],
20 include_dirs=[numpy_include()],
21 ),
22 Extension(
23 'roc_cy',
24 ['roc_cy.pyx'],
25 include_dirs=[numpy_include()],
26 )
27]
28
29setup(
30 name='Cython-based reid evaluation code',
31 ext_modules=cythonize(ext_modules)
32)