diff options
author | Julian Taylor <jtaylor.debian@googlemail.com> | 2014-04-05 13:13:13 +0200 |
---|---|---|
committer | Julian Taylor <jtaylor.debian@googlemail.com> | 2014-04-05 14:35:28 +0200 |
commit | c9fd63407da2a529c205402fd1bda5ea20eedce2 (patch) | |
tree | 177b04a1cabf326d31da5afd15568397123266a2 /bscript | |
parent | a0794f63d548e688e2eed76a9dc4e8df0ea33846 (diff) | |
download | numpy-c9fd63407da2a529c205402fd1bda5ea20eedce2.tar.gz |
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.
Diffstat (limited to 'bscript')
-rw-r--r-- | bscript | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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) |