diff --git a/.travis.yml b/.travis.yml index fcb8f8e7..603ee947 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,6 +21,6 @@ matrix: - python: pypy env: TOXENV=pypy -install: pip install tox +install: pip install cython tox script: tox diff --git a/setup.py b/setup.py index a1a87a2f..cc102d90 100644 --- a/setup.py +++ b/setup.py @@ -77,12 +77,16 @@ sys.modules['distutils.command.build_ext'].Extension = _Extension with_cython = False +if 'sdist' in sys.argv: + # we need cython here + with_cython = True try: from Cython.Distutils.extension import Extension as _Extension from Cython.Distutils import build_ext as _build_ext with_cython = True except ImportError: - pass + if with_cython: + raise try: from wheel.bdist_wheel import bdist_wheel