blob: f5c23c4a7b4c20faf88960b8b2aad3a8dcd7503d (
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: taotieren <admin@taotieren.com>
pkgname=python-bitsandbytes
_name=${pkgname#python-}
pkgver=0.47.0
pkgrel=1
epoch=
pkgdesc="k-bit optimizers and matrix multiplication routines."
arch=('any')
url="https://github.com/bitsandbytes-foundation/${_name}"
license=(MIT)
groups=()
provides=(${pkgname})
conflicts=(${pkgname})
depends=(
gcc-libs
glibc
python
python-numpy
python-scipy
python-pytorch
python-triton
python-typing_extensions
# AUR
)
makedepends=(
cmake
cuda
git
python-scikit-build
python-scikit-build-core
python-build
python-installer
python-wheel
python-setuptools
)
optdepends=()
options=('!strip' '!debug')
source=("${_name}::git+${url}.git#tag=$pkgver")
noextract=()
sha256sums=('b40be8d6997375e5dc441a467cb3a403d89401b3f4e533b6f9d903f4ff0d2fe8')
build() {
cd "${srcdir}/${_name}"
python -m build --wheel --no-isolation
}
package() {
cd "${srcdir}/${_name}"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm0644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|