(fromfile, tofile)
| 62 | |
| 63 | |
| 64 | def process_tempita_pyd(fromfile, tofile): |
| 65 | import npy_tempita as tempita |
| 66 | |
| 67 | assert fromfile.endswith('.pxd.in') |
| 68 | assert tofile.endswith('.pxd') |
| 69 | with open(fromfile) as f: |
| 70 | tmpl = f.read() |
| 71 | pyxcontent = tempita.sub(tmpl) |
| 72 | with open(tofile, "w") as f: |
| 73 | f.write(pyxcontent) |
| 74 | |
| 75 | def process_tempita_pxi(fromfile, tofile): |
| 76 | import npy_tempita as tempita |