File tree Expand file tree Collapse file tree 4 files changed +15
-8
lines changed
Expand file tree Collapse file tree 4 files changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ openssl
2727pkg-config
2828psmisc
2929python3-dev
30+ python3-pip
3031python3-venv
3132tar
3233tcpdump
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ pkgconfig
2424postgresql-devel # psycopg2
2525psmisc
2626python3-devel
27+ python3-pip
2728redhat-rpm-config # missing dep for gcc hardening flags, see rhbz#1217376
2829systemd-devel # for systemd-python
2930tar
Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ function pip_install {
174174 if python3_enabled; then
175175 echo " Using python $PYTHON3_VERSION to install $package_dir because python3_enabled=True"
176176 sudo_pip=" $sudo_pip LC_ALL=en_US.UTF-8"
177- cmd_pip=$( get_pip_command $ PYTHON3_VERSION)
177+ cmd_pip=" python $ PYTHON3_VERSION -m pip "
178178 else
179179 echo " Using python $PYTHON2_VERSION to install $package_dir because python3_enabled=False"
180180 cmd_pip=$( get_pip_command $PYTHON2_VERSION )
@@ -217,7 +217,7 @@ function pip_uninstall {
217217 local sudo_pip=" sudo -H"
218218 if python3_enabled; then
219219 sudo_pip=" $sudo_pip LC_ALL=en_US.UTF-8"
220- cmd_pip=$( get_pip_command $ PYTHON3_VERSION)
220+ cmd_pip=" python $ PYTHON3_VERSION -m pip "
221221 else
222222 cmd_pip=$( get_pip_command $PYTHON2_VERSION )
223223 fi
Original file line number Diff line number Diff line change 55# Update pip and friends to a known common version
66
77# Assumptions:
8- # - if USE_PYTHON3=True, PYTHON3_VERSION refers to a version already installed
8+ # - PYTHON3_VERSION refers to a version already installed
99
1010set -o errexit
1111
@@ -53,6 +53,8 @@ function get_versions {
5353 else
5454 echo " pip: Not Installed"
5555 fi
56+ # Show python3 module version
57+ python${PYTHON3_VERSION} -m pip --version
5658}
5759
5860
@@ -125,7 +127,14 @@ function configure_pypi_alternative_url {
125127# Show starting versions
126128get_versions
127129
128- # Do pip
130+ if [[ -n $PYPI_ALTERNATIVE_URL ]]; then
131+ configure_pypi_alternative_url
132+ fi
133+
134+ # Just use system pkgs on Focal
135+ if [[ " $DISTRO " == focal ]]; then
136+ exit 0
137+ fi
129138
130139# Eradicate any and all system packages
131140
143152
144153install_get_pip
145154
146- if [[ -n $PYPI_ALTERNATIVE_URL ]]; then
147- configure_pypi_alternative_url
148- fi
149-
150155set -x
151156
152157# Note setuptools is part of requirements.txt and we want to make sure
You can’t perform that action at this time.
0 commit comments