Bug 629

Summary: poky-init-build-env should check for python version >= 2.6 before doing much
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Aleksandr Koltsoff <aleksandr.koltsoff>
Component: meta-yoctoAssignee: Richard Purdie <richard.purdie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: aleksandr.koltsoff, poky.bs.watcher, poky.watcher, sgw
Version: 0.9   
Target Milestone: 1.0 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Aleksandr Koltsoff 2011-01-05 04:29:59 UTC
bitbake requires 2.6 python at least, which is not easily available on some commonly used distro(s) (Ubuntu Hardy). This check should probably be done in poky-init-build-env, before bitbake is required to proceed, since bitbake in laverne is completely inoperative with python 2.5.

Also see doc bug #628.
Comment 1 Aleksandr Koltsoff 2011-01-28 03:44:18 UTC
bitbake in master (as of 2011-01-28) has fixed the root issue, and displays "RuntimeError: Sorry, python 2.6.0 or later is required for this version of bitbake" for both python 2.5.2 and 2.4.5.

So now there's no need to change poky-init-build-env per se, since the first invocation of bitbake will stop with the correct exception. I'm ok with closing this ticket.
Comment 2 Richard Purdie 2011-02-01 10:05:46 UTC
Agreed, this problem is resolved now bitbake correctly errors with invalid python versions.