Bug 6552 - Need a proper way to install Toaster dependencies
Summary: Need a proper way to install Toaster dependencies
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 1.7
Hardware: All Multiple
: Medium enhancement
Target Milestone: 1.8
Assignee: Paul Eggleton
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-07-18 14:19 UTC by Paul Eggleton
Modified: 2015-02-16 17:15 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Eggleton 2014-07-18 14:19:37 UTC
Toaster requires Django and some other dependencies to be installed. Distro packages for these are rarely at the right version and some users are uncomfortable with installing "random" python packages using pip. We can do the same for these as we have done with other dependencies not well taken care of by the host distro - add them to buildtools or some very similar SDK-style installer.

There is a recipe for Django here - it may require some tidying up though:

http://layers.openembedded.org/layerindex/recipe/20580/

We'll also need a recipe for South.

(It's worth noting that we'll need recipes for these anyway when it comes time to make a build appliance that uses Toaster instead of Hob.)
Comment 1 Saul Wold 2014-11-11 22:11:28 UTC
Can you enumrate the complete list of "some other dependencies" beyond Django 
and South?
Comment 2 Paul Eggleton 2014-11-12 08:55:24 UTC
The Toaster dependencies are listed here:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/bitbake/toaster-requirements.txt
Comment 3 Alexandru Damian 2014-11-12 10:39:48 UTC
Proper way to install dependencies is:

$ virtualenv venv
$ source venv/bin/activate
$ pip install -r poky/bitbake/toaster-requirements.txt


I've tested bitbake and it works fine in an virtualenv, so toaster can be used in managed mode (1.7/1.8 mode) to also run builds.

Please reopen with Documentation Change: Yes  if we need to change the manual to document this.
Comment 4 Alexandru Damian 2014-11-12 10:40:40 UTC
Reopened because I've seen the need for the recipe.
Comment 5 Paul Eggleton 2014-11-12 10:48:50 UTC
Right, we do need to provide the appropriate dependencies as part of buildtools.

We also definitely do need to document the proper procedure in the Toaster manual (when such a thing exists).
Comment 6 Alexandru Damian 2015-02-03 10:17:55 UTC
CCing Scott since we just talked about documenting the Toaster installation procedure.
Comment 7 Paul Eggleton 2015-02-16 17:15:20 UTC
Perhaps contrary to the above, the documented install method will continue to be to use virtualenv + pip, and we are not going to extend buildtools / the build appliance out of the box.

For those that prefer an alternative, I have sent recipes to meta-python to build an appropriate version of python-django 
+ python-django-south that can be used to build fixed versions.