summaryrefslogtreecommitdiff
path: root/classes/distutils-base.bbclass
diff options
context:
space:
mode:
authorMichael 'Mickey' Lauer <mickey@vanille-media.de>2008-12-10 00:18:17 +0100
committerKoen Kooi <koen@openembedded.org>2008-12-10 08:03:03 +0100
commitbea64f3bd904ddc02694e07551cb631ac55f4e23 (patch)
treeed6d572303fdaee14919a5a55989f401c34c7a53 /classes/distutils-base.bbclass
parentb4594d9def6deddccedc729ae2511b5766b0028a (diff)
Python 2.6: here we are. WIP :)
Diffstat (limited to 'classes/distutils-base.bbclass')
-rw-r--r--classes/distutils-base.bbclass5
1 files changed, 2 insertions, 3 deletions
diff --git a/classes/distutils-base.bbclass b/classes/distutils-base.bbclass
index 70155619b3..a08414aadf 100644
--- a/classes/distutils-base.bbclass
+++ b/classes/distutils-base.bbclass
@@ -8,9 +8,8 @@ export STAGING_LIBDIR
def python_dir(d):
import os, bb
staging_incdir = bb.data.getVar( "STAGING_INCDIR", d, 1 )
- if os.path.exists( "%s/python2.5" % staging_incdir ): return "python2.5"
- if os.path.exists( "%s/python2.4" % staging_incdir ): return "python2.4"
- if os.path.exists( "%s/python2.3" % staging_incdir ): return "python2.3"
+ for majmin in "2.6 2.5 2.4 2.3".split():
+ if os.path.exists( "%s/python%s" % ( staging_incdir, majmin ) ): return "python%s" % majmin
raise "No Python in STAGING_INCDIR. Forgot to build python-native ?"
PYTHON_DIR = "${@python_dir(d)}"