Skip to content

Commit

Permalink
Replace python with python3
Browse files Browse the repository at this point in the history
  • Loading branch information
SmartFinn committed Aug 9, 2022
1 parent 857e0ba commit 09132e5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ Packages in this section are not part of the official repositories. If you have

3. Install dependencies

* `python` >= 2.7 _(required)_
* `python3` _(required)_
* `telnet` _(required)_
* `wireshark` _(recommended)_
* `ssh-askpass` _(recommended)_
* `vinagre` _(recommended)_
* `docker-engine` _(optional)_
* `docker` _(optional)_

4. Enjoy!

Expand Down
2 changes: 1 addition & 1 deletion bin/eve-ng-integration
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# See https://github.com/SmartFinn/eve-ng-integration

from __future__ import print_function
Expand Down
2 changes: 1 addition & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Bugs: https://github.com/SmartFinn/eve-ng-integration/issues
Package: eve-ng-integration
Architecture: all
Multi-Arch: foreign
Depends: ${misc:Depends}, python, ssh-askpass-gnome | ssh-askpass, telnet, vinagre, wireshark, xterm | x-terminal-emulator
Depends: ${misc:Depends}, python3, ssh-askpass-gnome | ssh-askpass, telnet, vinagre, wireshark, xterm | x-terminal-emulator
Suggests: docker-ce | docker.io
Replaces: unetlab-x-integration
Conflicts: unetlab-x-integration
Expand Down
12 changes: 6 additions & 6 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ fi
_msg "Detected distribution: $ID $VERSION_ID (${ID_LIKE:-"none"})"

# Check if python is installed
if _command_exists python; then
if _command_exists python3; then
# declare a variable
PYTHON=""
fi
Expand All @@ -95,13 +95,13 @@ for dist_id in $ID $ID_LIKE; do
case "$dist_id" in
debian|ubuntu)
_msg "Install dependencies..."
sudo apt-get install -y ${PYTHON-"python"} \
sudo apt-get install -y ${PYTHON-"python3"} \
ssh-askpass telnet vinagre wireshark
do_install
;;
arch|archlinux|manjaro)
_msg "Install dependencies..."
sudo pacman -S ${PYTHON-"python"} \
sudo pacman -S ${PYTHON-"python3"} \
inetutils vinagre wireshark-qt x11-ssh-askpass
do_install
;;
Expand All @@ -112,19 +112,19 @@ for dist_id in $ID $ID_LIKE; do
wireshark_packagename='wireshark-qt'
fi
_msg "Install dependencies..."
sudo dnf install -y ${PYTHON-"python"} \
sudo dnf install -y ${PYTHON-"python3"} \
openssh-askpass telnet vinagre "${wireshark_packagename}"
do_install
;;
opensuse|suse)
_msg "Install dependencies..."
sudo zypper install -y ${PYTHON-"python"} \
sudo zypper install -y ${PYTHON-"python3"} \
openssh-askpass telnet vinagre wireshark-ui-qt
do_install
;;
centos|CentOS|rhel)
_msg "Install dependencies..."
sudo yum install -y ${PYTHON-"python"} \
sudo yum install -y ${PYTHON-"python3"} \
openssh-askpass telnet vinagre wireshark-gnome
do_install
;;
Expand Down

0 comments on commit 09132e5

Please sign in to comment.