|
|
@ -42,8 +42,8 @@ def install(service_dir):
|
|
|
|
# Check if whisper-rust executable exists before attempting to build
|
|
|
|
# Check if whisper-rust executable exists before attempting to build
|
|
|
|
if not os.path.isfile(os.path.join(WHISPER_RUST_PATH, "target/release/whisper-rust")):
|
|
|
|
if not os.path.isfile(os.path.join(WHISPER_RUST_PATH, "target/release/whisper-rust")):
|
|
|
|
# Check if Rust is installed. Needed to build whisper executable
|
|
|
|
# Check if Rust is installed. Needed to build whisper executable
|
|
|
|
rust_check = subprocess.call('command -v rustc', shell=True)
|
|
|
|
rustc_path = shutil.which("rustc")
|
|
|
|
if rust_check != 0:
|
|
|
|
if rustc_path is None:
|
|
|
|
print("Rust is not installed or is not in system PATH. Please install Rust before proceeding.")
|
|
|
|
print("Rust is not installed or is not in system PATH. Please install Rust before proceeding.")
|
|
|
|
exit(1)
|
|
|
|
exit(1)
|
|
|
|
|
|
|
|
|
|
|
|