blob: 02b06cfb5db6b53d674ed8d5a9f6750ee5e0c6c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Maintainer: acxz <akashpatel2008 at yahoo dot com>
pkgname=python-ray
pkgver=1.0.1
pkgrel=2
pkgdesc='A fast and simple framework for building and running distributed
applications.'
arch=('x86_64')
url='https://ray.io'
license=('Apache-2.0')
depends=(psmisc python python-aiohttp python-aiohttp-cors python-aioredis
python-click python-colorama python-colorful python-filelock
python-google python-gpustat python-grpcio python-jsonschema
python-msgpack python-numpy python-protobuf py-spy python-pyaml
python-requests python-redis python-opencensus python-prometheus_client)
optdepends=(
'uvicorn: for ray[serve] module'
'python-flask: for ray[serve] module'
'python-pydantic: for ray[serve] module'
'python-dataclasses: for ray[serve] and ray[tune] and ray[rllib] module'
'python-tabulate: for ray[tune] and ray[rllib] module'
'python-tensorboardx: for ray[tune] and ray[rllib] module'
'python-pandas: for ray[tune] and ray[rllib] module'
'python-atari-py: for ray[rllib] module'
'python-dm-tree: for ray[rllib] module'
'python-gym: for ray[rllib] module'
'python-lz4: for ray[rllib] module'
'opencv: for ray[rllib] module'
'python-pyaml: for ray[rllib] module'
'python-scipy: for ray[rllib] module'
)
makedepends=(python python-setuptools python-wheel python-pip cython bazel)
_pkgname=ray
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/ray-project/ray/archive/${_pkgname}-$pkgver.tar.gz"
"redis-py.patch::https://patch-diff.githubusercontent.com/raw/ray-project/ray/pull/11776.patch")
sha256sums=('e08ff04dc8bca99527dbc821446f8660cfe6cbc8c35db61410958b9aa9acee56'
'SKIP')
prepare() {
cd "${srcdir}/${_pkgname}-${_pkgname}-${pkgver}"
# https://github.com/ray-project/ray/pull/11776
patch -Np1 -i "${srcdir}"/redis-py.patch
# https://github.com/ray-project/ray/pull/12613
sed -i "s/8)/8), (3, 9)/g" python/setup.py
# https://aur.archlinux.org/packages/py-spy#comment-781521
sed -i "/py-spy/d" python/setup.py
}
build() {
cd "${srcdir}/${_pkgname}-${_pkgname}-${pkgver}/python"
python setup.py build
}
package() {
cd "${srcdir}/${_pkgname}-${_pkgname}-${pkgver}/python"
python setup.py install --root="$pkgdir"/ --optimize=1
}
|