blob: a564864ff14a260479b821bdbfaf7fe730b48cb9 (
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
|
# Maintainer: Yonggang Li <gnaggnoyil@gmail.com>
_pkgbasename=datatable
pkgname=python-${_pkgbasename}
pkgver=1.1.0
pkgrel=2
pkgdesc="A Python package for manipulating 2-dimensional tabular data structures"
arch=('x86_64')
url="https://github.com/h2oai/${_pkgbasename}/"
license=('MPL-2.0')
depends=('python>=3.8')
makedepends=('python-build' 'python-installer' 'git')
optdepends=(
'python-numpy'
'python-pandas'
'python-xlrd'
)
#checkdepends=(
# 'python-pytest'
# 'python-docutils'
#)
provides=('python-datatable')
# We have to use git repo rather than github release since the source need its
# git hash to generate build info
source=(
"git+https://github.com/h2oai/${_pkgbasename}.git#tag=v${pkgver}"
)
sha256sums=('SKIP')
build() {
# There are issue installing through `pip install datatable==1.0.0`
# Ref: https://github.com/h2oai/datatable/issues/3150
cd "${srcdir}/${_pkgbasename}"
# The build ext uses 80% of cpu_count as nworkers
# The build steps is determined by ci/ext.py and thus those FLAGS in
# makepkg.conf will be generally ignored. `namcap` will then report warning
# that the .so file "lacks FULL RELRO, check LDFLAGS" when executing
# `extra-x86_64-build`
python -m build --wheel --no-isolation
}
package() {
cd "${srcdir}/${_pkgbasename}"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm644 "${srcdir}/${_pkgbasename}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|