diff mbox series

bitbake: Bump minimum version requirement to 3.8

Message ID 20221211173345.22120-1-richard.purdie@linuxfoundation.org
State New
Headers show
Series bitbake: Bump minimum version requirement to 3.8 | expand

Commit Message

Richard Purdie Dec. 11, 2022, 5:33 p.m. UTC
Most of our older distros with python older than 3.8 already need buildtools
tarballs apart from Ubuntu 18.04. 3.8 allows us to fix a few things, tidy
code in places and is widely available or can be obtained with buildtools.
Therefore update our minimum version to 3.8.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 lib/bb/__init__.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Peter Kjellerstedt Dec. 12, 2022, 8:03 a.m. UTC | #1
> -----Original Message-----
> From: bitbake-devel@lists.openembedded.org <bitbake-devel@lists.openembedded.org> On Behalf Of Richard Purdie
> Sent: den 11 december 2022 18:34
> To: bitbake-devel@lists.openembedded.org
> Subject: [bitbake-devel] [PATCH] bitbake: Bump minimum version requirement to 3.8

Change "version" to "Python version".

//Peter
Quentin Schulz Dec. 12, 2022, 9:43 a.m. UTC | #2
Hi Richard,

Cc'ing Michael on this since we'll need a doc update 
(yocto-docs/documentation/poky.yaml.in) once this gets merged.

Cheers,
Quentin

On 12/12/22 09:03, Peter Kjellerstedt wrote:
>> -----Original Message-----
>> From: bitbake-devel@lists.openembedded.org <bitbake-devel@lists.openembedded.org> On Behalf Of Richard Purdie
>> Sent: den 11 december 2022 18:34
>> To: bitbake-devel@lists.openembedded.org
>> Subject: [bitbake-devel] [PATCH] bitbake: Bump minimum version requirement to 3.8
> 
> Change "version" to "Python version".
> 
> //Peter
> 
> 
> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#14176): https://urldefense.com/v3/__https://lists.openembedded.org/g/bitbake-devel/message/14176__;!!OOPJP91ZZw!hMYvyGt6WMGQXlkYLe3EHIgvHzuuiuzQOCISmXP8VB_dAzvg3ewL0sK9vYnoCk04q7JPacI855Y7ERTm_KbQO2ELLtq-8fBxnVOJBbIh$
> Mute This Topic: https://urldefense.com/v3/__https://lists.openembedded.org/mt/95603808/6293953__;!!OOPJP91ZZw!hMYvyGt6WMGQXlkYLe3EHIgvHzuuiuzQOCISmXP8VB_dAzvg3ewL0sK9vYnoCk04q7JPacI855Y7ERTm_KbQO2ELLtq-8fBxnai1SxZF$
> Group Owner: bitbake-devel+owner@lists.openembedded.org
> Unsubscribe: https://urldefense.com/v3/__https://lists.openembedded.org/g/bitbake-devel/unsub__;!!OOPJP91ZZw!hMYvyGt6WMGQXlkYLe3EHIgvHzuuiuzQOCISmXP8VB_dAzvg3ewL0sK9vYnoCk04q7JPacI855Y7ERTm_KbQO2ELLtq-8fBxnU7p1QLI$  [quentin.schulz@theobroma-systems.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
diff mbox series

Patch

diff --git a/lib/bb/__init__.py b/lib/bb/__init__.py
index 99cb5a0101..4e90964173 100644
--- a/lib/bb/__init__.py
+++ b/lib/bb/__init__.py
@@ -12,8 +12,8 @@ 
 __version__ = "2.2.0"
 
 import sys
-if sys.version_info < (3, 6, 0):
-    raise RuntimeError("Sorry, python 3.6.0 or later is required for this version of bitbake")
+if sys.version_info < (3, 8, 0):
+    raise RuntimeError("Sorry, python 3.8.0 or later is required for this version of bitbake")
 
 
 class BBHandledException(Exception):