Files
Alexandru Ardelean 088040f3ec python-cffi: bump to 2.1.1
Refresh sha256 from PyPI sdist. Drop the macOS cross-compile patch;
2.1.1 already carries the sysconfig.get_platform() fix upstream.

Add test-version.sh: 2.1.1 ships the cffi-gen-src console tool, a
subcommand CLI with no version flag, so the generic per-executable
version probe fails the package ("No executables in the package
provided version"). test-version.sh skips that probe, and test.sh now
asserts cffi.__version__ against the packaged version.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2026-08-11 13:45:28 +03:00

15 lines
348 B
Bash
Executable File

#!/bin/sh
[ "$1" = python3-cffi ] || exit 0
# cffi's cffi-gen-src CLI has no version flag, so assert the version here and
# build an FFI object to exercise the compiled C extension.
python3 - "$2" << 'EOF'
import sys
import cffi
from cffi import FFI
assert cffi.__version__ == sys.argv[1], (cffi.__version__, sys.argv[1])
ffibuilder = FFI()
EOF