All of lore.kernel.org
 help / color / mirror / Atom feed
* Python 2 and Python 3 module recipes
@ 2015-08-16  0:26 Dominic Sacré
  2015-08-16  0:40 ` Khem Raj
  0 siblings, 1 reply; 3+ messages in thread
From: Dominic Sacré @ 2015-08-16  0:26 UTC (permalink / raw)
  To: openembedded-devel

Hi,

I'm trying to build a Python 3 application which depends on some modules
that are already packaged in OE for Python 2, but not for Python 3.
Since OE currently has virtually no Python 3 module recipes, this makes
me wonder what the best approach to create these recipes would be.

In most cases, I could just copy a Python 2 recipe, change the name from
"python-foo" to "python3-foo", and replace "inherit distutils" with
"inherit distutils3". However that would create a lot of duplication,
and might turn into a maintenance nightmare.

Do you have a suggestion what the right course of action would be? Move
most of the recipes' content to .inc files that can then be included by
both Python 2 and Python 3 recipes? Or maybe create a .bbclass that
would build both versions from the same recipe?
Is there any functionality already in place that would simplify this task?


Dominic


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-08-17 19:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-16  0:26 Python 2 and Python 3 module recipes Dominic Sacré
2015-08-16  0:40 ` Khem Raj
2015-08-17 18:57   ` Dominic Sacré

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.