Skip to content

Commit 0d86027

Browse files
authored
Merge pull request cocodataset#86 from kkc/dependency
Solve dependency issues
2 parents 727b546 + 2f074ec commit 0d86027

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

PythonAPI/setup.py

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
from distutils.core import setup
2-
from Cython.Build import cythonize
3-
from distutils.extension import Extension
1+
from setuptools import setup, Extension
42
import numpy as np
53

64
# To compile and install locally run "python setup.py build_ext --inplace"
@@ -15,10 +13,15 @@
1513
)
1614
]
1715

18-
setup(name='pycocotools',
19-
packages=['pycocotools'],
20-
package_dir = {'pycocotools': 'pycocotools'},
21-
version='2.0',
22-
ext_modules=
23-
cythonize(ext_modules)
24-
)
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+
)

0 commit comments

Comments
 (0)