From 4bbddd69818f204260ab87f71eaddc9c094b6ebd Mon Sep 17 00:00:00 2001 From: Goran Jelic-Cizmek Date: Sun, 25 Feb 2024 21:03:18 +0100 Subject: [PATCH] Revert "Fix install_other.sh script" This reverts commit 187d26f028371e95e376322bcf08b3c79577386f. --- scripts/install_other.sh | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/scripts/install_other.sh b/scripts/install_other.sh index e8e62f6..d5dac70 100755 --- a/scripts/install_other.sh +++ b/scripts/install_other.sh @@ -30,16 +30,9 @@ install_class(){ cd "${class_dir}" make libclass.a - if [ "$(python3.9 -c 'import sys;print(sys.platform)')" = 'darwin' ] - then - sudo_cmd="sudo" - else - # the manylinux container does not have sudo - sudo_cmd='' - fi - ${sudo_cmd} mkdir -p "${CLASS_INSTALL_DIR}/lib" "${CLASS_INSTALL_DIR}/include" - ${sudo_cmd} cp -a "${class_dir}/libclass.a" "${CLASS_INSTALL_DIR}/lib/" - ${sudo_cmd} cp -a "${class_dir}/include/"*.h "${CLASS_INSTALL_DIR}/include/" + sudo mkdir -p "${CLASS_INSTALL_DIR}/lib" "${CLASS_INSTALL_DIR}/include" + sudo cp -a "${class_dir}/libclass.a" "${CLASS_INSTALL_DIR}/lib/" + sudo cp -a "${class_dir}/include/"*.h "${CLASS_INSTALL_DIR}/include/" cd - printf 'CLASS installed\n' }