Skip to contentSkip to conversation

How do I use additional commands in recipe?

DISCUSSION tykwon 1 participant 2 messages Jun 18, 2018 1 message not in the archive

lore
Share & tools
lore

tykwon

author
#0 lore raw

Hello.

I want to use pyppd while using the hplip package.

pyppd is a command to process the ppd data of
hplip.(https://pypi.org/project/pyppd/)

I tried to use pyppd in recipe of hplip.

do_install_append () {

apt-get install python-pip

pip install pyppd

pyppd ${WORKDIR}/image/usr/share/ppd/HP

}

However, in the do_install step, the following error occurs.

apt-get: not found

pip: not found

pyppd: not found

The pyppd I want to use is only needed in the do_install step.

How do I use pyppd in recipe?

I'm sorry I do not have enough English.

Regards

Kwon

A message that is not in the archive (sent off-list or not yet received): [email protected]

author
#2 lore raw

Hi.

Quoted 3 lines

Technically, you need to create a recipe for pyppd. If you only need it during the install process (e.g. you want it to run on the host), then you need -native recipe, to be precise. Here is a lot of documentation on the process:
https://www.yoctoproject.org/docs/latest/mega-manual/mega-manual.html#new-recipe-writing-a-new-recipe
For python-specific ideas, you might want to look at meta-python: http://cgit.openembedded.org/meta-openembedded/tree/meta-python

I now know that I need a native recipe(pyppd) in my case.

Let's create a pyppd native recipe once, referring to meta-python. I will reply if successful.

Thank you.

Regards
Kwon