diff --git a/python-installer/opengnsys_installer.sh b/python-installer/opengnsys_installer.sh index 174d499..ff154f7 100755 --- a/python-installer/opengnsys_installer.sh +++ b/python-installer/opengnsys_installer.sh @@ -15,6 +15,14 @@ install_packages() { apt-get install -y curl jq unzip python3 python3-git } + +create_python_venv() { + apt-get install -y python3-venv + python3 -m venv /tmp/oginstall/venv + source /tmp/oginstall/venv/bin/activate + pip install -r /tmp/oginstall/requirements.txt +} + download_installer() { rm -f /tmp/oginstaller.zip @@ -49,6 +57,7 @@ launch_component_installer() { install_packages download_installer extract_installer +create_python_venv create_questions launch_component_installer diff --git a/python-installer/requirements.txt b/python-installer/requirements.txt new file mode 100644 index 0000000..54171c6 --- /dev/null +++ b/python-installer/requirements.txt @@ -0,0 +1,2 @@ +GitPython +npyscreen