some fixes to ensure git install works on Photon, in particular Photon 4.

This commit is contained in:
Gareth J. Greenaway 2023-04-22 12:23:05 -07:00 committed by Pedro Algarvio
parent 2d40944962
commit ca1142dfc1
3 changed files with 8 additions and 8 deletions

View file

@ -515,7 +515,7 @@ jobs:
distro-slug: photon-4
display-name: Photon OS 4
timeout: 20
instances: '["stable-3006", "onedir-3006", "latest"]'
instances: '["stable-3006", "onedir-3006", "git-master", "latest"]'
rockylinux-8:

View file

@ -255,9 +255,7 @@ BLACKLIST_GIT_3006 = [
"ubuntu-2204",
]
BLACKLIST_GIT_MASTER = [
"photon-4",
]
BLACKLIST_GIT_MASTER = []
SALT_VERSIONS = [
"3003",

View file

@ -2687,7 +2687,7 @@ __activate_virtualenv() {
# NAME: __install_pip_pkgs
# DESCRIPTION: Return 0 or 1 if successfully able to install pip packages. Can provide a different python version to
# install pip packages with. If $py_ver is not specified it will use the default python version.
# PARAMETERS: pkgs, py_ver
# PARAMETERS: pkgs, py_ver, upgrade
#----------------------------------------------------------------------------------------------------------------------
__install_pip_pkgs() {
@ -6992,13 +6992,15 @@ install_photon_git_deps() {
done
else
__PACKAGES="python${PY_PKG_VER}-devel python${PY_PKG_VER}-pip python${PY_PKG_VER}-setuptools gcc"
if [ "${DISTRO_VERSION}" -ge 35 ]; then
__PACKAGES="${__PACKAGES} gcc-c++"
fi
# shellcheck disable=SC2086
__tdnf_install_noinput ${__PACKAGES} || return 1
fi
# Need newer version of setuptools on Photon
_setuptools_dep="setuptools>=${_MINIMUM_SETUPTOOLS_VERSION}"
echodebug "Running '${_PY_EXE} -m pip --upgrade install ${_setuptools_dep}'"
${_PY_EXE} -m pip install --upgrade "${_setuptools_dep}"
# Let's trigger config_salt()
if [ "$_TEMP_CONFIG_DIR" = "null" ]; then
_TEMP_CONFIG_DIR="${_SALT_GIT_CHECKOUT_DIR}/conf/"