toaster: Documentation chanes to move to pip3 from virtualenv
cover toaster: Documentation chanes to move to pip3 from virtualenv
Our switch to python3 requires us to dump the virtualenv approach as long as we need python to resolve to python2 in the same shell that python3 resolves to python3. To enable users to install Toaster's python package dependencies locally, we are changing to using pip3 and these doc changes explain how to do that.
-bavery (an intel employee)
The following changes since commit 3c42280b8a5cac184311a59589849fec4e215a14:
sanity: Drop setting C locale (2016-06-01 15:05:47 +0100)
are available in the git repository at:
git://git.yoctoproject.org/poky-contrib bavery/toaster/pip3-doc-changes
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=bavery/toaster/pip3-doc-changes
brian avery (1):
toaster-manual: Switch to pip3 dependency installer
.../toaster-manual-setup-and-use.xml | 26 ++++---- .../toaster-manual/toaster-manual-start.xml | 72 ++++++---------------- 2 files changed, 31 insertions(+), 67 deletions(-)
--
1.9.1
PATCH 1/1 toaster-manual: Switch to pip3 dependency installer
Our switch to python3 requires us to dump the virtualenv approach as long as we need python to resolve to python2 in the same shell that python3 resolves to python3. To enable users to install Toaster's python package dependencies locally, we are changing to using pip3 and these doc changes explain how to do that.
--- .../toaster-manual-setup-and-use.xml | 26 ++++---- .../toaster-manual/toaster-manual-start.xml | 72 ++++++---------------- 2 files changed, 31 insertions(+), 67 deletions(-)
documentation/toaster-manual/toaster-manual-setup-and-use.xml +12 -14
@@ -116,12 +116,12 @@ create a superuser by following these steps: <orderedlist> <listitem><para> - If you used <filename>virtualenv</filename>, which is + If you used <filename>pip3</filename>, which is recommended, to set up the Toaster system dependencies, - you need be sure the virtual environment is activated. - To activate this environment, use the following command: + you need be sure the local user path is in your PATH list. + To append the pip3 local user path, use the following command: <literallayout class='monospaced'> - $ source venv/bin/activate + $ export PATH=$PATH:$HOME/.local/bin </literallayout> </para></listitem> <listitem><para>
@@ -213,14 +213,14 @@ <listitem><para> If you are using Ubuntu 14.04.3, run the following: <literallayout class='monospaced'> - $ sudo apt-get install apache2 libapache2-mod-wsgi mysql-server virtualenv libmysqlclient-dev + $ sudo apt-get install apache2 libapache2-mod-wsgi mysql-server python3-pip libmysqlclient-dev </literallayout> </para></listitem> <listitem><para> If you are using Fedora 22 or a RedHat distribution, run the following: <literallayout class='monospaced'> - $ sudo dnf install httpd mod_wsgi python-virtualenv gcc mysql-devel + $ sudo dnf install httpd mod_wsgi gcc mysql-devel </literallayout> </para></listitem> </itemizedlist>
@@ -245,17 +245,15 @@ </literallayout> </para></listitem> <listitem><para> - Initialize a virtual environment and install Toaster - dependencies. - Using a virtual environment keeps the Python packages + Install Toaster + dependencies using the --user flag which + keeps the Python packages isolated from your system-provided packages: <literallayout class='monospaced'> $ cd /var/www/toaster/ - $ virtualenv venv - $ source ./venv/bin/activate - $ pip install -r ./poky/bitbake/toaster-requirements.txt - $ pip install mysql - $ pip install MySQL-python + $ pip3 install --user -r ./poky/bitbake/toaster-requirements.txt + $ pip3 install --user mysql + $ pip3 install --user MySQL-python </literallayout> <note> Isolating these packages is not required but is
documentation/toaster-manual/toaster-manual-start.xml +19 -53
104 lines not on this page · raw message
Signature · 1 line
1.9.1
I've attached a pdf version for easier reading.
-bavery (an intel employee)
Quoted 27 lines · brian avery
Our switch to python3 requires us to dump the virtualenv approach as long as we need python to resolve to python2 in the same shell that python3 resolves to python3. To enable users to install Toaster's python package dependencies locally, we are changing to using pip3 and these doc changes explain how to do that.
-bavery (an intel employee)
The following changes since commit
3c42280b8a5cac184311a59589849fec4e215a14:sanity: Drop setting C locale (2016-06-01 15:05:47 +0100)
are available in the git repository at:
git://git.yoctoproject.org/poky-contribbavery/toaster/pip3-doc-changes
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=bavery/toaster/pip3-doc-changesbrian avery (1):
toaster-manual: Switch to pip3 dependency installer.../toaster-manual-setup-and-use.xml | 26 ++++---- .../toaster-manual/toaster-manual-start.xml | 72 ++++++---------------- 2 files changed, 31 insertions(+), 67 deletions(-)--
1.9.1
Quoted 1 line · On 01/06/2016 17:27, "[email protected] on behalf of Brian…
I've attached a pdf version for easier reading.
So the instructions look good to me. I installed python3-pip in my Ubuntu 14.04 system, and then the Toaster dependencies using
pip3 install --user -r bitbake/toaster-requirements.txt
I can see all of them installed if I do
pip3 list installed --local
But, when I try to start Toaster, it complains saying
This program needs Django>1.8,<1.9
Please install with pip install -r /home/belen/toaster-python3/bitbake/toaster-requirements.txt
Any ideas about what I am doing wrong?
Thanks!
Belén
Quoted 36 lines
-bavery (an intel employee)
Quoted 32 lines · brian avery
Our switch to python3 requires us to dump the virtualenv approach as long as we need python to resolve to python2 in the same shell that python3 resolves to python3. To enable users to install Toaster's python package dependencies locally, we are changing to using pip3 and these doc changes explain how to do that.
-bavery (an intel employee)
The following changes since commit
3c42280b8a5cac184311a59589849fec4e215a14:sanity: Drop setting C locale (2016-06-01 15:05:47 +0100)
are available in the git repository at:
git://git.yoctoproject.org/poky-contrib
bavery/toaster/pip3-doc-changeshttp://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=bavery/toaster/p
ip3-doc-changesbrian avery (1):
toaster-manual: Switch to pip3 dependency installer.../toaster-manual-setup-and-use.xml | 26 ++++---- .../toaster-manual/toaster-manual-start.xml | 72 ++++++---------------- 2 files changed, 31 insertions(+), 67 deletions(-)--
1.9.1
Quoted 23 lines · Belen
Quoted 1 line · On 01/06/2016 17:27, "[email protected] on behalf of Brian…
I've attached a pdf version for easier reading.
So the instructions look good to me. I installed python3-pip in my Ubuntu 14.04 system, and then the Toaster dependencies using
pip3 install --user -r
bitbake/toaster-requirements.txtI can see all of them installed if I do
pip3 list installed --local
But, when I try to start Toaster, it complains saying
This program needs Django>1.8,<1.9
Please install with pip install -r/home/belen/toaster-python3/bitbake/toaster-requirements.txt
Quoted 5 lines
Any ideas about what I am doing wrong?
Thanks!
Belén
You can ignore the above: a clean terminal solved all my problems.
Sorry for the noise.
Belén
Quoted 51 lines
Quoted 45 lines
-bavery (an intel employee)
Quoted 33 lines · brian avery
Our switch to python3 requires us to dump the virtualenv approach as long as we need python to resolve to python2 in the same shell that python3 resolves to python3. To enable users to install Toaster's python package dependencies locally, we are changing to using pip3 and these doc changes explain how to do that.
-bavery (an intel employee)
The following changes since commit
3c42280b8a5cac184311a59589849fec4e215a14:sanity: Drop setting C locale (2016-06-01 15:05:47 +0100)
are available in the git repository at:
git://git.yoctoproject.org/poky-contrib
bavery/toaster/pip3-doc-changeshttp://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=bavery/toaster/
p
ip3-doc-changesbrian avery (1):
toaster-manual: Switch to pip3 dependency installer.../toaster-manual-setup-and-use.xml | 26 ++++---- .../toaster-manual/toaster-manual-start.xml | 72 ++++++---------------- 2 files changed, 31 insertions(+), 67 deletions(-)--
1.9.1Signature · 4 lines
_______________________________________________ toaster mailing list [email protected] https://lists.yoctoproject.org/listinfo/toaster