Skip to content

Commit

Permalink
Remove scikit-learn script macOS arm64 guard (#627)
Browse files Browse the repository at this point in the history
  • Loading branch information
lutzroeder committed Nov 25, 2021
1 parent 0d651f2 commit 36f1ccf
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions tools/sklearn
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,6 @@ sync() {

install() {
echo "sklearn install"
if [[ "${OSTYPE}" == darwin* ]] && [[ "$(uname -sm)" = "Darwin arm64" ]] && [[ $(${python} -c "import platform; print(platform.uname().machine);") = "arm64" ]]; then
echo "- arm64 [skip]"
return
venv
[ -x "$(brew --prefix openblas)" ] || brew install openblas > /dev/null
${python} -m pip install --upgrade --no-cache-dir cython pybind11
${python} -m pip install --upgrade numpy
export OPENBLAS=$(brew --prefix openblas)
export CFLAGS="-falign-functions=8 ${CFLAGS}"
${python} -m pip install --upgrade --no-use-pep517 scipy
${python} -m pip install --upgrade --no-cache-dir --pre --extra-index https://pypi.anaconda.org/scipy-wheels-nightly/simple --no-use-pep517 scikit-learn
deactivate
return
fi
venv
${python} -m pip install --quiet scipy
${python} -m pip install --quiet --pre --extra-index https://pypi.anaconda.org/scipy-wheels-nightly/simple scikit-learn
Expand All @@ -58,10 +44,6 @@ install() {

metadata() {
echo "sklearn metadata"
if [[ "${OSTYPE}" == darwin* ]] && [[ "$(uname -sm)" = "Darwin arm64" ]] && [[ $(${python} -c "import platform; print(platform.uname().machine);") = "arm64" ]]; then
echo "- arm64 [skip]"
return
fi
[[ $(grep -U $'\x0D' ./source/sklearn-metadata.json) ]] && crlf=1
venv
export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python
Expand Down

0 comments on commit 36f1ccf

Please sign in to comment.