Rename setup.py template to setup.py.tmpl to avoid confusion
This commit is contained in:
@@ -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`.')
|
||||||
|
|||||||
@@ -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'
|
||||||
Reference in New Issue
Block a user