--- a/scripts/install-dependencies.py Wed Jul 13 11:16:20 2022 +0200 +++ b/scripts/install-dependencies.py Wed Jul 13 14:55:47 2022 +0200 @@ -16,19 +16,26 @@ def pipInstall(packageName): """ Install the given package via pip. - + @param packageName name of the package to be installed @type str @return flag indicating a successful installation @rtype bool """ ok = False - exitCode = subprocess.run( # secok - [sys.executable, "-m", "pip", "install", "--prefer-binary", - "--upgrade", packageName] + exitCode = subprocess.run( # secok + [ + sys.executable, + "-m", + "pip", + "install", + "--prefer-binary", + "--upgrade", + packageName, + ] ).returncode - ok = (exitCode == 0) - + ok = exitCode == 0 + return ok @@ -38,12 +45,10 @@ """ packages = ( "wheel", - "PyQt6>=6.2.0", "PyQt6-Charts>=6.2.0", "PyQt6-WebEngine>=6.2.0", "PyQt6-QScintilla>=2.13.0", - "docutils", "Markdown", "pyyaml", @@ -61,13 +66,13 @@ "cyclonedx-bom", "trove-classifiers", ) - + failedPackages = [] for package in packages: ok = pipInstall(package) if not ok: failedPackages.append(package) - + print() print("Installation Summary") print("--------------------") @@ -78,6 +83,7 @@ else: print("All packages installed successfully.") + if __name__ == "__main__": main()