2017-08-23 14:01:20 -04:00
|
|
|
# If new packages are installed by BootstrapSuseCommon below, this version
|
|
|
|
|
# number must be increased.
|
|
|
|
|
BOOTSTRAP_SUSE_COMMON_VERSION=1
|
|
|
|
|
|
2015-12-02 01:47:38 -05:00
|
|
|
BootstrapSuseCommon() {
|
|
|
|
|
# SLE12 don't have python-virtualenv
|
|
|
|
|
|
2016-04-22 15:00:24 -04:00
|
|
|
if [ "$ASSUME_YES" = 1 ]; then
|
|
|
|
|
zypper_flags="-nq"
|
|
|
|
|
install_flags="-l"
|
|
|
|
|
fi
|
|
|
|
|
|
2017-01-23 20:55:59 -05:00
|
|
|
if [ "$QUIET" = 1 ]; then
|
2017-01-20 12:40:36 -05:00
|
|
|
QUIET_FLAG='-qq'
|
|
|
|
|
fi
|
|
|
|
|
|
2019-03-01 21:07:07 -05:00
|
|
|
if zypper search -x python-virtualenv >/dev/null 2>&1; then
|
|
|
|
|
OPENSUSE_VIRTUALENV_PACKAGES="python-virtualenv"
|
|
|
|
|
else
|
|
|
|
|
# Since Leap 15.0 (and associated Tumbleweed version), python-virtualenv
|
|
|
|
|
# is a source package, and python2-virtualenv must be used instead.
|
|
|
|
|
# Also currently python2-setuptools is not a dependency of python2-virtualenv,
|
2019-04-07 16:20:03 -04:00
|
|
|
# while it should be. Installing it explicitly until upstream fix.
|
2019-03-01 21:07:07 -05:00
|
|
|
OPENSUSE_VIRTUALENV_PACKAGES="python2-virtualenv python2-setuptools"
|
|
|
|
|
fi
|
|
|
|
|
|
2017-08-21 15:23:09 -04:00
|
|
|
zypper $QUIET_FLAG $zypper_flags in $install_flags \
|
2015-12-02 01:47:38 -05:00
|
|
|
python \
|
|
|
|
|
python-devel \
|
2019-03-01 21:07:07 -05:00
|
|
|
$OPENSUSE_VIRTUALENV_PACKAGES \
|
2015-12-02 01:47:38 -05:00
|
|
|
gcc \
|
|
|
|
|
augeas-lenses \
|
|
|
|
|
libopenssl-devel \
|
|
|
|
|
libffi-devel \
|
2015-12-02 02:23:38 -05:00
|
|
|
ca-certificates
|
2015-12-02 02:01:22 -05:00
|
|
|
}
|