From c9fd63407da2a529c205402fd1bda5ea20eedce2 Mon Sep 17 00:00:00 2001 From: Julian Taylor Date: Sat, 5 Apr 2014 13:13:13 +0200 Subject: BLD: remove cython c source from git Instead generate at build time. The generated sources are still part of the sdist. tools/cythonize.py is copied from SciPy with small changes to the configuration. --- bscript | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'bscript') diff --git a/bscript b/bscript index 12fc345b4..e5d1a89c5 100644 --- a/bscript +++ b/bscript @@ -61,6 +61,16 @@ def _register_metadata(context): context.register_metadata("is_released", _SETUP_PY.ISRELEASED) context.register_metadata("full_version", full_version) +def _generate_cython(): + print("Cythonizing sources") + cwd = os.path.abspath(os.path.dirname(__file__)) + p = subprocess.call([sys.executable, + os.path.join(cwd, 'tools', 'cythonize.py'), + 'numpy'], + cwd=cwd) + if p != 0: + raise RuntimeError("Running cythonize failed!") + @hooks.post_configure def post_configure(context): conf = context.waf_context @@ -76,6 +86,8 @@ def post_configure(context): blas_lapack.check_blas_lapack(context) + _generate_cython() + @hooks.pre_build def pre_build(context): _register_metadata(context) -- cgit v1.2.1