Date: Thursday, May 21, 2020 @ 11:50:00 Author: aginiewicz Revision: 631142
python-threadpoolctl: Moving package from AUR as a new python-scikit-learn dependency Added: python-threadpoolctl/ python-threadpoolctl/repos/ python-threadpoolctl/trunk/ python-threadpoolctl/trunk/PKGBUILD ----------+ PKGBUILD | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) Added: python-threadpoolctl/trunk/PKGBUILD =================================================================== --- python-threadpoolctl/trunk/PKGBUILD (rev 0) +++ python-threadpoolctl/trunk/PKGBUILD 2020-05-21 11:50:00 UTC (rev 631142) @@ -0,0 +1,25 @@ +# Maintainer: Andrzej Giniewicz <[email protected]> +# Contributor: Butui Hu <[email protected]> + +pkgname=python-threadpoolctl +pkgver=2.0.0 +pkgrel=0 +pkgdesc="Python helpers to limit the number of threads used in native libraries that handle their own internal threadpool" +arch=('any') +url="https://github.com/joblib/threadpoolctl" +license=('BSD') +depends=('python') +makedepends=('python-setuptools') +source=("https://files.pythonhosted.org/packages/source/t/threadpoolctl/threadpoolctl-${pkgver}.tar.gz") +sha256sums=('48b3e3e9ee079d6b5295c65cbe255b36a3026afc6dde3fb49c085cd0c004bbcf') + +build() { + cd "$srcdir"/threadpoolctl-${pkgver} + python setup.py build +} + +package() { + cd "$srcdir"/threadpoolctl-${pkgver} + python setup.py install --skip-build --root="$pkgdir" --optimize=1 + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +}
