Search code examples
yoctobitbakeopenembedded

use pip install command in recipes Yocto Project


I need to use an existing library on this site https://pypi.python.org/pypi/SpeechRecognition/

library present format compressed SpeechRecognition-3.4.3.tar.gz

can I use

pip install SpeechRecognition

in overrider functions like do_fetch , do_install in recipe file ?

To install this library in the image


Solution

  • Use inherit pypi instead.Quite likely you also want to use setuptools, ie

     inherit pypi setuptools
    

    See for example the python-flask recipe: python-flask_0.10.1.bb