switch to py3/pip3

Mon, 22 Feb 2021 15:55:25 -0600

author
Meredith Howard <mhoward@roomag.org>
date
Mon, 22 Feb 2021 15:55:25 -0600
changeset 892
ede01ab376a7
parent 891
7947270fa776
child 893
3b53619431ed

switch to py3/pip3

bin/setup-hg-evolve file | annotate | diff | comparison | revisions
bin/setup-hg-git file | annotate | diff | comparison | revisions
--- a/bin/setup-hg-evolve
+++ b/bin/setup-hg-evolve
@@ -1,12 +1,12 @@
 #!/bin/bash
 set -eu -o pipefail
 
-if ! (command -v pip2 && pip2 -V) &>/dev/null; then
+if ! (command -v pip3 && pip3 -V) &>/dev/null; then
   curl -fsSL --compressed https://bootstrap.pypa.io/get-pip.py |
-    python2 - --user
+    python3 - --user
 fi
 
-pip2 install --user --upgrade hg-evolve
+pip3 install --user --upgrade hg-evolve
 
 if ! grep -qsw evolve ~/.hgext/hgrc; then
   printf '[extensions]\nevolve =\n' >> ~/.hgext/hgrc
--- a/bin/setup-hg-git
+++ b/bin/setup-hg-git
@@ -1,12 +1,12 @@
 #!/bin/bash
 set -eu -o pipefail
 
-if ! (command -v pip2 && pip2 -V) &>/dev/null; then
+if ! (command -v pip3 && pip3 -V) &>/dev/null; then
   curl -fsSL --compressed https://bootstrap.pypa.io/get-pip.py |
-    python2 - --user
+    python3 - --user
 fi
 
-pip2 install --user --upgrade hg-git
+pip3 install --user --upgrade hg-git
 
 if ! grep -qsw hggit ~/.hgext/hgrc; then
   printf '[extensions]\nhggit =\n' >> ~/.hgext/hgrc

mercurial