| |
@@ -1,7 +1,10 @@
|
| |
#!/bin/sh -eux
|
| |
|
| |
- # set python version
|
| |
- VERSION=${VERSION:-3.7}
|
| |
+ # set default version to %{python3_version} if available
|
| |
+ VERSION=${VERSION:-$(rpm --eval '%{?python3_version}')} || true
|
| |
+ # ...or 3.8 if that macro is not available or rpm fails for any reason
|
| |
+ VERSION=${VERSION:-3.8}
|
| |
+
|
| |
PYTHON=${PYTHON:-python$VERSION}
|
| |
|
| |
# what to skip
|
| |
(I'm not touching leaktests, because I plan to remove that soon anyway.)