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