chore: fix the dir remove operation

This commit is contained in:
maksyuki committed 2025-12-17 22:09:10 +08:00
1 parent 6ccb01a1e7
commit ff1851ed44
1 file changed
+5 -5
+5 -5
View File
@@ -54,12 +54,11 @@ def install_dependencies():
# Install dependencies (according to Verilator official documentation) # Install dependencies (according to Verilator official documentation)
dependencies = [ dependencies = [
"git", "help2man", "perl", "python3", "make", "autoconf", "g++", "gcc", "flex", "bison", "ccache", "git", "help2man", "perl", "python3", "make", "autoconf", "g++", "flex", "bison", "ccache",
"numactl", "perl-doc", "numactl", "perl-doc",
"libfl2", "libfl2",
"libfl-dev", "libfl-dev",
"zlib1g", "zlib1g-dev", "zlib1g", "zlib1g-dev"
"build-essential"
] ]
# Additional packages for newer Ubuntu versions # Additional packages for newer Ubuntu versions
@@ -243,9 +242,10 @@ def install_software_toolchain():
print(f"✗ software toolchain installation failed: {e}") print(f"✗ software toolchain installation failed: {e}")
return False return False
finally: finally:
pass
# Clean up temporary directory # Clean up temporary directory
if temp_dir.exists(): # if temp_dir.exists():
shutil.rmtree(temp_dir) # shutil.rmtree(temp_dir)
def main(): def main():
"""Main function""" """Main function"""