From 0532c152f20c0019328b2bbcb3a44cec20d7bde6 Mon Sep 17 00:00:00 2001 From: Luis Aleixo Date: Fri, 5 Nov 2021 11:46:04 +0100 Subject: [PATCH] updated scripts for m1 machines --- cara/scripts/themes/base/cara_script.command | 4 ++++ cara/scripts/themes/cern/cara_script.command | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/cara/scripts/themes/base/cara_script.command b/cara/scripts/themes/base/cara_script.command index d4fc9048..5d34e193 100755 --- a/cara/scripts/themes/base/cara_script.command +++ b/cara/scripts/themes/base/cara_script.command @@ -2,5 +2,9 @@ cd Downloads git clone https://gitlab.cern.ch/cara/cara.git cd cara git lfs pull +if [[ `uname -m` == 'arm64' ]]; then + pip3 install scipy --index-url=https://pypi.anaconda.org/scipy-wheels-nightly/simple + pip3 install -U --no-use-pep517 scikit-learn +fi pip3 install -e . python3 -m cara.apps.calculator \ No newline at end of file diff --git a/cara/scripts/themes/cern/cara_script.command b/cara/scripts/themes/cern/cara_script.command index e154d2db..f217789b 100755 --- a/cara/scripts/themes/cern/cara_script.command +++ b/cara/scripts/themes/cern/cara_script.command @@ -2,5 +2,9 @@ cd Downloads git clone https://gitlab.cern.ch/cara/cara.git cd cara git lfs pull +if [[ `uname -m` == 'arm64' ]]; then + pip3 install scipy --index-url=https://pypi.anaconda.org/scipy-wheels-nightly/simple + pip3 install -U --no-use-pep517 scikit-learn +fi pip3 install -e . python3 -m cara.apps.calculator --theme=cara/apps/calculator/themes/cern \ No newline at end of file