@@ -25,19 +25,22 @@ if [ -f /etc/debian_version ]; then
25
25
source ./.venv/bin/activate
26
26
elif [ -f /etc/redhat-release ]; then
27
27
# yum has no update-only verb
28
+ function yuminst() {
29
+ yum -y --nogpgcheck install $@
30
+ }
28
31
29
- yum -y install krb5-{devel,libs,server,workstation} which gcc findutils
32
+ yuminst krb5-{devel,libs,server,workstation} which gcc findutils
30
33
31
34
if [ -f /etc/fedora-release ]; then
32
35
# path to binary here in case Rawhide changes it
33
- yum install -y redhat-rpm-config \
36
+ yuminst redhat-rpm-config \
34
37
/usr/bin/virtualenv python${PYTHON} -{virtualenv,devel}
35
38
virtualenv -p $( which python${PYTHON} ) .venv
36
39
source ./.venv/bin/activate
37
40
pip install --install-option=' --no-cython-compile' cython
38
41
else
39
42
# Cython on el7 is too old - downstream patches
40
- yum install -y python$IS3 -{virtualenv,devel}
43
+ yuminst python$IS3 -{virtualenv,devel}
41
44
virtualenv -p $( which python$IS3 ) .venv
42
45
source ./.venv/bin/activate
43
46
pip install --upgrade pip # el7 pip doesn't quite work right
0 commit comments