use pip install command in recipes Yocto Project

Mohamed Okasha picture Mohamed Okasha · Apr 11, 2016 · Viewed 7.2k times · Source

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

Answer

Anders picture Anders · Apr 11, 2016

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