summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e0e16ef8268f4c9f8e612735160b8377b117063a (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
# Maintainer: Butui Hu <hot123tea123@gmail.com>

_pkgname=mars
pkgname=python-mars
pkgver=0.10.0
pkgrel=3
pkgdesc='A tensor-based unified framework for large-scale data computation which scales Numpy, pandas, Scikit-learn and Python functions'
arch=('x86_64')
url='https://github.com/mars-project/mars'
license=('Apache-2.0')
depends=(
  gcc-libs
  glibc
  python-arrow
  python-cloudpickle
  python-gevent
  python-jinja
  python-joblib
  python-lz4
  python-numexpr
  python-numpy
  python-pandas
  python-protobuf
  python-psutil
  python-requests
  python-scikit-learn
  python-scipy
  python-sqlalchemy
)
makedepends=(
  cython
  python-build
  python-installer
  python-setuptools
  python-wheel
)
source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/mars-project/mars/archive/v${pkgver}.tar.gz")
sha512sums=('3291e66610d5d1e1f126deb5e445eed48b856976a6c56ae20372bb328924587ce1f7681177a189929de762e1f81b9ac63537d1d49580085b103e3a96b4082266')

prepare() {
  # fix deps issue
  sed -i '/oldest-supported-numpy/d' "${_pkgname}-${pkgver}/pyproject.toml"
  sed -i '/setuptools/d' "${_pkgname}-${pkgver}/pyproject.toml"
}

build() {
  cd "${_pkgname}-${pkgver}"
  python -m build --wheel --no-isolation
}

package() {
  cd "${_pkgname}-${pkgver}"
  python -m installer --destdir="${pkgdir}" dist/*.whl
}
# vim:set ts=2 sw=2 et: