diff options
author | lilac | 2023-02-10 20:19:19 +0800 |
---|---|---|
committer | lilac | 2023-02-10 20:19:19 +0800 |
commit | 5f98a92e050395d1223c4bc7278e5b3bffffab6e (patch) | |
tree | 8c98e437fcca06a6546514e737860ce194536994 /PKGBUILD | |
parent | a7ef5be20f9efe0c82da8876a21bc4089b353404 (diff) | |
download | aur-5f98a92e050395d1223c4bc7278e5b3bffffab6e.tar.gz |
[lilac] updated to 0.2.4-2
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 31 |
1 files changed, 16 insertions, 15 deletions
@@ -1,41 +1,42 @@ # Maintainer: Butui Hu <hot123tea123@gmail.com> pkgname=python-visdom -_name=${pkgname#python-} +_name=visdom pkgver=0.2.4 -pkgrel=1 +pkgrel=2 pkgdesc='A flexible tool for creating, organizing, and sharing visualizations of live, rich data. Supports Torch and Numpy.' arch=(any) -url=https://github.com/facebookresearch/visdom -license=(CC-BY-NC-4.0) +url='https://github.com/facebookresearch/visdom' +license=('Apache') depends=( python-jsonpatch + python-networkx python-numpy python-pytorch - python-pyzmq - python-six + python-requests python-scipy - python-torchfile - python-tornado + python-six python-tqdm python-websocket-client ) -makedepends=(python-setuptools) +makedepends=( + python-build + python-installer + python-setuptools + python-wheel +) source=( "${pkgname}-${pkgver}.tar.gz"::"https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz" - "LICENSE"::"https://github.com/facebookresearch/visdom/raw/master/LICENSE" ) -sha512sums=('007aa1c70f3335fec3c811a9492e85610c75b79e9295a8d5eb4539fcb75b3ea00bd453adf7404113644bfc431f77223f7d524c6c6c07b970366fb3523a1b83b9' - '31cc38066678c030e8f6378dcae59add64566a977f92983c3a4c929c9b76424291915ea4283e1367ece50b9537f8d51970aa8fd5ce063037aa3a7c45f0677d25') +sha512sums=('007aa1c70f3335fec3c811a9492e85610c75b79e9295a8d5eb4539fcb75b3ea00bd453adf7404113644bfc431f77223f7d524c6c6c07b970366fb3523a1b83b9') build() { cd "${_name}-${pkgver}" - python setup.py build + python -m build --wheel --no-isolation } package() { cd "${_name}-${pkgver}" - python setup.py install --root="${pkgdir}" --optimize=1 --skip-build - install -Dm644 "${srcdir}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}" + python -m installer --destdir="${pkgdir}" dist/*.whl } # vim:set ts=2 sw=2 et: |