remove alias
This commit is contained in:
@@ -736,6 +736,7 @@ prepare () {
|
||||
#install packages
|
||||
#All DEB based
|
||||
#Python 3.11 currently not compatible with OP, redefine for Fedora
|
||||
PYVERSION="python3"
|
||||
if [ $INSTALL -eq 2 ]; then
|
||||
apt-get update > /dev/null
|
||||
deb_packages
|
||||
@@ -747,7 +748,7 @@ prepare () {
|
||||
PYV=$(python3 -c"import sys; print(sys.version_info.minor)")
|
||||
if [ $PYV -eq 11 ]; then
|
||||
dnf -y install python3.10-devel
|
||||
alias python3='/usr/bin/python3.10'
|
||||
PYVERSION='python3.10'
|
||||
fi
|
||||
fi
|
||||
|
||||
@@ -760,7 +761,7 @@ prepare () {
|
||||
systemctl enable ssh.service
|
||||
echo "Installing OctoPrint virtual environment in /home/$user/OctoPrint"
|
||||
#make venv
|
||||
sudo -u $user python3 -m venv /home/$user/OctoPrint
|
||||
sudo -u $user $PYVERSION -m venv /home/$user/OctoPrint
|
||||
#update pip
|
||||
sudo -u $user /home/$user/OctoPrint/bin/pip install --upgrade pip
|
||||
#pre-install wheel
|
||||
|
||||
Reference in New Issue
Block a user