forked from open-mmlab/cocoapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
34 lines (31 loc) · 1.13 KB
/
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
33
34
import numpy as np
from setuptools import Extension, setup
# To compile and install locally run "python setup.py build_ext --inplace"
# To install library to Python site-packages run
# "python setup.py build_ext install"
# Note that the original compile flags below are GCC flags unsupported by
# the Visual C++ 2015 build tools.
# They can safely be removed.
ext_modules = [
Extension(
'pycocotools._mask',
sources=['common/maskApi.c', 'pycocotools/_mask.pyx'],
include_dirs=[np.get_include(), 'common'],
# extra_compile_args=['-Wno-cpp', '-Wno-unused-function', '-std=c99'],
extra_compile_args=[],
)
]
setup(name='wai.pycocotools',
description='Public release of open-mmlab/cocoapi on PyPI',
url='https://github.com/waikato-ufdl/cocoapi',
classifiers=[
'License :: OSI Approved :: BSD License'
],
license='BSD License',
packages=['pycocotools'],
package_dir={'pycocotools': 'pycocotools'},
install_requires=[
'setuptools>=18.0', 'cython>=0.27.3, <3.0.0', 'matplotlib>=2.1.0'
],
version='12.1.1',
ext_modules=ext_modules)