From f7532ecacc7f6f073609fc0759d9c653559b4f39 Mon Sep 17 00:00:00 2001 From: Micah Lee Date: Tue, 17 Mar 2020 11:43:14 -0700 Subject: [PATCH] Update fedora build script --- install/linux/build_rpm.py | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/install/linux/build_rpm.py b/install/linux/build_rpm.py index 2f1fa3e03..cc9c78fcc 100755 --- a/install/linux/build_rpm.py +++ b/install/linux/build_rpm.py @@ -19,10 +19,6 @@ ) -def run(cmd): - subprocess.run(cmd, cwd=root, check=True) - - def main(): build_path = os.path.join(root, "build") dist_path = os.path.join(root, "dist") @@ -34,13 +30,11 @@ def main(): shutil.rmtree(dist_path) print("* Building RPM package") - run( - [ - "python3", - "setup.py", - "bdist_rpm", - '--requires="python3-qt5,python3-appdirs,python3-click,python3-pyxdg,python3-requests,(docker or docker-ce)"', - ] + subprocess.run( + "python3 setup.py bdist_rpm --requires='python3-qt5,python3-appdirs,python3-click,python3-pyxdg,python3-requests,(docker or docker-ce)'", + shell=True, + cwd=root, + check=True, ) print("")