MCPcopy Create free account
hub / github.com/numpy/numpy / process_tempita_pxi

Function process_tempita_pxi

tools/cythonize.py:75–84  ·  view source on GitHub ↗
(fromfile, tofile)

Source from the content-addressed store, hash-verified

73 f.write(pyxcontent)
74
75def process_tempita_pxi(fromfile, tofile):
76 import npy_tempita as tempita
77
78 assert fromfile.endswith('.pxi.in')
79 assert tofile.endswith('.pxi')
80 with open(fromfile) as f:
81 tmpl = f.read()
82 pyxcontent = tempita.sub(tmpl)
83 with open(tofile, "w") as f:
84 f.write(pyxcontent)
85
86def process_tempita_pxd(fromfile, tofile):
87 import npy_tempita as tempita

Callers

nothing calls this directly

Calls 4

openFunction · 0.85
endswithMethod · 0.80
readMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected