From 5d3b59b94ea80ce4e7ba20abad5b203468928a63 Mon Sep 17 00:00:00 2001 From: JeLuF Date: Wed, 15 Feb 2023 21:15:55 +0100 Subject: [PATCH] No /proc/cpuinfo on MacOS Check whether /proc/cpuinfo exists before checking for AVX support --- scripts/bootstrap.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh index 375ab3ac..d2a29dec 100755 --- a/scripts/bootstrap.sh +++ b/scripts/bootstrap.sh @@ -29,7 +29,9 @@ if ! which tar; then fail "'tar' not found. Please install tar."; fi if ! which bzip2; then fail "'bzip2' not found. Please install bzip2."; fi if pwd | grep ' '; then fail "The installation directory's path contains a space character. Conda will fail to install. Please change the directory."; fi -if ! cat /proc/cpuinfo | grep avx | uniq; then fail "Your CPU doesn't support AVX."; fi +if [ -f /proc/cpuinfo ]; then + if ! cat /proc/cpuinfo | grep avx | uniq; then fail "Your CPU doesn't support AVX."; fi +fi # https://mamba.readthedocs.io/en/latest/installation.html if [ "$OS_NAME" == "linux" ] && [ "$OS_ARCH" == "arm64" ]; then OS_ARCH="aarch64"; fi