File: py-load

package info (click to toggle)
pyvisa-py 0.5.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 464 kB
  • sloc: python: 3,526; makefile: 140; sh: 11
file content (17 lines) | stat: -rwxr-xr-x 399 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

PYVISA_VERSION=`dpkg -s python3-pyvisa | grep Version: | cut -c 10-`

if dpkg --compare-versions ${PYVISA_VERSION} lt 1.11.3-1
then
    echo "Skipping test since pyvisa version is older than 1.11.3-1"
    echo "This is needed to solve a cyclic dependency problem causing problems with migration to testing"
    exit 8
fi

set -e

cd /tmp
python3 -c "__import__('pyvisa_py')"

echo "done"