From 688423c25590845fa9d2beebd6f42f7f2f16a6e1 Mon Sep 17 00:00:00 2001 From: Louwrens van Dellen Date: Tue, 29 Oct 2019 01:55:23 +0100 Subject: [PATCH 1/2] Setup.py should not cythonize extensions except when building. #221 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cython’s build_ext module runs cythonize as part of the build process: https://cython.readthedocs.io/en/latest/src/userguide/source_files_and_compilation.html#distributing-cython-modules --- setup.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 2939eeee2..a13e8bfda 100644 --- a/setup.py +++ b/setup.py @@ -297,8 +297,6 @@ def get_version_tofu(path=_HERE): ), ] -extensions = cythonize(extensions, annotate=True) - setup( name="tofu", @@ -416,6 +414,7 @@ def get_version_tofu(path=_HERE): # ], # }, ext_modules=extensions, - cmdclass={"build_ext": build_ext, "clean": CleanCommand}, + cmdclass={'build_ext': cth.Build.build_ext, + "clean": CleanCommand}, include_dirs=[np.get_include()], ) From b2cc83e9ed251a21c1585b6ea5825c649dd5fb10 Mon Sep 17 00:00:00 2001 From: "Laura S. Mendoza" Date: Tue, 29 Oct 2019 11:47:23 +0100 Subject: [PATCH 2/2] Update setup.py --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index a13e8bfda..8dad50195 100644 --- a/setup.py +++ b/setup.py @@ -414,7 +414,7 @@ def get_version_tofu(path=_HERE): # ], # }, ext_modules=extensions, - cmdclass={'build_ext': cth.Build.build_ext, + cmdclass={"build_ext": cth.Build.build_ext, "clean": CleanCommand}, include_dirs=[np.get_include()], )