Date: Wednesday, December 23, 2020 @ 18:12:00 Author: archange Revision: 785051
archrelease: copy trunk to community-x86_64 Added: python-distributed/repos/community-x86_64/ python-distributed/repos/community-x86_64/PKGBUILD (from rev 785050, python-distributed/trunk/PKGBUILD) python-distributed/repos/community-x86_64/py39.patch (from rev 785050, python-distributed/trunk/py39.patch) ------------+ PKGBUILD | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ py39.patch | 24 +++++++++++++++++ 2 files changed, 107 insertions(+) Copied: python-distributed/repos/community-x86_64/PKGBUILD (from rev 785050, python-distributed/trunk/PKGBUILD) =================================================================== --- community-x86_64/PKGBUILD (rev 0) +++ community-x86_64/PKGBUILD 2020-12-23 18:12:00 UTC (rev 785051) @@ -0,0 +1,83 @@ +# Maintainer: Bruno Pagani <archa...@archlinux.org> + +_pkg=distributed +pkgname=python-${_pkg} +pkgver=2020.12.0 +pkgrel=2 +pkgdesc="Distributed task scheduler for Dask" +arch=(x86_64) +url="https://distributed.dask.org/" +license=(BSD) +depends=( + python + python-click + python-cloudpickle + python-dask + python-msgpack + python-psutil + python-setuptools + python-sortedcontainers + python-tblib + python-toolz + python-tornado + python-yaml + python-zict +) +makedepends=(cython) +checkdepends=(ipython + python-pytest + python-pytest-asyncio + python-pytest-repeat + python-pytest-timeout + python-blosc + python-cryptography + python-distributed + python-fsspec + python-h5py + python-ipykernel + python-ipywidgets + python-joblib + python-jsonschema + python-jupyter_client + python-lz4 + python-netcdf4 + python-numpy + python-pandas + python-paramiko + python-prometheus_client + python-pytorch + python-requests + python-scipy + python-snappy + python-zstandard +) +source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz + py39.patch) +#source=(https://github.com/dask/distributed/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz) +sha256sums=('2a0b6acc921cd4e0143a7c4383cdcbed7defbc4bd9dc3aab0c7f1c45f14f80e1' + 'e872d3655fc634f226b178d579377ed862c14ff488058586e61c82fd903ed680') + +prepare() { + cd ${_pkg}-${pkgver} + # https://github.com/spyder-ide/spyder-kernels/issues/258 + # https://github.com/dask/distributed/pull/4234 + patch -Np1 -i ../py39.patch +} + +build() { + cd ${_pkg}-${pkgver} + python setup.py build --with-cython +} + +check() { + cd ${_pkg}-${pkgver} + # The deselected test aborts the test suite + # Even without this, ~30 are failing with `RuntimeError: There is no current event loop in thread` + pytest distributed -v --deselect distributed/deploy/tests/test_old_ssh.py::test_cluster || echo "Tests failed" +} + +package() { + cd ${_pkg}-${pkgver} + python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build --with-cython + install -Dm644 LICENSE.txt -t "${pkgdir}"/usr/share/licenses/${pkgname}/ +} Copied: python-distributed/repos/community-x86_64/py39.patch (from rev 785050, python-distributed/trunk/py39.patch) =================================================================== --- community-x86_64/py39.patch (rev 0) +++ community-x86_64/py39.patch 2020-12-23 18:12:00 UTC (rev 785051) @@ -0,0 +1,24 @@ +From 2c482276ed39112c650ed886c66d2c7b7d5e3783 Mon Sep 17 00:00:00 2001 +From: Jim Crist-Harif <jcristha...@gmail.com> +Date: Tue, 10 Nov 2020 16:29:57 -0600 +Subject: [PATCH] Python 3.9 compatibility + +--- + distributed/utils.py | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/distributed/utils.py b/distributed/utils.py +index 77487f8ce..c1a0d2caa 100644 +--- a/distributed/utils.py ++++ b/distributed/utils.py +@@ -72,6 +72,10 @@ + + + def _initialize_mp_context(): ++ if not WINDOWS: ++ # For some reason this is required in python >= 3.9 ++ import multiprocessing.popen_spawn_posix ++ + if WINDOWS or PYPY: + return multiprocessing + else: