File cython of Package failed_python-cangjie
#!/bin/sh
# cython helper created by autogen.sh
# This script ensures cython runs under python3.11 where possible to
# avoid import-time failures when the system python is 3.12 (which
# no longer ships distutils).
if command -v python3.11 >/dev/null 2>&1 ; then
exec python3.11 -m cython "$@"
fi
if command -v python3 >/dev/null 2>&1 ; then
pyv="$(python3 -c 'import sys; print(".".join(map(str, sys.version_info[:2])))' 2>/dev/null || true)"
case "$pyv" in
3.11|3.11.*)
exec python3 -m cython "$@"
;;
esac
fi
exec /usr/bin/env cython "$@"