Skip to content

Commit

Permalink
Install python3 mn last in install-mininet-vm.sh (mininet#1021)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
lantz authored Jan 30, 2021
1 parent b6ad3a1 commit dffddc3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bin/mn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python

"""
Mininet runner
Expand Down
5 changes: 2 additions & 3 deletions util/vm/install-mininet-vm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dffddc3

Please sign in to comment.