We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 727b546 + 2f074ec commit 0d86027Copy full SHA for 0d86027
PythonAPI/setup.py
@@ -1,6 +1,4 @@
1
-from distutils.core import setup
2
-from Cython.Build import cythonize
3
-from distutils.extension import Extension
+from setuptools import setup, Extension
4
import numpy as np
5
6
# To compile and install locally run "python setup.py build_ext --inplace"
@@ -15,10 +13,15 @@
15
13
)
16
14
]
17
18
-setup(name='pycocotools',
19
- packages=['pycocotools'],
20
- package_dir = {'pycocotools': 'pycocotools'},
21
- version='2.0',
22
- ext_modules=
23
- cythonize(ext_modules)
24
- )
+setup(
+ name='pycocotools',
+ packages=['pycocotools'],
+ package_dir = {'pycocotools': 'pycocotools'},
+ install_requires=[
+ 'setuptools>=18.0',
+ 'cython>=0.27.3',
+ 'matplotlib>=2.1.0'
+ ],
25
+ version='2.0',
26
+ ext_modules= ext_modules
27
+)
0 commit comments