Use os.system() instead of run_setup()

Use `os.system()` instead of `run_setup()` because the last
is not taking any effect

Signed-off-by: Ulysses Souza <ulysses.souza@docker.com>
This commit is contained in:
Ulysses Souza 2019-03-22 10:32:59 +01:00
parent 295dd9abda
commit 0e05ac6d2c
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,6 @@ import os
import shutil
import sys
import time
from distutils.core import run_setup
from jinja2 import Template
from release.bintray import BintrayAPI
@ -276,7 +275,8 @@ def finalize(args):
repository.checkout_branch(br_name)
run_setup(os.path.join(REPO_ROOT, 'setup.py'), script_args=['sdist', 'bdist_wheel'])
os.system('python {setup_script} sdist bdist_wheel'.format(
setup_script=os.path.join(REPO_ROOT, 'setup.py')))
merge_status = pr_data.merge()
if not merge_status.merged and not args.finalize_resume: