Update fedora build script

This commit is contained in:
Micah Lee 2020-03-17 11:43:14 -07:00
parent 650fcf8d80
commit f7532ecacc
No known key found for this signature in database
GPG key ID: 403C2657CD994F73

View file

@ -19,10 +19,6 @@ root = os.path.dirname(
) )
def run(cmd):
subprocess.run(cmd, cwd=root, check=True)
def main(): def main():
build_path = os.path.join(root, "build") build_path = os.path.join(root, "build")
dist_path = os.path.join(root, "dist") dist_path = os.path.join(root, "dist")
@ -34,13 +30,11 @@ def main():
shutil.rmtree(dist_path) shutil.rmtree(dist_path)
print("* Building RPM package") print("* Building RPM package")
run( subprocess.run(
[ "python3 setup.py bdist_rpm --requires='python3-qt5,python3-appdirs,python3-click,python3-pyxdg,python3-requests,(docker or docker-ce)'",
"python3", shell=True,
"setup.py", cwd=root,
"bdist_rpm", check=True,
'--requires="python3-qt5,python3-appdirs,python3-click,python3-pyxdg,python3-requests,(docker or docker-ce)"',
]
) )
print("") print("")