#!/bin/sh
# Sanity check against all the python3 supported versions.
set -e

versions=$(py3versions -s)
if [ -z "$versions" ]; then
    echo "no supported python3 versions found" >&2
    exit 1
fi

cd "$AUTOPKGTEST_TMP"

for py in $versions; do
    echo "--- $py"
    "$py" -c 'import pillow_jxl; print(pillow_jxl.__file__)'
done
