summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2597263f875e260c3cac1da7dfd7f026901a97b8 (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
# Contributor: Alexander F. Rødseth <xyproto@archlinux.org>
_base=ludwig
pkgname=python-${_base}
pkgver=0.4
pkgrel=1
pkgdesc="Data-centric declarative deep learning framework"
arch=(any)
url="https://github.com/${_base}-ai/${_base}"
license=(MIT)
depends=(cython python-pandas python-tabulate python-scikit-learn python-yaml absl-py kaggle-api python-pytables python-fsspec python-dataclasses-json python-jsonschema) # python-tensorflow
# python-cloudpickle python-pytest python-spacy-en_core_web_sm
# checkdepends=(python-pytest-timeout python-wandb python-mlflow)
optdepends=('ludwig-example: example use of Ludwig'
  'python-soundfile'
  'python-torchaudio'
  'python-scikit-image'
  'python-torchvision'
  'python-transformers'
  'uvicorn'
  'python-fastapi'
  'python-multipart'
  'python-imageio'
  'python-spacy'
  'python-seaborn'
  'python-horovod'
  'python-dask'
  'python-pyarrow'
  'python-ray'
  'python-tensorboardx'
  'python-gputil'
  'python-tblib'
  'aws-cli'
  'python-hyperopt')
# neuropod python-sentencepiece python-hiplot python-petastorm python-pickle5 python-bayesmark python-pysot
source=(${url}/archive/v${pkgver}.tar.gz)
sha512sums=('dfb8100d726fd1ea6f3c472e805cc1e8ea7b272d62478280fded69ed45a5bfb2488f51088fa27bd2845fb8af8a219df305b2a5f742958b177fa972862bb03ae1')

build() {
  cd "${_base}-${pkgver}"
  python setup.py build
}

package() {
  cd "${_base}-${pkgver}"
  export PYTHONHASHSEED=0
  PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
  # fix issue where spacy >= 2.0 is not detected
  # find "$pkgdir" -name requires.txt -type f -exec sed -i '/spacy/d' {} \;
}