forked from lichengunc/refer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
25 lines (23 loc) · 780 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
"""
This code is for making mask.so, used to visualize the segmentation of referred object.
All "mask" related code is copied from https://github.com/pdollar/coco.git
"""
from distutils.core import setup
from Cython.Build import cythonize
from distutils.extension import Extension
import numpy as np
ext_modules = [
Extension(
'external._mask',
sources=['external/maskApi.c', 'external/_mask.pyx'],
include_dirs = [np.get_include(), 'external'],
extra_compile_args=['-Wno-cpp', '-Wno-unused-function', '-std=c99'],
)
]
setup(
name='external',
packages=['external'],
package_dir = {'external': 'external'},
version='2.0',
ext_modules=cythonize(ext_modules)
)