All of lore.kernel.org
 help / color / mirror / Atom feed
* python bump
@ 2020-11-10 18:44 Marek Belisko
  2020-11-10 19:26 ` [yocto] " Alexander Kanavin
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Marek Belisko @ 2020-11-10 18:44 UTC (permalink / raw)
  To: yocto

Hi,

I'm using poky release thud and would like to bump python3 to 3.8.x. I
took recipe from most recent poky version but I'm hitting issue with
e.g. meson build like:
Log data follows:
| DEBUG: Executing shell function do_configure
| Traceback (most recent call last):
|   File "setup.py", line 25, in <module>
|     from setuptools import setup
| ModuleNotFoundError: No module named 'setuptools'

Are there some other things I need to take care when want to bump python3?

Thanks and BR,

marek

-- 
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer

Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com

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

* Re: [yocto] python bump
  2020-11-10 18:44 python bump Marek Belisko
@ 2020-11-10 19:26 ` Alexander Kanavin
  2020-11-11  7:04 ` Mikko Rapeli
  2020-11-11  7:40 ` Martin Jansa
  2 siblings, 0 replies; 6+ messages in thread
From: Alexander Kanavin @ 2020-11-10 19:26 UTC (permalink / raw)
  To: Marek Belisko; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 1096 bytes --]

You should rather move to a yocto release that has the needed python,
backporting major pieces like that is difficult to impossible.

Alex

On Tue, 10 Nov 2020 at 19:45, Marek Belisko <marek.belisko@gmail.com> wrote:

> Hi,
>
> I'm using poky release thud and would like to bump python3 to 3.8.x. I
> took recipe from most recent poky version but I'm hitting issue with
> e.g. meson build like:
> Log data follows:
> | DEBUG: Executing shell function do_configure
> | Traceback (most recent call last):
> |   File "setup.py", line 25, in <module>
> |     from setuptools import setup
> | ModuleNotFoundError: No module named 'setuptools'
>
> Are there some other things I need to take care when want to bump python3?
>
> Thanks and BR,
>
> marek
>
> --
> as simple and primitive as possible
> -------------------------------------------------
> Marek Belisko - OPEN-NANDRA
> Freelance Developer
>
> Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
> Tel: +421 915 052 184
> skype: marekwhite
> twitter: #opennandra
> web: http://open-nandra.com
>
> 
>
>

[-- Attachment #2: Type: text/html, Size: 1588 bytes --]

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

* Re: [yocto] python bump
  2020-11-10 18:44 python bump Marek Belisko
  2020-11-10 19:26 ` [yocto] " Alexander Kanavin
@ 2020-11-11  7:04 ` Mikko Rapeli
  2020-11-11  7:39   ` Marek Belisko
  2020-11-11  7:40 ` Martin Jansa
  2 siblings, 1 reply; 6+ messages in thread
From: Mikko Rapeli @ 2020-11-11  7:04 UTC (permalink / raw)
  To: marek.belisko; +Cc: yocto

Hi,

On Tue, Nov 10, 2020 at 07:44:39PM +0100, Marek Belisko wrote:
> Hi,
> 
> I'm using poky release thud and would like to bump python3 to 3.8.x. I
> took recipe from most recent poky version but I'm hitting issue with
> e.g. meson build like:
> Log data follows:
> | DEBUG: Executing shell function do_configure
> | Traceback (most recent call last):
> |   File "setup.py", line 25, in <module>
> |     from setuptools import setup
> | ModuleNotFoundError: No module named 'setuptools'
> 
> Are there some other things I need to take care when want to bump python3?

When backporting changes, I find it better to cherry-pick the changes for e.g.
python3 update from master to the old branch that I have to use. In my case I can
not update anything which breaks ABIs on target images but can update all
development tools like python3. Often fixes and/or updates to components which
fail to build are also easy to find from master and cherry-pick, especially if you
don't need to build all recipes from poky but only a certain subset. Over
time this will make your local branch look horrible though, but at least
merges from stable branches will in most cases work, if they are still alive.

But like Alex said, using 3.1 dunfell LTS or 3.2 gatesgarth would be better.

Hope this helps,

-Mikko

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

* Re: [yocto] python bump
  2020-11-11  7:04 ` Mikko Rapeli
@ 2020-11-11  7:39   ` Marek Belisko
  2020-11-11  8:46     ` Mikko Rapeli
  0 siblings, 1 reply; 6+ messages in thread
From: Marek Belisko @ 2020-11-11  7:39 UTC (permalink / raw)
  To: Mikko.Rapeli; +Cc: yocto

On Wed, Nov 11, 2020 at 8:04 AM <Mikko.Rapeli@bmw.de> wrote:
>
> Hi,
>
> On Tue, Nov 10, 2020 at 07:44:39PM +0100, Marek Belisko wrote:
> > Hi,
> >
> > I'm using poky release thud and would like to bump python3 to 3.8.x. I
> > took recipe from most recent poky version but I'm hitting issue with
> > e.g. meson build like:
> > Log data follows:
> > | DEBUG: Executing shell function do_configure
> > | Traceback (most recent call last):
> > |   File "setup.py", line 25, in <module>
> > |     from setuptools import setup
> > | ModuleNotFoundError: No module named 'setuptools'
> >
> > Are there some other things I need to take care when want to bump python3?
>
> When backporting changes, I find it better to cherry-pick the changes for e.g.
> python3 update from master to the old branch that I have to use. In my case I can
> not update anything which breaks ABIs on target images but can update all
> development tools like python3. Often fixes and/or updates to components which
> fail to build are also easy to find from master and cherry-pick, especially if you
> don't need to build all recipes from poky but only a certain subset. Over
> time this will make your local branch look horrible though, but at least
> merges from stable branches will in most cases work, if they are still alive.
Thanks for sharing. But I'm using official poky release from git so I
cannot cherry pick changes.
Or you have clone of poky repo and add changes on top from newest versions?
>
> But like Alex said, using 3.1 dunfell LTS or 3.2 gatesgarth would be better.
Yes but it's not an option for me to do it now ;).
>
> Hope this helps,
>
> -Mikko

Thanks,

Marek

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

* Re: [yocto] python bump
  2020-11-10 18:44 python bump Marek Belisko
  2020-11-10 19:26 ` [yocto] " Alexander Kanavin
  2020-11-11  7:04 ` Mikko Rapeli
@ 2020-11-11  7:40 ` Martin Jansa
  2 siblings, 0 replies; 6+ messages in thread
From: Martin Jansa @ 2020-11-11  7:40 UTC (permalink / raw)
  To: Marek Belisko; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 1695 bytes --]

If you don't really need 3.8 and 3.7.5 from warrior would be good enough
for you, then backporting it to thud was relatively straightforward as
implemented in:
https://github.com/ros/meta-ros/commits/thud/meta-ros-backports-warrior
and as it's in a separate layer it doesn't make your main distro layer more
ugly or difficult to maintain (just drop backports layers when upgrading to
newer release instead of trying to find out all backported bits and pieces
across a whole set of layers).

But even this "small" upgrade from 3.6 to 3.7 introduces ABI change as
shown in:
https://github.com/ros/meta-ros/commit/b8efe1dfcfce63135d846df0106085f83aeaa790
so it's better to upgrade completely to a new release if possible at all.

On Tue, Nov 10, 2020 at 7:45 PM Marek Belisko <marek.belisko@gmail.com>
wrote:

> Hi,
>
> I'm using poky release thud and would like to bump python3 to 3.8.x. I
> took recipe from most recent poky version but I'm hitting issue with
> e.g. meson build like:
> Log data follows:
> | DEBUG: Executing shell function do_configure
> | Traceback (most recent call last):
> |   File "setup.py", line 25, in <module>
> |     from setuptools import setup
> | ModuleNotFoundError: No module named 'setuptools'
>
> Are there some other things I need to take care when want to bump python3?
>
> Thanks and BR,
>
> marek
>
> --
> as simple and primitive as possible
> -------------------------------------------------
> Marek Belisko - OPEN-NANDRA
> Freelance Developer
>
> Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
> Tel: +421 915 052 184
> skype: marekwhite
> twitter: #opennandra
> web: http://open-nandra.com
>
> 
>
>

[-- Attachment #2: Type: text/html, Size: 2418 bytes --]

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

* Re: [yocto] python bump
  2020-11-11  7:39   ` Marek Belisko
@ 2020-11-11  8:46     ` Mikko Rapeli
  0 siblings, 0 replies; 6+ messages in thread
From: Mikko Rapeli @ 2020-11-11  8:46 UTC (permalink / raw)
  To: marek.belisko; +Cc: yocto

On Wed, Nov 11, 2020 at 08:39:42AM +0100, Belisko Marek wrote:
> On Wed, Nov 11, 2020 at 8:04 AM <Mikko.Rapeli@bmw.de> wrote:
> >
> > Hi,
> >
> > On Tue, Nov 10, 2020 at 07:44:39PM +0100, Marek Belisko wrote:
> > > Hi,
> > >
> > > I'm using poky release thud and would like to bump python3 to 3.8.x. I
> > > took recipe from most recent poky version but I'm hitting issue with
> > > e.g. meson build like:
> > > Log data follows:
> > > | DEBUG: Executing shell function do_configure
> > > | Traceback (most recent call last):
> > > |   File "setup.py", line 25, in <module>
> > > |     from setuptools import setup
> > > | ModuleNotFoundError: No module named 'setuptools'
> > >
> > > Are there some other things I need to take care when want to bump python3?
> >
> > When backporting changes, I find it better to cherry-pick the changes for e.g.
> > python3 update from master to the old branch that I have to use. In my case I can
> > not update anything which breaks ABIs on target images but can update all
> > development tools like python3. Often fixes and/or updates to components which
> > fail to build are also easy to find from master and cherry-pick, especially if you
> > don't need to build all recipes from poky but only a certain subset. Over
> > time this will make your local branch look horrible though, but at least
> > merges from stable branches will in most cases work, if they are still alive.
> Thanks for sharing. But I'm using official poky release from git so I
> cannot cherry pick changes.
> Or you have clone of poky repo and add changes on top from newest versions?

Locally, as developer you always have a local branch where you can cherry-pick
changes. With git submodules and repo tooling, you should use a local or
project specific clone of poky. Or move all updates and changes to your own
layers, but I find this doesn't scale and instead branching in git works
better.

Cheers,

-Mikko

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

end of thread, other threads:[~2020-11-11  8:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-10 18:44 python bump Marek Belisko
2020-11-10 19:26 ` [yocto] " Alexander Kanavin
2020-11-11  7:04 ` Mikko Rapeli
2020-11-11  7:39   ` Marek Belisko
2020-11-11  8:46     ` Mikko Rapeli
2020-11-11  7:40 ` Martin Jansa

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.