Skip to content

Commit c79c1ec

Browse files
committed
Switch to uv. Deleted unwanted directories
Signed-off-by: Prabhu Subramanian <[email protected]>
1 parent ff115fd commit c79c1ec

File tree

2 files changed

+7
-19
lines changed

2 files changed

+7
-19
lines changed

blint_db/projects_compiler/vcpkg.py

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,21 @@ def git_checkout_vcpkg_commit():
2626

2727
def run_vcpkg_install_command():
2828
# Linux command
29-
install_command = ["./bootstrap-vcpkg.sh"]
29+
install_command = ["bash", "bootstrap-vcpkg.sh"]
3030
install_run = subprocess.run(
31-
install_command, cwd=VCPKG_LOCATION, capture_output=True, check=False
31+
install_command, cwd=VCPKG_LOCATION, capture_output=True, check=False, encoding="utf-8"
3232
)
3333
if DEBUG_MODE:
3434
print(install_run.stdout)
35-
logger.debug(f"'bootstrap-vcpkg.sh: {install_run.stdout.decode('ascii')}")
35+
logger.debug(f"'bootstrap-vcpkg.sh: {install_run.stdout}")
3636

3737
int_command = "./vcpkg integrate install".split(" ")
3838
int_run = subprocess.run(
39-
int_command, cwd=VCPKG_LOCATION, capture_output=True, check=False
39+
int_command, cwd=VCPKG_LOCATION, capture_output=True, check=False, encoding="utf-8"
4040
)
4141
if DEBUG_MODE:
4242
print(int_run.stdout)
43-
logger.debug(f"'vcpkg integrate install: {int_run.stdout.decode('ascii')}")
43+
logger.debug(f"'vcpkg integrate install: {int_run.stdout}")
4444

4545

4646
def exec_explorer(directory):
@@ -57,19 +57,7 @@ def exec_explorer(directory):
5757
for root, _, files in os.walk(directory):
5858
for file in files:
5959
file_path = os.path.join(root, file)
60-
try:
61-
result = subprocess.run(
62-
["file", file_path], capture_output=True, check=False
63-
)
64-
if b"ELF" in result.stdout:
65-
executables.append(file_path)
66-
if b"archive" in result.stdout:
67-
executables.append(file_path)
68-
except FileNotFoundError:
69-
print(
70-
"Error: 'file' command not found. Make sure it's installed and in your PATH."
71-
)
72-
return []
60+
executables.append(file_path)
7361
return executables
7462

7563

blint_db/utils/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ def subprocess_run_debug(setup_run, project_name):
1313
logger.error(
1414
f"{project_name} failed to SETUP {WRAPDB_LOCATION / 'build' / project_name}"
1515
)
16-
logger.error(f"{project_name}: {setup_run.stdout.decode('ascii')}")
16+
logger.error(f"{project_name}: {setup_run.stdout}")

0 commit comments

Comments
 (0)