diff options
Diffstat (limited to 'venv-trog.sh')
-rw-r--r-- | venv-trog.sh | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/venv-trog.sh b/venv-trog.sh index 7c10473..722f65b 100644 --- a/venv-trog.sh +++ b/venv-trog.sh @@ -2,17 +2,19 @@ # 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 +# Expects an Ubuntu 22.04 relatively clean install. +# Running using SQLite version 3.37.2 2022-01-06 13:25:41 # Many permissions conflicts under WSL2 mean more sudo needed # If you have not already installed these on your clean Ubuntu install DO THIS FIRST -# /usr/bin/python --version : ensure python is an alias for python3 not python2.7 +# use the script os-trog.sh + +# python --version : ensure python is an alias for python3 not python2.7 # sudo apt install sqlite3 # sudo apt install python3-pip # this installs a shed-load of other stuff: binutils etc. -# sudo apt install python3.9 -# sudo apt install python3.9-venv -# sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.9 1 +# sudo apt install python3.10 +# sudo apt install python3.10-venv +# sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.10 1 # on WSL there is an oddity that creating a venv trips over a PowerShell permissions issue @@ -30,7 +32,7 @@ echo 'Run this in a terminal in the troggle directory: "bash venv-trog.sh"' # # copy this file and requirements.txt into the directory above where you want to install the VENV -VENAME=p310 # python3.10 and django 3.2 +VENAME=p10d3 # python3.10 and django 3.2 if [ -d requirements.txt ]; then echo "No requirements.txt found. Copy it from your most recent installation." @@ -56,8 +58,8 @@ source bin/activate echo "### Activated." # update local version of pip, more recent than OS version # debian bullseye installs pip 20.3.4 which barfs, we want >22.0.3 -#echo "### installing later version of pip inside $VENAME" -#python -m pip install --upgrade pip +echo "### installing later version of pip inside $VENAME" +python -m pip install --upgrade pip PIP=pip @@ -116,7 +118,11 @@ python --version echo "Django version:" django-admin --version echo "### Now do + 'sudo service mysql start' + 'sudo service mariadb restart' + 'sudo mysql_secure_installation' 'cd ../$VENAME' 'source bin/activate' 'cd troggle' + 'python manage.py check' 'python manage.py test -v 3' "
\ No newline at end of file |