[yocto] Creating a python recipe with devtool

Giordon Stark gstark at cern.ch
Thu Feb 8 06:04:57 PST 2018


This also works with the tarball URLs from pypi which is a bit easier to
manage (version-wise).

Giordon

On Wed, Feb 7, 2018 at 7:10 AM Alan Martinovic <alan.martinovic at senic.com>
wrote:

> Thanks, that worked!
>
> Steps:
>
> # On the build server
> devtool create-workspace
> devtool add  https://github.com/jruere/multiprocessing-logging
> devtool
> devtool edit-recipe multiprocessing-logging
>     # Change for building for python3
>        inherit setuptools -> inherit setuptools3
>     # delete the RDEPENDS that were wrongly detected
> devtool build multiprocessing-logging
> #Prerequisit: ssh root at 10.10.10.100
> devtool deploy-target multiprocessing-logging root at 10.10.10.100
>
> #On the 10.10.10.100 device
> python3
> import python3-multiprocessing_logging
>
> #On the build server. Finishing
> devtool finish multiprocessing-logging
> /home/alan/meta-myproject/recipes-devtools/python
>
> On Wed, Feb 7, 2018 at 1:25 PM, Alexander Kanavin
> <alexander.kanavin at linux.intel.com> wrote:
> > On 02/07/2018 02:17 PM, Alan Martinovic wrote:
> >>
> >>      devtool add
> >>
> >>
> https://pypi.python.org/packages/65/eb/1c3db9596eddb2bd1d1f8153dcaf2d9f2c7e144f4832d1b1449f681a0a7a/multiprocessing_logging-0.2.6-py2.py3-none-any.whl#md5=b7783a8c449135e5bb344b3f0caa3522
> >
> >
> > I don't think we support .whl format at the moment. You need to fetch
> > sources directly from github.
> >
> >
> > Alex
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
-- 
Giordon Stark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20180208/adeb71b9/attachment.html>


More information about the yocto mailing list