diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-09-05 04:28:19 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-09-05 04:28:19 -0300 |
commit | 795b172c6b7bdee6383835937fc9805479bbf196 (patch) | |
tree | 0312e297a637e79a4934dd96071861134320a574 /testing/py3-scikit-learn | |
parent | 41c8c8180e06cbd33a91550adff96cc4efa31ab9 (diff) | |
download | aports-795b172c6b7bdee6383835937fc9805479bbf196.tar.bz2 aports-795b172c6b7bdee6383835937fc9805479bbf196.tar.xz |
testing/py3-scikit-learn: disable OpenMP on aarch64
Diffstat (limited to 'testing/py3-scikit-learn')
-rw-r--r-- | testing/py3-scikit-learn/APKBUILD | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/testing/py3-scikit-learn/APKBUILD b/testing/py3-scikit-learn/APKBUILD index 33ea7bd6d2..2bad7f9d3c 100644 --- a/testing/py3-scikit-learn/APKBUILD +++ b/testing/py3-scikit-learn/APKBUILD @@ -3,7 +3,7 @@ pkgname=py3-scikit-learn _pkgname=scikit-learn pkgver=0.21.3 -pkgrel=0 +pkgrel=1 pkgdesc="a Python module for machine learning built on top of SciPy" url="http://scikit-learn.org/" arch="all" @@ -14,14 +14,18 @@ makedepends="py3-setuptools py3-numpy-dev python3-dev cython3" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" +case "$CARCH" in + aarch64) + export SKLEARN_NO_OPENMP=1 + ;; +esac + build() { python3 setup.py build } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" - install -D -m 644 COPYING \ - "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } sha512sums="f010f36a36ebe50db1c53ab8452098ea8206075b2e700dd253d4d3470b44b58c49f22c0a6139cec387c473c784c73c038633e333e3e79f84434e0ee6c365dd6a scikit-learn-0.21.3.tar.gz" |