Skip to contentSkip to conversation

Including python libs

DISCUSSION itodroid 2 participants 2 messages Dec 30, 2011

lore
Share & tools
lore

itodroid

author
#0 lore raw

Greetings all!

I'm having a little trouble figuring out the "right" way to include some extra python libraries into a recipe, and for the life of me, I cannot figure it out. I'm using Python2.6 and I have a few python scripts that depend on httplib. I've found that httplib.py is contained within "python-2.6.6-ml12.2".

In my recipe, I've tried "include python-2.6.6ml12.2" and also "DEPEND += python-2.6.6ml12.2", neither of which actually include the /usr/lib/python2.6/<python libs> into my rootfs.

I believe that httplib is part of python-netclient which appears to be provided by python-2.6-manifest.inc. I've also tried including this manifest file into my recipe, but still, I cannot get the libraries into my rootfs.

Can anyone provide some insight as to what I'm doing wrong? Thanks in advance.

#1 lore raw
Quoted 12 lines · itodroid

Greetings all!

I'm having a little trouble figuring out the "right" way to include some extra python libraries into a recipe, and for the life of me, I cannot figure it out. I'm using Python2.6 and I have a few python scripts that depend on httplib. I've found that httplib.py is contained within "python-2.6.6-ml12.2".

In my recipe, I've tried "include python-2.6.6ml12.2" and also "DEPEND += python-2.6.6ml12.2", neither of which actually include the /usr/lib/python2.6/<python libs> into my rootfs.

Quoted 7 lines

I believe that httplib is part of python-netclient which appears to be provided by python-2.6-manifest.inc. I've also tried including this manifest file into my recipe, but still, I cannot get the libraries into my rootfs.

Can anyone provide some insight as to what I'm doing wrong? Thanks in advance.

If it's part of python itself then
RDEPENDS_${PN} += "python"
if it's in python-netclient then
RDEPENDS_${PN} += "python-netclient"

Regards,

Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]