Skip to content

Commit

Permalink
Revert "Fix install_other.sh script"
Browse files Browse the repository at this point in the history
This reverts commit 187d26f.
  • Loading branch information
JCGoran committed Feb 25, 2024
1 parent 3dc89bf commit 4bbddd6
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions scripts/install_other.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
Expand Down

0 comments on commit 4bbddd6

Please sign in to comment.