From d76d03711913008b0c1239e910ae91ed457d0024 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller?= Date: Thu, 28 Jun 2018 21:23:52 +0200 Subject: Force cython when building sdist Fixes #182 --- setup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index a1a87a2..cc102d9 100644 --- a/setup.py +++ b/setup.py @@ -77,12 +77,16 @@ if 'setuptools.extension' in sys.modules: 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 -- cgit v1.2.1