Install python3 mn last in install-mininet-vm.sh (#1021)

This means that 'mn' will run be default in python3.

For python2, run

    sudo python2 `which mn`

Also:

- change mn execution line to /usr/bin/python
  (install seems to change it to python2 or python3)

- don't install python-is-python3 package
This commit is contained in:
lantz
2021-01-29 22:39:19 -08:00
committed by GitHub
parent b6ad3a1619
commit dffddc338f
2 changed files with 3 additions and 4 deletions
+2 -3
View File
@@ -36,11 +36,10 @@ fi
# Install Mininet for Python2 and Python3
APT="sudo apt-get -y -qq"
$APT install python3
$APT install python-is-python3 || true
$APT install python2 || $APT install python
python --version
time PYTHON=python3 mininet/util/install.sh
python --version || $APT install python-is-python3
time PYTHON=python2 mininet/util/install.sh -n
time PYTHON=python3 mininet/util/install.sh
# Finalize VM
time mininet/util/install.sh -tcd
# Ignoring this since NOX classic is deprecated