(d)
| 38 | return commit_id |
| 39 | |
| 40 | def prepare_setup(d): |
| 41 | # template inflate |
| 42 | with open(os.path.join(cur_dir, 'setup-template.py'), 'rt') as fin: |
| 43 | src = Template(fin.read()) |
| 44 | result = src.substitute(d) |
| 45 | with open(os.path.join(cur_dir, 'setup.py'), 'wt') as fout: |
| 46 | fout.write(result) |
| 47 | |
| 48 | def build_egg(): |
| 49 | # build egg |