-
Notifications
You must be signed in to change notification settings - Fork 404
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install Kerberos deps when testing wheels and make cibuildwheel tests run properly.
- Loading branch information
Showing
4 changed files
with
113 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,41 @@ | ||
#!/bin/bash | ||
|
||
set -Eexuo pipefail | ||
shopt -s nullglob | ||
|
||
if [ "$RUNNER_OS" == "Linux" ]; then | ||
# Assume Ubuntu since this is the only Linux used in CI. | ||
sudo apt-get update | ||
sudo apt-get install -y --no-install-recommends \ | ||
libkrb5-dev krb5-user krb5-kdc krb5-admin-server | ||
if [[ $OSTYPE == linux* ]]; then | ||
if [ "$(id -u)" = "0" ]; then | ||
SUDO= | ||
else | ||
SUDO=sudo | ||
fi | ||
|
||
if [ -e /etc/os-release ]; then | ||
source /etc/os-release | ||
elif [ -e /etc/centos-release ]; then | ||
ID="centos" | ||
VERSION_ID=$(cat /etc/centos-release | cut -f3 -d' ' | cut -f1 -d.) | ||
else | ||
echo "install-krb5.sh: cannot determine which Linux distro this is" >&2 | ||
exit 1 | ||
fi | ||
|
||
if [ "${ID}" = "debian" -o "${ID}" = "ubuntu" ]; then | ||
export DEBIAN_FRONTEND=noninteractive | ||
|
||
$SUDO apt-get update | ||
$SUDO apt-get install -y --no-install-recommends \ | ||
libkrb5-dev krb5-user krb5-kdc krb5-admin-server | ||
elif [ "${ID}" = "almalinux" ]; then | ||
$SUDO dnf install -y krb5-server krb5-workstation krb5-libs krb5-devel | ||
elif [ "${ID}" = "centos" ]; then | ||
$SUDO yum install -y krb5-server krb5-workstation krb5-libs krb5-devel | ||
elif [ "${ID}" = "alpine" ]; then | ||
$SUDO apk add krb5 krb5-server krb5-dev | ||
else | ||
echo "install-krb5.sh: Unsupported linux distro: ${distro}" >&2 | ||
exit 1 | ||
fi | ||
else | ||
echo "install-krb5.sh: unsupported OS: ${OSTYPE}" >&2 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters