Commit f4d6cab 1 parent f6ec755 commit f4d6cab Copy full SHA for f4d6cab
File tree 2 files changed +31
-6
lines changed
2 files changed +31
-6
lines changed Original file line number Diff line number Diff line change 2
2
3
3
set -Eexuo pipefail
4
4
5
- if [ " $RUNNER_OS " == " Linux" ]; then
6
- # Assume Ubuntu since this is the only Linux used in CI.
7
- sudo apt-get update
8
- sudo apt-get install -y --no-install-recommends \
9
- libkrb5-dev krb5-user krb5-kdc krb5-admin-server
5
+ if [[ $OSTYPE == linux* ]]; then
6
+ if [ -e /etc/os-release ]; then
7
+ source /etc/os-release
8
+ elif [ -e /etc/centos-release ]; then
9
+ ID=" centos"
10
+ VERSION_ID=$( cat /etc/centos-release | cut -f3 -d' ' | cut -f1 -d.)
11
+ else
12
+ echo " install-postgres.sh: cannot determine which Linux distro this is" >&2
13
+ exit 1
14
+ fi
15
+
16
+ if [ " ${ID} " = " debian" -o " ${ID} " = " ubuntu" ]; then
17
+ export DEBIAN_FRONTEND=noninteractive
18
+
19
+ sudo apt-get update
20
+ sudo apt-get install -y --no-install-recommends \
21
+ libkrb5-dev krb5-user krb5-kdc krb5-admin-server
22
+ elif [ " ${ID} " = " almalinux" ]; then
23
+ sudo dnf install -y krb5-server krb5-libs
24
+ elif [ " ${ID} " = " centos" ]; then
25
+ sudo yum install -y krb5-server krb5-libs
26
+ elif [ " ${ID} " = " alpine" ]; then
27
+ sudo apk add krb5 krb5-server
28
+ else
29
+ echo " install-postgres.sh: Unsupported distro: ${distro} " >&2
30
+ exit 1
31
+ fi
10
32
fi
Original file line number Diff line number Diff line change @@ -81,7 +81,10 @@ test-command = "python {project}/tests/__init__.py"
81
81
test-command = " python {project}\\ tests\\ __init__.py"
82
82
83
83
[tool .cibuildwheel .linux ]
84
- before-all = " .github/workflows/install-postgres.sh"
84
+ before-all = """
85
+ .github/workflows/install-postgres.sh \
86
+ && .github/workflows/install-krb5.sh \
87
+ """
85
88
test-command = """ \
86
89
PY=`which python` \
87
90
&& chmod -R go+rX "$(dirname $(dirname $(dirname $PY)))" \
You can’t perform that action at this time.
0 commit comments