Updated python version to 3.7

This commit is contained in:
Shay Nehmad 2020-04-09 15:51:59 +03:00
parent 8e04cf215f
commit 7bab9a03d8
2 changed files with 5 additions and 3 deletions

View File

@ -5,4 +5,4 @@ Homepage: https://www.infectionmonkey.com
Priority: optional Priority: optional
Version: 1.0 Version: 1.0
Description: Guardicore Infection Monkey Island installation package Description: Guardicore Infection Monkey Island installation package
Depends: openssl, python3-pip, python3-dev Depends: openssl, python3.7-dev, python3.7-venv

View File

@ -3,10 +3,12 @@
MONKEY_FOLDER=/var/monkey MONKEY_FOLDER=/var/monkey
INSTALLATION_FOLDER=/var/monkey/monkey_island/installation INSTALLATION_FOLDER=/var/monkey/monkey_island/installation
PYTHON_FOLDER=/var/monkey/monkey_island/bin/python PYTHON_FOLDER=/var/monkey/monkey_island/bin/python
PYTHON_VERSION=python3.7
# Prepare python virtualenv # Prepare python virtualenv
pip3 install virtualenv --no-index --find-links file://$INSTALLATION_FOLDER # This is using the apt package `python3.7-venv` which is listed in the `control` file as a dependency.
python3 -m virtualenv -p python3 ${PYTHON_FOLDER} # See https://packages.debian.org/stable/python/python3.7-venv
$PYTHON_VERSION -m venv ${PYTHON_FOLDER}
# install pip requirements # install pip requirements
${PYTHON_FOLDER}/bin/python -m pip install -r $MONKEY_FOLDER/monkey_island/requirements.txt --no-index --find-links file://$INSTALLATION_FOLDER ${PYTHON_FOLDER}/bin/python -m pip install -r $MONKEY_FOLDER/monkey_island/requirements.txt --no-index --find-links file://$INSTALLATION_FOLDER