aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside-tools/deploy/commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside-tools/deploy/commands.py')
-rw-r--r--sources/pyside-tools/deploy/commands.py31
1 files changed, 0 insertions, 31 deletions
diff --git a/sources/pyside-tools/deploy/commands.py b/sources/pyside-tools/deploy/commands.py
deleted file mode 100644
index 92745367f..000000000
--- a/sources/pyside-tools/deploy/commands.py
+++ /dev/null
@@ -1,31 +0,0 @@
-# Copyright (C) 2022 The Qt Company Ltd.
-# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
-
-import subprocess
-import sys
-import logging
-
-"""
-All utility functions for deployment
-"""
-
-
-def run_command(command, dry_run: bool):
- command_str = " ".join([str(cmd) for cmd in command])
- try:
- if not dry_run:
- subprocess.check_call(command, shell=(sys.platform == "win32"))
- else:
- print(command_str + "\n")
- except FileNotFoundError as error:
- logging.exception(f"[DEPLOY]: {error.filename} not found")
- raise
- except subprocess.CalledProcessError as error:
- logging.exception(
- f"[DEPLOY]: Command {command_str} failed with error {error} and return_code"
- f"{error.returncode}"
- )
- raise
- except Exception as error:
- logging.exception(f"[DEPLOY]: Command {command_str} failed with error {error}")
- raise