forked from p15670423/monkey
Updated python version to 3.7
This commit is contained in:
parent
8e04cf215f
commit
7bab9a03d8
|
@ -5,4 +5,4 @@ Homepage: https://www.infectionmonkey.com
|
|||
Priority: optional
|
||||
Version: 1.0
|
||||
Description: Guardicore Infection Monkey Island installation package
|
||||
Depends: openssl, python3-pip, python3-dev
|
||||
Depends: openssl, python3.7-dev, python3.7-venv
|
||||
|
|
|
@ -3,10 +3,12 @@
|
|||
MONKEY_FOLDER=/var/monkey
|
||||
INSTALLATION_FOLDER=/var/monkey/monkey_island/installation
|
||||
PYTHON_FOLDER=/var/monkey/monkey_island/bin/python
|
||||
PYTHON_VERSION=python3.7
|
||||
|
||||
# Prepare python virtualenv
|
||||
pip3 install virtualenv --no-index --find-links file://$INSTALLATION_FOLDER
|
||||
python3 -m virtualenv -p python3 ${PYTHON_FOLDER}
|
||||
# This is using the apt package `python3.7-venv` which is listed in the `control` file as a dependency.
|
||||
# See https://packages.debian.org/stable/python/python3.7-venv
|
||||
$PYTHON_VERSION -m venv ${PYTHON_FOLDER}
|
||||
|
||||
# install pip requirements
|
||||
${PYTHON_FOLDER}/bin/python -m pip install -r $MONKEY_FOLDER/monkey_island/requirements.txt --no-index --find-links file://$INSTALLATION_FOLDER
|
||||
|
|
Loading…
Reference in New Issue