mirror of https://github.com/open-mmlab/mmcv.git
install cython automatically as a dependency (#101)
* install cython automatically as a dependency * install numpy automatically before building * fix linting errorspull/102/head
parent
5f8fb7d463
commit
95b87687ca
8
setup.py
8
setup.py
|
@ -1,10 +1,12 @@
|
||||||
import platform
|
import platform
|
||||||
import sys
|
import sys
|
||||||
from io import open # for Python 2 (identical to builtin in Python 3)
|
from io import open # for Python 2 (identical to builtin in Python 3)
|
||||||
from setuptools import Extension, find_packages, setup
|
from setuptools import Extension, find_packages, setup, dist
|
||||||
|
|
||||||
import numpy
|
dist.Distribution().fetch_build_eggs(['Cython', 'numpy>=1.11.1'])
|
||||||
from Cython.Distutils import build_ext
|
|
||||||
|
import numpy # noqa: E402
|
||||||
|
from Cython.Distutils import build_ext # noqa: E402
|
||||||
|
|
||||||
install_requires = [
|
install_requires = [
|
||||||
'numpy>=1.11.1', 'pyyaml', 'six', 'addict', 'requests', 'opencv-python',
|
'numpy>=1.11.1', 'pyyaml', 'six', 'addict', 'requests', 'opencv-python',
|
||||||
|
|
Loading…
Reference in New Issue