Skip to content

Commit 58dfad2

Browse files
committed
python-dicomweb-client: update source
1 parent 0fe8fec commit 58dfad2

File tree

1 file changed

+7
-4
lines changed
  • archlinuxcn/python-dicomweb-client

1 file changed

+7
-4
lines changed

archlinuxcn/python-dicomweb-client/PKGBUILD

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,23 @@ depends=(
1717
)
1818

1919
makedepends=(
20-
'python-setuptools'
20+
python-build
21+
# python-hatchling
22+
python-installer
23+
python-wheel
2124
)
2225

2326
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/MGHComputationalPathology/dicomweb-client/archive/v${pkgver}.tar.gz")
24-
sha512sums=('be919f00b9a2aa0c108c3760be2f8874c028494a67ee816b7ba50d1cfee55f8e091dccec67de4026a4e96a52bf77a1b2f650720eca726623d118b9bc85de9dcb')
27+
sha512sums=('a5be896d6d301a09ad814a96a657f719f49ae3292f18edf58b32438427e84cdb2f12616e8cacb9e85329d10a13f00aca404cbba55f10de6e84e78eb20103c017')
2528

2629
build() {
2730
cd "${_pkgname}-${pkgver}"
28-
python setup.py build
31+
python -m build --wheel --no-isolation
2932
}
3033

3134
package() {
3235
cd "${_pkgname}-${pkgver}"
33-
python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
36+
python -m installer --destdir="${pkgdir}" dist/*.whl
3437
install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
3538
}
3639
# vim:set ts=2 sw=2 et:

0 commit comments

Comments
 (0)