from distutils.core import setupfrom Cython.Build import cythonizefrom distutils.extension import Extensionimport numpy as np# To install and compile to your anaconda/python site-packages, simply run:# $ pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI# 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=[] # originally was ['-Wno-cpp', '-Wno-unused-function', '-std=c99'],)]setup(name='pycocotools',packages=['pycocotools'],package_dir = {'pycocotools': 'pycocotools'},version='2.0',ext_modules=cythonize(ext_modules))
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。