install cython automatically as a dependency (#101)

* install cython automatically as a dependency

* install numpy automatically before building

* fix linting errors
pull/102/head
Karlind 2019-07-31 20:29:04 +08:00 committed by Kai Chen
parent 5f8fb7d463
commit 95b87687ca
1 changed files with 5 additions and 3 deletions

View File

@ -1,10 +1,12 @@
import platform
import sys
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
from Cython.Distutils import build_ext
dist.Distribution().fetch_build_eggs(['Cython', 'numpy>=1.11.1'])
import numpy # noqa: E402
from Cython.Distutils import build_ext # noqa: E402
install_requires = [
'numpy>=1.11.1', 'pyyaml', 'six', 'addict', 'requests', 'opencv-python',