Commit f86260c2 authored by Jason Madden's avatar Jason Madden

Require cython for setup.

parent c01eb80d
...@@ -339,6 +339,10 @@ else: ...@@ -339,6 +339,10 @@ else:
include_package_data = False include_package_data = False
run_make = True run_make = True
if run_make and os.path.exists("Makefile"):
setup_requires = ['cython']
else:
setup_requires = []
def run_setup(ext_modules, run_make): def run_setup(ext_modules, run_make):
if run_make: if run_make:
...@@ -359,6 +363,7 @@ def run_setup(ext_modules, run_make): ...@@ -359,6 +363,7 @@ def run_setup(ext_modules, run_make):
ext_modules=ext_modules, ext_modules=ext_modules,
cmdclass=dict(build_ext=my_build_ext, sdist=sdist), cmdclass=dict(build_ext=my_build_ext, sdist=sdist),
install_requires=install_requires, install_requires=install_requires,
setup_requires=setup_requires,
zip_safe=False, zip_safe=False,
classifiers=[ classifiers=[
"License :: OSI Approved :: MIT License", "License :: OSI Approved :: MIT License",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment