Skip to contentSkip to conversation

any issues with randomly mixing python2 and python3 modules?

DISCUSSION Robert P. J. Day 1 participant 1 message May 14, 2020

lore
Share & tools
lore
#0 lore raw

trying to be brief ... current, rather aged in-house layer (circa
morty) is having user space updated significantly (to thud or zeus or some weird mixture of the two), and part of upgrade is to bring a number of python modules more up to date, and add a number of new ones.

layer already has both python2 and python3 so there is already a mix
of modules versions, and my efforts to upgrade the python content involve a chaotic combination of:

- check version of same module in updated version of same layer
- if possible, replace P2 module with P3 as long as it's equivalent
- cast around for new modules, sometimes finding them in layers like meta-iot-cloud or meta-virtualization or meta-openstack or what have you
- if all else fails, use "pipoe" to (generally correctly) create a python3 recipe file for a new module

unsurprisingly, while the end result builds and installs (still to test), what one ends up with is quite the dog's breakfast of both P2 and P3 modules from various sources.

question: as long as everything works, are there any potential
problems with this kind of mixing?

associated question: given the convenience of using "pipoe" to
create the recipe files, i'm sorely tempted to just bail on trying to find existing recipes in the OE layers, and just let pipoe do all the work. do i really care if the module comes from somewhere other than an "official" OE layer since, once i know it works, i can lock it down until it needs more upgrading.

rday