| |
@@ -8,10 +8,19 @@
|
| |
PYTHON=${PYTHON:-python$VERSION}
|
| |
METHOD=${METHOD:-venv}
|
| |
TOX=${TOX:-true}
|
| |
+ INSTALL_OR_SKIP=${INSTALL_OR_SKIP:-false}
|
| |
|
| |
# clean from possible older runs
|
| |
rm -rf venv .tox __pycache__ .pytest* test_*.py *.pyx *.c *.so ensurepiptestroot || :
|
| |
|
| |
+ if [ "$INSTALL_OR_SKIP" == "true" ] && [ ! -f "/usr/bin/$PYTHON" ]; then
|
| |
+ dnf -y install "/usr/bin/$PYTHON" || :
|
| |
+ if [ ! -f "/usr/bin/$PYTHON" ]; then
|
| |
+ echo "/usr/bin/$PYTHON not installable, skipping this test"
|
| |
+ exit 0
|
| |
+ fi
|
| |
+ fi
|
| |
+
|
| |
# check the we can create the venv
|
| |
if [ "$METHOD" == "venv" ]; then
|
| |
$PYTHON -m venv venv
|
| |