(fromfile, tofile)
| 49 | |
| 50 | |
| 51 | def process_tempita_pyx(fromfile, tofile): |
| 52 | import npy_tempita as tempita |
| 53 | |
| 54 | assert fromfile.endswith('.pyx.in') |
| 55 | with open(fromfile) as f: |
| 56 | tmpl = f.read() |
| 57 | pyxcontent = tempita.sub(tmpl) |
| 58 | pyxfile = fromfile[:-len('.pyx.in')] + '.pyx' |
| 59 | with open(pyxfile, "w") as f: |
| 60 | f.write(pyxcontent) |
| 61 | process_pyx(pyxfile, tofile) |
| 62 | |
| 63 | |
| 64 | def process_tempita_pyd(fromfile, tofile): |
nothing calls this directly
no test coverage detected