Skip to content

Commit

Permalink
removed python2 installation
Browse files Browse the repository at this point in the history
  • Loading branch information
jstucke committed Feb 18, 2021
1 parent cbee151 commit 456c4e5
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 15 deletions.
8 changes: 0 additions & 8 deletions src/helperFunctions/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,6 @@ def pip3_remove_packages(*args):
return _pip_remove_packages(3, args)


def pip2_install_packages(*args):
return _pip_install_packages(2, args)


def pip2_remove_packages(*args):
return _pip_remove_packages(2, args)


def check_if_command_in_path(command):
_, return_code = execute_shell_command_get_return_code('command -v {}'.format(command))
if return_code != 0:
Expand Down
1 change: 0 additions & 1 deletion src/install/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

def main():
# dependencies
apt_install_packages('python-dev', 'python-setuptools')
apt_install_packages('libjpeg-dev')
apt_install_packages('libssl-dev', 'python3-tk')
pip3_install_packages('pluginbase', 'Pillow', 'cryptography', 'pyopenssl', 'matplotlib', 'docker', 'networkx')
Expand Down
6 changes: 0 additions & 6 deletions src/install/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,6 @@ def main(distribution): # pylint: disable=too-many-statements
apt_remove_packages('python3-pip', 'python3-setuptools', 'python3-wheel')
install_pip('python3')

# install python2
apt_install_packages('python', 'python-dev')
with suppress(InstallationError):
apt_remove_packages('python-pip')
install_pip('python2')

# install general python dependencies
apt_install_packages('libmagic-dev')
apt_install_packages('libfuzzy-dev')
Expand Down

0 comments on commit 456c4e5

Please sign in to comment.