Try installing the devel package when INSTALL_OR_SKIP is set
This commit is contained in:
parent
df6c0cef6e
commit
4c3ed6ec49
2 changed files with 6 additions and 2 deletions
|
|
@ -15,8 +15,9 @@ INSTALL_OR_SKIP=${INSTALL_OR_SKIP:-false}
|
|||
workdir="$(mktemp --directory)"
|
||||
cd "$workdir"
|
||||
|
||||
if [ "$INSTALL_OR_SKIP" == "true" ] && [ ! -f "/usr/bin/$PYTHON" ]; then
|
||||
dnf -y install "/usr/bin/$PYTHON" || :
|
||||
if [ "$INSTALL_OR_SKIP" == "true" ]; then
|
||||
[ ! -f "/usr/bin/$PYTHON" ] && dnf -y install "/usr/bin/$PYTHON" || :
|
||||
dnf -y install "$PYTHON-devel" || :
|
||||
if [ ! -f "/usr/bin/$PYTHON" ]; then
|
||||
echo "/usr/bin/$PYTHON not installable, skipping this test"
|
||||
exit 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue