Patchwork [bitbake-devel,6/8] document requirements for the python environment

login
register
mail settings
Submitter Alexandru DAMIAN
Date July 18, 2014, 12:15 p.m.
Message ID <e8009c53f28f125139ac04f7ae720d22b2a05e9e.1405685308.git.alexandru.damian@intel.com>
Download mbox | patch
Permalink /patch/76053/
State New
Headers show

Comments

Alexandru DAMIAN - July 18, 2014, 12:15 p.m.
From: Alexandru DAMIAN <alexandru.damian@intel.com>

Since Toaster adds a number of specific requirements managed
by pip, we document these requirements in order to be able
to run bitbake and toaster under virtualenv. The target here
is to break the dependency on distro packages for specific
python libraries.

In order to start bitbake/Toaster in a distro-independent manner,
we use virtualenv and pip. We add venv to the .gitignore list
to make room for the virtualenv deployment in this directory.

Use this command sequence to setup the virtualenv:

$ virtualenv venv
$ . venv/bin/activate
$ cat requirements.txt | xargs pip install

bitbake and Toaster will then run normally under virtualenv.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
---
 .gitignore       | 2 ++
 requirements.txt | 4 ++++
 2 files changed, 6 insertions(+)
 create mode 100644 requirements.txt

Patch

diff --git a/.gitignore b/.gitignore
index 5d9bc50..5adf4d1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,6 +7,8 @@  pyshtables.py
 /bin/bitbakec
 *.swp
 tags
+*.sqlite
+venv/
 doc/bitbake-user-manual/bitbake-user-manual.html
 doc/bitbake-user-manual/bitbake-user-manual.pdf
 doc/bitbake-user-manual/bitbake-user-manual.tgz
diff --git a/requirements.txt b/requirements.txt
new file mode 100644
index 0000000..2bb07e6
--- /dev/null
+++ b/requirements.txt
@@ -0,0 +1,4 @@ 
+Django==1.5
+South==0.8.4
+argparse==1.2.1
+wsgiref==0.1.2