Skip to content

Commit

Permalink
Merge pull request #997 from cdivitotawela/python2-fix
Browse files Browse the repository at this point in the history
Fix python_setup/install_tool.sh when `python2` not present
  • Loading branch information
edoardopirovano authored Mar 29, 2022
2 parents 0ed0799 + 63b2636 commit fdc2a90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python-setup/install_tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ python3 -m pip install --user 'virtualenv<20.11'
python3 -m pip install --user poetry!=1.0.10
python3 -m pip install --user pipenv

if command -v python2 &> /dev/null; then
if command -v python2 >/dev/null 2>&1; then
# Setup Python 2 dependency installation tools.
# The Ubuntu 20.04 GHA environment does not come with a Python 2 pip
curl --location --fail https://bootstrap.pypa.io/pip/2.7/get-pip.py | python2
Expand Down

0 comments on commit fdc2a90

Please sign in to comment.