summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python_2.6.6.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/python/python_2.6.6.bb')
-rw-r--r--meta/recipes-devtools/python/python_2.6.6.bb11
1 files changed, 8 insertions, 3 deletions
diff --git a/meta/recipes-devtools/python/python_2.6.6.bb b/meta/recipes-devtools/python/python_2.6.6.bb
index b33e0a9e87..ad0d7a956a 100644
--- a/meta/recipes-devtools/python/python_2.6.6.bb
+++ b/meta/recipes-devtools/python/python_2.6.6.bb
@@ -1,8 +1,11 @@
1require python.inc 1require python.inc
2DEPENDS = "python-native db gdbm openssl readline sqlite3 zlib" 2DEPENDS = "python-native db gdbm openssl readline sqlite3 zlib"
3DEPENDS_sharprom = "python-native db readline zlib gdbm openssl" 3DEPENDS_sharprom = "python-native db readline zlib gdbm openssl"
4PR = "${INC_PR}.0" 4PR = "${INC_PR}.1"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=38fdd546420fab09ac6bd3d8a1c83eb6" 5LIC_FILES_CHKSUM = "file://LICENSE;md5=38fdd546420fab09ac6bd3d8a1c83eb6"
6
7DISTRO_SRC_URI ?= "file://sitecustomize.py"
8DISTRO_SRC_URI_poky-lsb = ""
6SRC_URI = "\ 9SRC_URI = "\
7 http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.bz2 \ 10 http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.bz2 \
8 file://01-use-proper-tools-for-cross-build.patch \ 11 file://01-use-proper-tools-for-cross-build.patch \
@@ -12,7 +15,7 @@ SRC_URI = "\
12 file://05-enable-ctypes-cross-build.patch \ 15 file://05-enable-ctypes-cross-build.patch \
13 file://06-avoid_usr_lib_termcap_path_in_linking.patch \ 16 file://06-avoid_usr_lib_termcap_path_in_linking.patch \
14 file://99-ignore-optimization-flag.patch \ 17 file://99-ignore-optimization-flag.patch \
15 file://sitecustomize.py \ 18 ${DISTRO_SRC_URI} \
16" 19"
17 20
18SRC_URI[md5sum] = "cf4e6881bb84a7ce6089e4a307f71f14" 21SRC_URI[md5sum] = "cf4e6881bb84a7ce6089e4a307f71f14"
@@ -74,7 +77,9 @@ do_install() {
74 BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \ 77 BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
75 DESTDIR=${D} LIBDIR=${libdir} install 78 DESTDIR=${D} LIBDIR=${libdir} install
76 79
77 install -m 0644 ${WORKDIR}/sitecustomize.py ${D}/${libdir}/python${PYTHON_MAJMIN} 80 if [ -e ${WORKDIR}/sitecustomize.py ]; then
81 install -m 0644 ${WORKDIR}/sitecustomize.py ${D}/${libdir}/python${PYTHON_MAJMIN}
82 fi
78 83
79 # remove hardcoded ccache, see http://bugs.openembedded.net/show_bug.cgi?id=4144 84 # remove hardcoded ccache, see http://bugs.openembedded.net/show_bug.cgi?id=4144
80 sed -i -e s,ccache,'$(CCACHE)', ${D}/${libdir}/python${PYTHON_MAJMIN}/config/Makefile 85 sed -i -e s,ccache,'$(CCACHE)', ${D}/${libdir}/python${PYTHON_MAJMIN}/config/Makefile