mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-11-28 10:02:10 +00:00
fixing to work with python3.10 on a machine where 3.9 is default
This commit is contained in:
parent
b259e43de2
commit
bf6c6e56a6
12
requirements-p310.txt
Normal file
12
requirements-p310.txt
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
asgiref==3.3.4
|
||||||
|
confusable-homoglyphs==3.2.0
|
||||||
|
coverage==5.5
|
||||||
|
Django==3.2
|
||||||
|
docutils==0.14
|
||||||
|
gunicorn==20.1.0
|
||||||
|
Pillow==9.0.1
|
||||||
|
pytz==2019.1
|
||||||
|
reportlab==3.6.8
|
||||||
|
sqlparse==0.2.4
|
||||||
|
typing-extensions==3.7.4.3
|
||||||
|
Unidecode==1.0.23
|
16
venv-trog.sh
16
venv-trog.sh
@ -23,12 +23,14 @@ echo 'Run this in a terminal in the troggle directory: "bash venv-trog.sh"'
|
|||||||
# On a clean debian 11 (bullseye) installation with Xfce & ssh,
|
# On a clean debian 11 (bullseye) installation with Xfce & ssh,
|
||||||
# as debian does not install everything that ubuntu does, you need:
|
# 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 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.10
|
||||||
# sudo apt install python3-pip
|
# sudo apt install python3.10-pip
|
||||||
# sudo apt install python3-venv
|
# sudo apt install python3.10-venv
|
||||||
|
# sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.10 1
|
||||||
|
#
|
||||||
|
|
||||||
# copy this file and requirements.txt into the directory above where you want to install the VENV
|
# copy this file and requirements.txt into the directory above where you want to install the VENV
|
||||||
VENAME=dj32 # python3.9 and django 3.2
|
VENAME=p310 # python3.10 and django 3.2
|
||||||
|
|
||||||
if [ -d requirements.txt ]; then
|
if [ -d requirements.txt ]; then
|
||||||
echo "No requirements.txt found. Copy it from your most recent installation."
|
echo "No requirements.txt found. Copy it from your most recent installation."
|
||||||
@ -41,7 +43,7 @@ python --version
|
|||||||
cd ..
|
cd ..
|
||||||
if [ ! -d $VENAME ]; then
|
if [ ! -d $VENAME ]; then
|
||||||
echo "### Creating venv $VENAME"
|
echo "### Creating venv $VENAME"
|
||||||
sudo python -m venv $VENAME
|
python -m venv $VENAME
|
||||||
else
|
else
|
||||||
echo "/$VENAME/ already exists ! Delete it first."
|
echo "/$VENAME/ already exists ! Delete it first."
|
||||||
exit 1
|
exit 1
|
||||||
@ -54,8 +56,8 @@ source bin/activate
|
|||||||
echo "### Activated."
|
echo "### Activated."
|
||||||
# update local version of pip, more recent than OS version
|
# update local version of pip, more recent than OS version
|
||||||
# debian bullseye installs pip 20.3.4 which barfs, we want >22.0.3
|
# debian bullseye installs pip 20.3.4 which barfs, we want >22.0.3
|
||||||
echo "### installing later version of pip inside $VENAME"
|
#echo "### installing later version of pip inside $VENAME"
|
||||||
python -m pip install --upgrade pip
|
#python -m pip install --upgrade pip
|
||||||
|
|
||||||
PIP=pip
|
PIP=pip
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user