From 64b8e17892e6415e155dd014ef05239e56bde5be Mon Sep 17 00:00:00 2001 From: brian avery Date: Tue, 12 Jul 2016 10:04:34 -0700 Subject: 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 Signed-off-by: Richard Purdie --- .../toaster-manual/toaster-manual-start.xml | 71 ++++++---------------- 1 file changed, 20 insertions(+), 51 deletions(-) (limited to 'documentation/toaster-manual/toaster-manual-start.xml') diff --git a/documentation/toaster-manual/toaster-manual-start.xml b/documentation/toaster-manual/toaster-manual-start.xml index daefa79090..c5c6795f65 100644 --- a/documentation/toaster-manual/toaster-manual-start.xml +++ b/documentation/toaster-manual/toaster-manual-start.xml @@ -22,6 +22,11 @@ and "Yocto Project Release" sections in the Yocto Project Quick Start. + For Ubuntu/Debian, you might also need to do an additional install + of pip3. + + $ sudo apt-get install python3-pip + @@ -42,56 +47,6 @@ install-compatible format. -
- Set Up a Python Virtual Environment - - - Set up a Python virtual environment that allows you - to maintain a dedicated Python executable and its own - set of installed modules. - Doing so separates the executable from Python and the - modules provided by the operating system. - This separation avoids any version conflicts. - - Creating a virtual environment is not absolutely - necessary. - However, doing so is highly recommended. - - - - - Follow these steps to set up your virtual environment. - These steps assume a Ubuntu distribution: - - Install virtualenv: - Install the supported - python-virtualenv package from your - distribution rather than using pip. - - $ sudo apt-get install python-virtualenv - - - Create and Activate a Virtual Environment: - - $ virtualenv venv - $ source venv/bin/activate - - - - - After setting up a virtual environment in - which to run Toaster, you must initialize that - virtual environment each time you want to start - Toaster. - Use the following to initialize the environment just - before you start Toaster: - - $ source venv/bin/activate - - - -
-
Install Toaster Packages @@ -99,7 +54,21 @@ You need to install the packages that Toaster requires. Use this command: - $ pip install -r bitbake/toaster-requirements.txt + $ $ pip3 install --user -r bitbake/toaster-requirements.txt + + The previous command installs the necessary Toaster modules + into a local python 3 cache in your + $HOME directory. + The caches is actually located in + $HOME/.local. + To see what packages have been installed into your + $HOME directory, do the following: + + $ pip3 list installed --local + + If you need to remove something, the following works: + + $ pip3 uninstall PackageNameToUninstall
-- cgit v1.2.3-54-g00ecf