mirror of
https://github.com/aphrody-labs/msys2-tests.git
synced 2026-10-14 04:09:15 +00:00
18 lines
605 B
Bash
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
|