Bug 629 - poky-init-build-env should check for python version >= 2.6 before doing much
Summary: poky-init-build-env should check for python version >= 2.6 before doing much
Status: RESOLVED FIXED
Alias: None
Product: Meta-yocto
Classification: Build System, Metadata & Runtime
Component: meta-yocto (show other bugs)
Version: 0.9
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.0 M3
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2011-01-05 04:29 UTC by Aleksandr Koltsoff
Modified: 2011-02-01 10:05 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.