InstallScript icon indicating copy to clipboard operation
InstallScript copied to clipboard

Why not install virtualenv and python packages from list in requirements.txt

Open chris001 opened this issue 8 years ago • 2 comments

@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 ?

chris001 avatar Oct 23 '17 05:10 chris001

Any solution? would like with virtualenv + virtualenvwrapper

rafaballack avatar Dec 15 '17 15:12 rafaballack

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.

chris001 avatar Dec 15 '17 16:12 chris001