Rename setup.py template to setup.py.tmpl to avoid confusion

This commit is contained in:
Jason Paryani
2014-09-04 18:44:42 -07:00
parent 2db935a00b
commit ece4e36329
2 changed files with 2 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ def main():
with open(filename, 'w') as out: with open(filename, 'w') as out:
out.write(module.render(code=file_code, file=f, include_dir=include_dir)) out.write(module.render(code=file_code, file=f, include_dir=include_dir))
setup = env.get_template('setup.py') setup = env.get_template('setup.py.tmpl')
with open('setup_capnp.py', 'w') as out: with open('setup_capnp.py', 'w') as out:
out.write(setup.render(code=code)) out.write(setup.render(code=code))
print('You now need to build the cython module by running `python setup_capnp.py build_ext --inplace`.') print('You now need to build the cython module by running `python setup_capnp.py build_ext --inplace`.')

View File

@@ -5,7 +5,7 @@ import os
import re import re
files = [{% for file in code.requestedFiles %}"{{file.filename}}",{% endfor %}] files = [{% for f in code.requestedFiles %}"{{f.filename}}",{% endfor %}]
for f in files: for f in files:
cpp_file = f + '.cpp' cpp_file = f + '.cpp'