Skip to content

Commit

Permalink
debian-11, if pip2 already there, dont try and install
Browse files Browse the repository at this point in the history
  • Loading branch information
craigcomstock committed Jan 16, 2024
1 parent 98946e9 commit 2a1ce2b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cfengine-ci/cfengine-ci-buildhost.cf
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,11 @@ bundle agent cfengine_ci_buildhost
"python3-pip";
"rsync"; # added for debian-10

commands:
classes:
debian_11::
"have_pip2" expression => fileexists("/usr/local/bin/pip");
commands:
debian_11.!have_pip2::
"wget https://bootstrap.pypa.io/pip/2.7/get-pip.py -O get-pip.py && python2 get-pip.py && pip install psycopg2-binary"
contain => in_shell;
ubuntu_16:: # mingw host
Expand Down

0 comments on commit 2a1ce2b

Please sign in to comment.