diff options
Diffstat (limited to 'venv-trog.sh')
-rw-r--r-- | venv-trog.sh | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/venv-trog.sh b/venv-trog.sh index 0c88ba9..73ecc42 100644 --- a/venv-trog.sh +++ b/venv-trog.sh @@ -1,5 +1,6 @@ #!/bin/bash # Run this in a terminal in the troggle directory: 'bash venv-trog.sh' +echo 'Run this in a terminal in the troggle directory: "bash venv-trog.sh"' # Expects an Ubuntu 20.04 relatively clean install. # Running using SQLite 3.31.1 2020-01-27 19:55:54 @@ -10,11 +11,18 @@ # sudo apt install python3-pip # sudo apt install python3.9 +# On a clean debian 11 (bullseye) installation with Xfce & ssh, +# as debian does not install everything that ubuntu does, you need: +# sudo usermod -a -G sudo expo # to put expo in sudoers group, re-login required +# sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.9 1 +# sudo apt install python3-pip +# sudo apt piinstall python3-venv + # copy this file and requirements.txt into the directory above where you want to install the VENV -VENAME=p39 # python3.9 and django 2.22.25 +VENAME=d4 # python3.9 and django 4 if [ -d requirements.txt ]; then - echo "No requirements.txt found. Copy it here from your most recent installation." + echo "No requirements.txt found. Copy it from your most recent installation." exit 1 fi @@ -31,7 +39,11 @@ fi echo "### Activating $VENAME" cd $VENAME source bin/activate -PIP=bin/pip + # update local version of pip, more recent than OS version + # debian bullseye installs pip 20.3.4 which barfs, we want >22.0.3 +python -m pip install --upgrade pip + +PIP=pip $PIP list > original-pip.list $PIP freeze >original.txt |