summaryrefslogtreecommitdiffstats
path: root/documentation/toaster-manual/toaster-manual-setup-and-use.xml
diff options
context:
space:
mode:
authorbrian avery <brian.avery@intel.com>2016-07-12 10:04:34 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-07-19 15:04:49 +0100
commit64b8e17892e6415e155dd014ef05239e56bde5be (patch)
treea931e36e8167d72f269c4ccb16ac06acb03a0dc4 /documentation/toaster-manual/toaster-manual-setup-and-use.xml
parentf6378c10ef452f3e7744cd3e25657ae402355438 (diff)
downloadpoky-64b8e17892e6415e155dd014ef05239e56bde5be.tar.gz
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. (From yocto-docs rev: 06b8820bcb90d1855ccb2712b616bb89847a148f) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/toaster-manual/toaster-manual-setup-and-use.xml')
-rw-r--r--documentation/toaster-manual/toaster-manual-setup-and-use.xml28
1 files changed, 14 insertions, 14 deletions
diff --git a/documentation/toaster-manual/toaster-manual-setup-and-use.xml b/documentation/toaster-manual/toaster-manual-setup-and-use.xml
index ae59623e65..c70b91e016 100644
--- a/documentation/toaster-manual/toaster-manual-setup-and-use.xml
+++ b/documentation/toaster-manual/toaster-manual-setup-and-use.xml
@@ -116,12 +116,14 @@
116 create a superuser by following these steps: 116 create a superuser by following these steps:
117 <orderedlist> 117 <orderedlist>
118 <listitem><para> 118 <listitem><para>
119 If you used <filename>virtualenv</filename>, which is 119 If you used <filename>pip3</filename>, which is
120 recommended, to set up the Toaster system dependencies, 120 recommended, to set up the Toaster system dependencies,
121 you need be sure the virtual environment is activated. 121 you need be sure the local user path is in your
122 To activate this environment, use the following command: 122 <filename>PATH</filename> list.
123 To append the pip3 local user path, use the following
124 command:
123 <literallayout class='monospaced'> 125 <literallayout class='monospaced'>
124 $ source venv/bin/activate 126 $ export PATH=$PATH:$HOME/.local/bin
125 </literallayout> 127 </literallayout>
126 </para></listitem> 128 </para></listitem>
127 <listitem><para> 129 <listitem><para>
@@ -213,14 +215,14 @@
213 <listitem><para> 215 <listitem><para>
214 If you are using Ubuntu 14.04.3, run the following: 216 If you are using Ubuntu 14.04.3, run the following:
215 <literallayout class='monospaced'> 217 <literallayout class='monospaced'>
216 $ sudo apt-get install apache2 libapache2-mod-wsgi mysql-server virtualenv libmysqlclient-dev 218 $ sudo apt-get install apache2 libapache2-mod-wsgi mysql-server python3-pip libmysqlclient-dev
217 </literallayout> 219 </literallayout>
218 </para></listitem> 220 </para></listitem>
219 <listitem><para> 221 <listitem><para>
220 If you are using Fedora 22 or a RedHat distribution, run 222 If you are using Fedora 22 or a RedHat distribution, run
221 the following: 223 the following:
222 <literallayout class='monospaced'> 224 <literallayout class='monospaced'>
223 $ sudo dnf install httpd mod_wsgi python-virtualenv gcc mysql-devel 225 $ sudo dnf install httpd mod_wsgi gcc mysql-devel
224 </literallayout> 226 </literallayout>
225 </para></listitem> 227 </para></listitem>
226 </itemizedlist> 228 </itemizedlist>
@@ -251,17 +253,15 @@
251 </literallayout> 253 </literallayout>
252 </para></listitem> 254 </para></listitem>
253 <listitem><para> 255 <listitem><para>
254 Initialize a virtual environment and install Toaster 256 Install Toaster
255 dependencies. 257 dependencies using the --user flag which
256 Using a virtual environment keeps the Python packages 258 keeps the Python packages
257 isolated from your system-provided packages: 259 isolated from your system-provided packages:
258 <literallayout class='monospaced'> 260 <literallayout class='monospaced'>
259 $ cd /var/www/toaster/ 261 $ cd /var/www/toaster/
260 $ virtualenv venv 262 $ pip3 install --user -r ./poky/bitbake/toaster-requirements.txt
261 $ source ./venv/bin/activate 263 $ pip3 install --user mysql
262 $ pip install -r ./poky/bitbake/toaster-requirements.txt 264 $ pip3 install --user MySQL-python
263 $ pip install mysql
264 $ pip install MySQL-python
265 </literallayout> 265 </literallayout>
266 <note> 266 <note>
267 Isolating these packages is not required but is 267 Isolating these packages is not required but is