Skip to content

Commit

Permalink
Update setup_deb.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-grzybek-ampere authored Sep 16, 2024
1 parent 974c5ae commit eb80d54
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions setup_deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ apt install -y autoconf autogen automake build-essential libasound2-dev \
apt remove -y libsndfile1
git clone -b 1.2.2 https://github.com/libsndfile/libsndfile.git && cd libsndfile/ && autoreconf -vif && ./configure --enable-werror && make -j && make install && ldconfig && cd .. && rm -rf libsndfile

if [ "$(PYTHONPATH=$SCRIPT_DIR python3 -c 'from cpuinfo import get_cpu_info; from benchmark import which_ampere_cpu; cpu = which_ampere_cpu(get_cpu_info()["flags"], 1); print("AmpereOne" in cpu)')" == "True" ]; then
# Only on AmpereOne family
pip3 install --break-system-packages --upgrade -r "$(dirname "$0")/requirements-ampereone.txt" ||
pip3 install --upgrade -r "$(dirname "$0")/requirements-ampereone.txt"
fi
# if [ "$(PYTHONPATH=$SCRIPT_DIR python3 -c 'from cpuinfo import get_cpu_info; from benchmark import which_ampere_cpu; cpu = which_ampere_cpu(get_cpu_info()["flags"], 1); print("AmpereOne" in cpu)')" == "True" ]; then
# # Only on AmpereOne family
# pip3 install --break-system-packages --upgrade -r "$(dirname "$0")/requirements-ampereone.txt" ||
# pip3 install --upgrade -r "$(dirname "$0")/requirements-ampereone.txt"
# fi

ARCH=$ARCH python3 "$SCRIPT_DIR"/utils/setup/install_frameworks.py

Expand Down

0 comments on commit eb80d54

Please sign in to comment.