detect package

This commit is contained in:
Nicholas Page 2024-05-09 17:37:03 -07:00
parent 13ee3dc01d
commit e75434155d

View File

@ -1,5 +1,9 @@
function package_exists() {
return dpkg -l "$1" &> /dev/null
}
# TODO check if python3.9 is installable instead
if [ -e /usr/local/cuda-12.2 ]; then
if ! package_exists python3.9 ; then
apt-get update && \
apt-get install wget build-essential ccache clang cmake pkg-config -y