Skip to content

Commit

Permalink
Merge pull request #282 from ElvisDot/check-m1-only-for-mac
Browse files Browse the repository at this point in the history
Check m1 only on macOS devices
  • Loading branch information
julesvanrie authored Jun 30, 2024
2 parents 0af255e + bb86f22 commit 7797d70
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions checks/pip_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@ while read -r line; do
done <<< "$PACKAGES"
missing=()
arch_name="$(uname -m)"
if [ "${arch_name}" = "x86_64" ]; then
if [ "$(sysctl -in sysctl.proc_translated)" = "1" ]; then
if [[ $OSTYPE == 'darwin'* ]]
then
if [ "${arch_name}" = "x86_64" ]; then
if [ "$(sysctl -in sysctl.proc_translated)" = "1" ]; then
arch_name='m1'
fi
elif [ "${arch_name}" = "arm64" ]; then
arch_name='m1'
fi
elif [ "${arch_name}" = "arm64" ]; then
arch_name='m1'
fi
if [ $arch_name = 'm1' ]; then
REQUIRED=('pytest' 'pylint' 'ipdb' 'PyYAML' 'nbresult' 'autopep8' 'flake8' 'yapf' 'lxml' 'requests' 'beautifulsoup4' 'jupyterlab' 'pandas' 'matplotlib' 'seaborn' 'plotly' 'scikit-learn' 'tensorflow-macos' 'nbconvert' 'xgboost' 'statsmodels' 'jupyter-resource-usage')
Expand Down

0 comments on commit 7797d70

Please sign in to comment.