Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add install_requires #192

Merged
merged 4 commits into from
Nov 21, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,17 @@

from os import path
from ast import parse
from distutils.command.build_ext import build_ext as _build_ext
from distutils.core import setup
from distutils.extension import Extension as _Extension
import Cython.Build

try:
from setuptools.command.build_ext import build_ext as _build_ext
from setuptools.core import setup
from setuptools.extension import Extension as _Extension
aux_setup_kwds = {"install_requires": ["Cython", "cysignals"]}
except ImportError:
from distutils.command.build_ext import build_ext as _build_ext
from distutils.core import setup
from distutils.extension import Extension as _Extension
aux_setup_kwds = {}

from copy import copy

Expand Down Expand Up @@ -111,6 +118,7 @@ def finalize_options(self):
setattr(ext, key, value)

def run(self):
import Cython.Build
self.extensions = Cython.Build.cythonize(
self.extensions,
include_path=["src"],
Expand Down Expand Up @@ -242,4 +250,5 @@ def readme_to_long_description():
license="GNU General Public License, version 2 or later",
long_description=readme_to_long_description(),
cmdclass={"build_ext": build_ext},
**aux_setup_kwds
)