-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathsetup.py
32 lines (28 loc) · 829 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
import numpy as np
from setuptools import setup, find_packages
from distutils.extension import Extension
from Cython.Build import cythonize
def numpy_include():
try:
numpy_include = np.get_include()
except AttributeError:
numpy_include = np.get_numpy_include()
return numpy_include
ext_modules = [
Extension(
'lreid.evaluation.rank_cylib.rank_cy',
['lreid/evaluation/rank_cylib/rank_cy.pyx'],
include_dirs=[numpy_include()],
)
]
__version__ = '1.0.0'
setup(
name='lreid',
version='1.0.0',
description='A library for Lifelong Person Re-Identification in PyTorch',
author='Nan Pu',
license='MIT',
packages=find_packages(),
keywords=['Person Re-Identification', 'Deep Learning', 'Computer Vision'],
ext_modules=cythonize(ext_modules)
)