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