Skip to content

Commit 3cc9664

Browse files
committed
sdfsdfsdfsdf
1 parent c6b8da0 commit 3cc9664

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

jingle_python/gh_actions_setup.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def is_command_available(cmd):
1515
def install_with_yum():
1616
print("Detected yum. Installing clang...")
1717
try:
18-
subprocess.run(['sudo', 'yum', 'install', '-y', 'clang'], check=True)
18+
subprocess.run(['yum', 'install', '-y', 'clang'], check=True)
1919
print("clang installed successfully.")
2020
except subprocess.CalledProcessError:
2121
print("Failed to install clang using yum.")
@@ -30,8 +30,8 @@ def install_with_yum():
3030
def install_with_apt():
3131
print("Detected apt. Installing llvm-dev, libclang-dev, clang, and z3...")
3232
try:
33-
subprocess.run(['sudo', 'apt', 'update'], check=True)
34-
subprocess.run(['sudo', 'apt', 'install', '-y', 'llvm-dev', 'libclang-dev', 'clang', "libz3-dev"], check=True)
33+
subprocess.run(['apt', 'update'], check=True)
34+
subprocess.run(['apt', 'install', '-y', 'llvm-dev', 'libclang-dev', 'clang', "libz3-dev"], check=True)
3535
print("Packages installed successfully via apt.")
3636
except subprocess.CalledProcessError:
3737
print("Failed to install packages using apt.")
@@ -73,11 +73,11 @@ def install_z3_latest():
7373

7474
# Install to /usr/local
7575
print("Installing headers and shared libraries to /usr/local...")
76-
subprocess.run(['sudo', 'cp', '-r', include_dir, '/usr/local/include/z3'], check=True)
77-
subprocess.run(['sudo', 'cp', os.path.join(lib_dir, 'libz3.so'), '/usr/local/lib/'], check=True)
76+
subprocess.run(['cp', '-r', include_dir, '/usr/local/include/z3'], check=True)
77+
subprocess.run(['cp', os.path.join(lib_dir, 'libz3.so'), '/usr/local/lib/'], check=True)
7878

7979
# Refresh the linker cache
80-
subprocess.run(['sudo', 'ldconfig'], check=True)
80+
subprocess.run(['ldconfig'], check=True)
8181

8282
print("Z3 installed successfully.")
8383

0 commit comments

Comments
 (0)