Safemotion Lib
Loading...
Searching...
No Matches
smreid
fastreid
evaluation
rank_cylib
setup.py
Go to the documentation of this file.
1
from
distutils.core
import
setup
2
from
distutils.extension
import
Extension
3
4
import
numpy
as
np
5
from
Cython.Build
import
cythonize
6
7
8
def
numpy_include
():
9
try
:
10
numpy_include = np.get_include()
11
except
AttributeError:
12
numpy_include = np.get_numpy_include()
13
return
numpy_include
14
15
16
ext_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
29
setup(
30
name=
'Cython-based reid evaluation code'
,
31
ext_modules=cythonize(ext_modules)
32
)
fastreid.evaluation.rank_cylib.setup.numpy_include
numpy_include()
Definition
setup.py:8
Generated by
1.10.0