Package Details: python-pyvisa 1.15.0-2

Git Clone URL: https://aur.archlinux.org/python-pyvisa.git (read-only, click to copy)
Package Base: python-pyvisa
Description: A Python package with bindings to the 'Virtual Instrument Software Architecture' VISA library
Upstream URL: https://github.com/pyvisa/pyvisa
Keywords: python pyvisa visa
Licenses: MIT
Submitter: alex.forencich
Maintainer: begin-theadventu
Last Packager: begin-theadventu
Votes: 12
Popularity: 0.004728
First Submitted: 2015-07-20 19:27 (UTC)
Last Updated: 2025-04-29 14:01 (UTC)

Latest Comments

1 2 3 Next › Last »

willemsk commented on 2025-05-05 12:12 (UTC)

The build fails for me in a clean chroot:

Traceback (most recent call last): ... LookupError: setuptools-scm was unable to detect version for /home/xxxx/.cache/paru/clone/python-pyvisa/src/pyvisa-1.15.0.

Make sure you're either building from a fully intact git repository or PyPI tarballs. Most other sources (such as GitHub's tarballs, a git checkout without the .git folder) don't contain the necessary metadata and will not work.

For example, if you're using pip, instead of https://github.com/user/proj/archive/master.zip use git+https://github.com/user/proj.git#egg=proj

Alternatively, set the version with the environment variable SETUPTOOLS_SCM_PRETEND_VERSION_FOR_${NORMALIZED_DIST_NAME} as described in https://setuptools-scm.readthedocs.io/en/latest/config.

ERROR Backend subprocess exited when trying to invoke get_requires_for_build_wheel ==> ERROR: A failure occurred in build(). Aborting... error: failed to build 'python-pyvisa-1.15.0-2': error: packages failed to build: python-pyvisa-1.15.0-2

Grabbing the source tarball from PyPi instead of GitHub solves the problem. Patch below:

diff --git a/PKGBUILD b/PKGBUILD
index 556b51e..455f077 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,8 +3,9 @@
 # Contributor: Alex Forencich <alex@alexforencich.com>

 pkgname=python-pyvisa
+_name=${pkgname#python-}
 pkgver=1.15.0
-pkgrel=2
+pkgrel=3
 pkgdesc="A Python package with bindings to the 'Virtual Instrument Software Architecture' VISA library"
 url="https://github.com/pyvisa/pyvisa"
 license=('MIT')
@@ -12,8 +13,8 @@ arch=('any')
 depends=('python-distribute' 'python-docutils' 'python-typing_extensions')
 optdepends=('python-pyvisa-py: Pure Python backend')
 makedepends=('python-build' 'python-installer' 'python-pytest' 'python-setuptools-scm')
-source=("https://github.com/pyvisa/pyvisa/archive/refs/tags/$pkgver.tar.gz")
-sha256sums=('3da0bab73f06e1aba64a9f35b1aaee4cee1d950347b811844bb6322c5c849b52')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha256sums=('cec3cb91703a2849f6faa42b1ecd7689a0175baabff8ca33fce9f45934ce45e6')

 prepare() {
   export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver

begin-theadventu commented on 2025-04-29 13:58 (UTC)

@BrainDamage Thank you!

BrainDamage commented on 2025-04-29 06:56 (UTC)

Dropping python-setuptools-scm from the makedeps is not correct. It is still required, and the build will fail in a clean chroot with:

ERROR Missing dependencies:
    setuptools_scm[toml]>=3.4.3

you can double check in the pyproject.toml that it still requires it

begin-theadventu commented on 2025-04-28 16:31 (UTC)

@fenugrec Thank you!

fenugrec commented on 2025-04-26 15:47 (UTC) (edited on 2025-04-26 16:04 (UTC) by fenugrec)

Thanks for packaging this. 1.15 was just tagged today; minor changes to build will be required (no more setup.py) and possibly makedeps. possibly something like this (warning, possibly incorrect/incomplete)

Also, please consider adding 'python-linux-gpib' to optdepends (absent from this patch)

@@ -11,8 +11,8 @@ license=('MIT')
 arch=('any')
 depends=('python-distribute' 'python-docutils' 'python-typing_extensions')
 optdepends=('python-pyvisa-py: Pure Python backend')
-makedepends=('git' 'python-setuptools-scm' 'python-pytest')
+makedepends=('git' 'python-build' 'python-installer' 'python-setuptools' 'python-pytest')
 source=("git+$url.git#tag=$pkgver")
 sha256sums=('SKIP')

 prepare() {
@@ -21,7 +21,7 @@ prepare() {

 build() {
   cd pyvisa
-  python setup.py build
+  python -m build --wheel --no-isolation
 }

 check(){
@@ -31,6 +31,13 @@ check(){

 package(){
   cd pyvisa
-  python setup.py install --skip-build --optimize=1 --root="$pkgdir"
+  python -m installer --destdir="$pkgdir" dist/*.whl
   install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
 }

begin-theadventu commented on 2023-06-02 13:39 (UTC)

Adopted and updated.

tskaar commented on 2023-05-03 22:21 (UTC)

Could you bump to latest version?

4,5c4,5
< pkgver=1.11.3
< pkgrel=3
---
> pkgver=1.13.0
> pkgrel=0
21a22
>
23c24
< sha256sums=('8f8a309050a784b518a04b1506a06d34c69c630ee553e8a88d9d89cea4fd318a')
---
> sha256sums=('8e48ecf3f3b88a2f3605138f734fe68e705e593ec38e35e99c5c0f23e27f44ac')

yan12125 commented on 2020-10-14 12:18 (UTC)

Hi, could you move python-setuptools-scm from depends to makedepends? Apparently it is used only when building.

giniu commented on 2018-08-25 09:26 (UTC)

I disowned it, have fun :)

alex.forencich commented on 2018-08-25 05:19 (UTC)

I am set up to convert python-pyvisa to a split package that provides both python-pyvisa and python2-pyvisa. To do that, this package would need to be deleted. So if you want to either delete the package or disown it so I can delete it, that would work.