()
| 46 | fout.write(result) |
| 47 | |
| 48 | def build_egg(): |
| 49 | # build egg |
| 50 | shutil.rmtree(os.path.join(cur_dir, 'dist'), ignore_errors=True) |
| 51 | cmd = 'cd {}; python setup.py bdist_egg' |
| 52 | cmd = cmd.format(cur_dir) |
| 53 | result = subprocess.run(cmd, shell=True, executable='/bin/bash') |
| 54 | if result.returncode != 0: |
| 55 | raise Exception('build egg error, return code:{}'.format(result.returncode)) |
| 56 | |
| 57 | def deploy_egg(host, port, project_name): |
| 58 | # deploy egg |