pcb defect detetcion application
[ealt-edge.git] / example-apps / PDD / pcb-defect-detection / data / lib_coco / PythonAPI / setup.py
1 from setuptools import setup, Extension
2 import numpy as np
3
4 # To compile and install locally run "python setup.py build_ext --inplace"
5 # To install library to Python site-packages run "python setup.py build_ext install"
6
7 ext_modules = [
8     Extension(
9         'pycocotools._mask',
10         sources=['../common/maskApi.c', 'pycocotools/_mask.pyx'],
11         include_dirs = [np.get_include(), '../common'],
12         extra_compile_args=['-Wno-cpp', '-Wno-unused-function', '-std=c99'],
13     )
14 ]
15
16 setup(
17     name='pycocotools',
18     packages=['pycocotools'],
19     package_dir = {'pycocotools': 'pycocotools'},
20     install_requires=[
21         'setuptools>=18.0',
22         'cython>=0.27.3',
23         'matplotlib>=2.1.0'
24     ],
25     version='2.0',
26     ext_modules= ext_modules
27 )