spl-core 7.6.0rc1.dev1__py3-none-any.whl → 7.6.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- spl_core/__init__.py +1 -1
- spl_core/common/command_line_executor.py +16 -3
- {spl_core-7.6.0rc1.dev1.dist-info → spl_core-7.6.1.dist-info}/METADATA +1 -1
- {spl_core-7.6.0rc1.dev1.dist-info → spl_core-7.6.1.dist-info}/RECORD +7 -7
- {spl_core-7.6.0rc1.dev1.dist-info → spl_core-7.6.1.dist-info}/LICENSE +0 -0
- {spl_core-7.6.0rc1.dev1.dist-info → spl_core-7.6.1.dist-info}/WHEEL +0 -0
- {spl_core-7.6.0rc1.dev1.dist-info → spl_core-7.6.1.dist-info}/entry_points.txt +0 -0
spl_core/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "7.6.
|
|
1
|
+
__version__ = "7.6.1"
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import locale
|
|
2
2
|
import subprocess
|
|
3
|
-
import sys
|
|
4
3
|
from pathlib import Path
|
|
5
4
|
from typing import Dict, List, Optional
|
|
6
5
|
|
|
@@ -29,7 +28,19 @@ class CommandLineExecutor:
|
|
|
29
28
|
Returns:
|
|
30
29
|
- A subprocess.CompletedProcess object representing the result of the command execution.
|
|
31
30
|
"""
|
|
32
|
-
|
|
31
|
+
if isinstance(cmd, str):
|
|
32
|
+
command: str | list[str] = cmd
|
|
33
|
+
use_shell = True
|
|
34
|
+
else:
|
|
35
|
+
# Check if any argument contains quotes, which indicates shell processing is needed
|
|
36
|
+
has_quotes = any('"' in arg or "'" in arg for arg in cmd)
|
|
37
|
+
if has_quotes:
|
|
38
|
+
command = " ".join(cmd)
|
|
39
|
+
use_shell = True
|
|
40
|
+
else:
|
|
41
|
+
command = cmd
|
|
42
|
+
use_shell = False
|
|
43
|
+
|
|
33
44
|
output = ""
|
|
34
45
|
try:
|
|
35
46
|
print("=" * 120)
|
|
@@ -44,7 +55,9 @@ class CommandLineExecutor:
|
|
|
44
55
|
text=True,
|
|
45
56
|
env=self.env,
|
|
46
57
|
universal_newlines=True,
|
|
47
|
-
encoding=
|
|
58
|
+
encoding=locale.getpreferredencoding(False),
|
|
59
|
+
errors="replace",
|
|
60
|
+
shell=use_shell,
|
|
48
61
|
) as process:
|
|
49
62
|
if process.stdout:
|
|
50
63
|
for line in process.stdout:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
spl_core/__init__.py,sha256=
|
|
1
|
+
spl_core/__init__.py,sha256=LhyfBkEBbOgB0Jk4g3WaFpdYuMxHYgQiZOy-lA4hMwE,22
|
|
2
2
|
spl_core/__run.py,sha256=DphnN7_Bjiw_mOOztsHxTDHS8snz1g2MMWAaJpZxPKM,361
|
|
3
3
|
spl_core/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
spl_core/common/command_line_executor.py,sha256=
|
|
4
|
+
spl_core/common/command_line_executor.py,sha256=fvrzZRFmxgY9pMf2byr3ufyQoT7zMd4hzruqObMgRs0,2622
|
|
5
5
|
spl_core/common/path.py,sha256=sDujd3n4XP1XGjHc7ImXEdjihO6A8BOIDbKCf7HgQ0Y,462
|
|
6
6
|
spl_core/common.cmake,sha256=sRWqQeK04iUpeM3beQZXIi5mpEQNyO751O-yBoFCrqk,35160
|
|
7
7
|
spl_core/conan.cmake,sha256=i1AuyN-e8cczX7TI1nl6e3Y8N-EP-QXPVY7LG6NUyJY,41958
|
|
@@ -63,8 +63,8 @@ spl_core/spl.cmake,sha256=W8h-Zj-N302qxMrRG8MhoEkJ0io92bWGp4Y5r8LBQnc,4535
|
|
|
63
63
|
spl_core/test_utils/archive_artifacts_collection.py,sha256=x7LH5dGIvssyhXsTFzB6rjgb5D2efKvHVpnjId3MNDk,5126
|
|
64
64
|
spl_core/test_utils/base_variant_test_runner.py,sha256=Oq27lkJlpB_y-p2_8S23F5zjn1438HW148q-hQNz3EY,3795
|
|
65
65
|
spl_core/test_utils/spl_build.py,sha256=o3MCWYRb769bXut_9EM_ZEweRKH7SSAuajh9277mKuI,8233
|
|
66
|
-
spl_core-7.6.
|
|
67
|
-
spl_core-7.6.
|
|
68
|
-
spl_core-7.6.
|
|
69
|
-
spl_core-7.6.
|
|
70
|
-
spl_core-7.6.
|
|
66
|
+
spl_core-7.6.1.dist-info/LICENSE,sha256=UjjA0o8f5tT3wVm7qodTLAhPWLl6kgVyn9FPAd1VeYY,1099
|
|
67
|
+
spl_core-7.6.1.dist-info/METADATA,sha256=xbBF90UeFv1q1v6GxZiHpH1Rcj4naz6v6CLWMZh_SZI,5157
|
|
68
|
+
spl_core-7.6.1.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
69
|
+
spl_core-7.6.1.dist-info/entry_points.txt,sha256=18_sdVY93N1GVBiAHxQ_F9ZM-bBvOmVMOMn7PNe2EqU,45
|
|
70
|
+
spl_core-7.6.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|