Files
Christoph Reiter 8402a08a98 python: add a setuptools-rust test
mainly tests that our Python works with PyO3
2025-12-31 10:23:34 +01:00

18 lines
605 B
Bash

#!/bin/bash
set -e
python --version
(cd setuptools-cext && ./test.sh)
(cd setuptools-cython && ./test.sh)
(cd setuptools-rust && ./test.sh)
if [[ "$MSYSTEM" == "MSYS" ]]; then
# Make sure python does not give away that we are not cygwin
sys_platform="$(python -c "import sys; print(sys.platform)")"
[[ "$sys_platform" == "cygwin" ]] || (echo "wrong platform: $sys_platform"; false)
sysconfig_platform="$(python -c "import sysconfig; print(sysconfig.get_platform())")"
[[ "$sysconfig_platform" == "cygwin-$MSYSTEM_CARCH" ]] || (echo "wrong platform: $sysconfig_platform"; false)
fi