diff options
author | gfyoung <gfyoung17@gmail.com> | 2016-09-19 23:47:09 -0400 |
---|---|---|
committer | gfyoung <gfyoung17@gmail.com> | 2016-09-19 23:47:09 -0400 |
commit | 4c877be5fc4075595e15b4a451f76e128376de00 (patch) | |
tree | 45bc1e254b054f0525d44817a7fc35bd04109f60 /tools | |
parent | e1ad72da79a97b0f2209d47d3f7c514ddcb0e8de (diff) | |
download | numpy-4c877be5fc4075595e15b4a451f76e128376de00.tar.gz |
BUG: Assert fromfile ending earlier in pyx processing
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/cythonize.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/cythonize.py b/tools/cythonize.py index 4ab10a058..2db0cbd52 100755 --- a/tools/cythonize.py +++ b/tools/cythonize.py @@ -91,10 +91,10 @@ def process_tempita_pyx(fromfile, tofile): except ImportError: raise Exception('Building %s requires Tempita: ' 'pip install --user Tempita' % VENDOR) + assert fromfile.endswith('.pyx.in') with open(fromfile, "r") as f: tmpl = f.read() pyxcontent = tempita.sub(tmpl) - assert fromfile.endswith('.pyx.in') pyxfile = fromfile[:-len('.pyx.in')] + '.pyx' with open(pyxfile, "w") as f: f.write(pyxcontent) |