File: python-example

package info (click to toggle)
opencamlib 2023.01.11-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 29,800 kB
  • sloc: cpp: 8,722; python: 5,530; sh: 604; javascript: 310; makefile: 209
file content (8 lines) | stat: -rwxr-xr-x 208 bytes parent folder | download
1
2
3
4
5
6
7
8
#!/bin/sh

set -e
for py in $(py3versions -d 2>/dev/null) ; do
    cd "$AUTOPKGTEST_TMP"
    echo "Testing with $py:"
    $py -c "import opencamlib as ocl; p = ocl.Point(1,2,3); p.normalize(); print(p)"
done