From c4fe6c69a33bacd292dfab87dc91dad32ba5fcf4 Mon Sep 17 00:00:00 2001 From: Titus von Koeller Date: Mon, 1 Aug 2022 09:39:56 -0700 Subject: deleted function that was moved but accidentally not removed in commit --- bitsandbytes/cuda_setup.py | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'bitsandbytes') diff --git a/bitsandbytes/cuda_setup.py b/bitsandbytes/cuda_setup.py index 6e37606..05d4c7f 100644 --- a/bitsandbytes/cuda_setup.py +++ b/bitsandbytes/cuda_setup.py @@ -19,8 +19,6 @@ evaluation: """ import ctypes -import shlex -import subprocess from os import environ as env from pathlib import Path from typing import Set, Union @@ -28,26 +26,6 @@ from typing import Set, Union from .utils import print_err, warn_of_missing_prerequisite -def execute_and_return(command_string: str) -> Tuple[str, str]: - def _decode(subprocess_err_out_tuple): - return tuple( - to_decode.decode("UTF-8").strip() - for to_decode in subprocess_err_out_tuple - ) - - def execute_and_return_decoded_std_streams(command_string): - return _decode( - subprocess.Popen( - shlex.split(command_string), - stdout=subprocess.PIPE, - stderr=subprocess.PIPE, - ).communicate() - ) - - std_out, std_err = execute_and_return_decoded_std_streams() - return std_out, std_err - - def check_cuda_result(cuda, result_val): if result_val != 0: # TODO: undefined name 'error_str' -- cgit v1.2.3