@@ -2742,44 +2742,6 @@ __install_salt_from_repo() {
27422742
27432743 echodebug " Installed pip version: $( ${_pip_cmd} --version) "
27442744
2745- # # DGM CHECK_PIP_VERSION_SCRIPT=$(cat << EOM
2746- # # DGM import sys
2747- # # DGM try:
2748- # # DGM import pip
2749- # # DGM installed_pip_version=tuple([int(part.strip()) for part in pip.__version__.split('.') if part.isdigit()])
2750- # # DGM desired_pip_version=($(echo ${_MINIMUM_PIP_VERSION} | sed 's/\./, /g' ))
2751- # # DGM if installed_pip_version < desired_pip_version:
2752- # # DGM print('Desired pip version {!r} > Installed pip version {!r}'.format('.'.join(map(str, desired_pip_version)), '.'.join(map(str, installed_pip_version))))
2753- # # DGM sys.exit(1)
2754- # # DGM print('Desired pip version {!r} < Installed pip version {!r}'.format('.'.join(map(str, desired_pip_version)), '.'.join(map(str, installed_pip_version))))
2755- # # DGM sys.exit(0)
2756- # # DGM except ImportError:
2757- # # DGM print('Failed to import pip')
2758- # # DGM sys.exit(1)
2759- # # DGM EOM
2760- # # DGM )
2761- # # DGM if ! ${_py_exe} -c "$CHECK_PIP_VERSION_SCRIPT"; then
2762- # # DGM # Upgrade pip to at least 1.2 which is when we can start using "python3 -m pip"
2763- # # DGM echodebug "Running '${_pip_cmd} install ${_PIP_INSTALL_ARGS} pip>=${_MINIMUM_PIP_VERSION}'"
2764- # # DGM ${_pip_cmd} install ${_PIP_INSTALL_ARGS} -v "pip>=${_MINIMUM_PIP_VERSION}"
2765- # # DGM sleep 1
2766- # # DGM echodebug "PATH: ${PATH}"
2767- # # DGM _pip_cmd="pip${_py_version}"
2768- # # DGM if ! __check_command_exists "${_pip_cmd}"; then
2769- # # DGM echodebug "The pip binary '${_pip_cmd}' was not found in PATH"
2770- # # DGM _pip_cmd="pip$(echo "${_py_version}" | cut -c -1)"
2771- # # DGM if ! __check_command_exists "${_pip_cmd}"; then
2772- # # DGM echodebug "The pip binary '${_pip_cmd}' was not found in PATH"
2773- # # DGM _pip_cmd="pip"
2774- # # DGM if ! __check_command_exists "${_pip_cmd}"; then
2775- # # DGM echoerror "Unable to find a pip binary"
2776- # # DGM return 1
2777- # # DGM fi
2778- # # DGM fi
2779- # # DGM fi
2780- # # DGM echodebug "Installed pip version: $(${_pip_cmd} --version)"
2781- # # DGM fi
2782-
27832745 _setuptools_dep=" setuptools>=${_MINIMUM_SETUPTOOLS_VERSION} ,<${_MAXIMUM_SETUPTOOLS_VERSION} "
27842746 if [ " $_PY_MAJOR_VERSION " -ne 3 ]; then
27852747 echoerror " Python version is no longer supported, only Python 3"
@@ -2797,15 +2759,11 @@ __install_salt_from_repo() {
27972759 echodebug " Running '${_pip_cmd} install ${_USE_BREAK_SYSTEM_PACKAGES} --upgrade ${_PIP_INSTALL_ARGS} wheel ${_setuptools_dep} "
27982760 ${_pip_cmd} install ${_USE_BREAK_SYSTEM_PACKAGES} --upgrade ${_PIP_INSTALL_ARGS} wheel " ${_setuptools_dep} "
27992761
2800- echodebug " DGM doing pip list"
2801- ${_pip_cmd} list
2802-
28032762 echoinfo " Installing salt using ${_py_exe} , $( ${_py_exe} --version) "
28042763 cd " ${_SALT_GIT_CHECKOUT_DIR} " || return 1
28052764
28062765 mkdir -p /tmp/git/deps
28072766 echodebug " Created directory /tmp/git/deps"
2808- echodebug " Installing Salt dependencies for Salt version $( python3 salt/version.py) "
28092767
28102768 if [ ${DISTRO_NAME_L} = " ubuntu" ] && [ " $DISTRO_MAJOR_VERSION " -eq 22 ]; then
28112769 echodebug " Ubuntu 22.04 has problem with base.txt requirements file, not parsing sys_platform == 'win32', upgrading from default pip works"
@@ -2818,37 +2776,9 @@ __install_salt_from_repo() {
28182776 fi
28192777 fi
28202778
2821- # # DGM echoinfo "Downloading Salt Dependencies from PyPi"
2822- # # DGM if [ "${OS_NAME}" = "Linux" ]; then
2823- # # DGM echodebug "Solving jaraco.functools splat issue, installing jaraco.functools v4.0.0"
2824- # # DGM ${_pip_cmd} install "jaraco.functools==4.0.0" || return 1
2825- # # DGM echodebug "Running '${_pip_cmd} download -d /tmp/git/deps ${_PIP_DOWNLOAD_ARGS} -r requirements/static/ci/py${_py_version}/linux.txt"
2826- # # DGM ${_pip_cmd} download -d /tmp/git/deps ${_PIP_DOWNLOAD_ARGS} -r "requirements/static/ci/py${_py_version}/linux.txt"
2827- # # DGM else
2828- # # DGM echodebug "Running '${_pip_cmd} download -d /tmp/git/deps ${_PIP_DOWNLOAD_ARGS} .'"
2829- # # DGM ${_pip_cmd} download -d /tmp/git/deps ${_PIP_DOWNLOAD_ARGS} .
2830- # # DGM fi
2831- # # DGM # shellcheck disable=SC2181
2832- # # DGM if [ $? -ne 0 ]; then
2833- # # DGM echo "Failed to download salt dependencies"
2834- # # DGM return 1
2835- # # DGM fi
2836-
2837-
2838- # # DGM echoinfo "Installing Downloaded Salt Dependencies"
2839- # # DGM echodebug "Running '${_pip_cmd} install ${_USE_BREAK_SYSTEM_PACKAGES} --ignore-installed ${_PIP_INSTALL_ARGS} /tmp/git/deps/*'"
2840- # # DGM ${_pip_cmd} install ${_USE_BREAK_SYSTEM_PACKAGES} --ignore-installed ${_PIP_INSTALL_ARGS} /tmp/git/deps/* || return 1
2841-
2842- echodebug " DGM doing pip list"
2843- ${_pip_cmd} list
2844-
28452779 rm -f /tmp/git/deps/*
28462780
2847- echodebug " DGM doing pip list"
2848- ${_pip_cmd} list
2849-
2850- # # DGM different attempt, try installing requirements
2851- echoinfo " DGM Installing Salt requirements from PyPi, ${_pip_cmd} install ${_USE_BREAK_SYSTEM_PACKAGES} --ignore-installed ${_PIP_INSTALL_ARGS} -r requirements/static/ci/py${_py_version} /linux.txt"
2781+ echodebug " Installing Salt requirements from PyPi, ${_pip_cmd} install ${_USE_BREAK_SYSTEM_PACKAGES} --ignore-installed ${_PIP_INSTALL_ARGS} -r requirements/static/ci/py${_py_version} /linux.txt"
28522782 ${_pip_cmd} install ${_USE_BREAK_SYSTEM_PACKAGES} --ignore-installed ${_PIP_INSTALL_ARGS} -r " requirements/static/ci/py${_py_version} /linux.txt"
28532783 # shellcheck disable=SC2181
28542784 if [ $? -ne 0 ]; then
@@ -2862,9 +2792,6 @@ __install_salt_from_repo() {
28622792 ${_pip_cmd} install ${_USE_BREAK_SYSTEM_PACKAGES} --ignore-installed --upgrade ${_PIP_INSTALL_ARGS} " jaraco.collections==5.1.0" || return 1
28632793 ${_pip_cmd} install ${_USE_BREAK_SYSTEM_PACKAGES} --ignore-installed --upgrade ${_PIP_INSTALL_ARGS} " jaraco.context==6.0.1" || return 1
28642794 ${_pip_cmd} install ${_USE_BREAK_SYSTEM_PACKAGES} --ignore-installed --upgrade ${_PIP_INSTALL_ARGS} " jaraco.classes==3.4.0" || return 1
2865-
2866- echodebug " DGM doing pip list"
2867- ${_pip_cmd} list
28682795 fi
28692796
28702797 echoinfo " Building Salt Python Wheel"
0 commit comments