Why not install virtualenv and python packages from list in requirements.txt
@Yenthe666
These lines from odoo_install_debian.sh are missing in odoo_install.sh:
echo -e "\n---- Install python packages and virtualenv ----"
pip install virtualenv >> ./install_log
mkdir $OE_PYTHON_ENV >> ./install_log
virtualenv $OE_PYTHON_ENV -p /usr/bin/python2.7 >> ./install_log
source /odoo/python_env/bin/activate && pip install -r $OE_HOME_EXT/requirements.txt >> ./install_log
deactivate
Direct link: https://github.com/Yenthe666/InstallScript/blob/11.0/odoo_install_debian.sh#L216
Is there any reason not to install the python packages from the list in the file requirements.txt ?
Any solution? would like with virtualenv + virtualenvwrapper
I've added the code to simply install the python virtualenv stuff, but haven't had a chance to test it and verify it works correctly.
It's currently incomplete in the sense that, installing into virtualenv is the way to let a non-sudo ordinary user install Odoo + python requirements into their home folder and run the server on a non privileged port. To truly assure this is installed correctly, I must add code to verify that the required system packages were already installed (these can only be installed by the superadmin or sudo user), and halt with an error explaining they're not installed and the user isn't sudo or superadmin so they can't install these system packages.