summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools/python/python-numpy_1.7.0.bb
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2013-04-13 22:49:41 +0200
committerMartin Jansa <Martin.Jansa@gmail.com>2013-04-15 16:23:17 +0200
commita45830a39bb47a9eab27980d52966226c9504ea4 (patch)
tree001209d9740e8668b2eeeac4212b3561aecebf29 /meta-oe/recipes-devtools/python/python-numpy_1.7.0.bb
parent6f48cf899aed0622f8fb26ffa144656a1143c9c5 (diff)
downloadmeta-openembedded-a45830a39bb47a9eab27980d52966226c9504ea4.tar.gz
recipes: Unify indentation
* This change is only aesthetic (unlike indentation in Python tasks). * Some recipes were using tabs. * Some were using 8 spaces. * Some were using mix or different number of spaces. * Make them consistently use 4 spaces everywhere. * Yocto styleguide advises to use tabs (but the only reason to keep tabs is the need to update a lot of recipes). Lately this advice was also merged into the styleguide on the OE wiki. * Using 4 spaces in both types of tasks is better because it's less error prone when someone is not sure if e.g. do_generate_toolchain_file() is Python or shell task and also allows to highlight every tab used in .bb, .inc, .bbappend, .bbclass as potentially bad (shouldn't be used for indenting of multiline variable assignments and cannot be used for Python tasks). * Don't indent closing quote on multiline variables we're quite inconsistent wheater it's first character on line under opening quote or under first non-whitespace character in previous line. Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Acked-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'meta-oe/recipes-devtools/python/python-numpy_1.7.0.bb')
-rw-r--r--meta-oe/recipes-devtools/python/python-numpy_1.7.0.bb24
1 files changed, 12 insertions, 12 deletions
diff --git a/meta-oe/recipes-devtools/python/python-numpy_1.7.0.bb b/meta-oe/recipes-devtools/python/python-numpy_1.7.0.bb
index 23bec15bbd..a3698d30f4 100644
--- a/meta-oe/recipes-devtools/python/python-numpy_1.7.0.bb
+++ b/meta-oe/recipes-devtools/python/python-numpy_1.7.0.bb
@@ -9,18 +9,18 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/numpy/numpy-${PV}.tar.gz \
9CONFIGFILESURI ?= "" 9CONFIGFILESURI ?= ""
10 10
11CONFIGFILESURI_aarch64 = "file://config.h \ 11CONFIGFILESURI_aarch64 = "file://config.h \
12 file://_numpyconfig.h \ 12 file://_numpyconfig.h \
13 " 13"
14CONFIGFILESURI_arm = "file://config.h \ 14CONFIGFILESURI_arm = "file://config.h \
15 file://numpyconfig.h \ 15 file://numpyconfig.h \
16 " 16"
17CONFIGFILESURI_mipsel = "file://config.h \ 17CONFIGFILESURI_mipsel = "file://config.h \
18 file://numpyconfig.h \ 18 file://numpyconfig.h \
19 " 19"
20 20
21CONFIGFILESURI_i586 = "file://config.h \ 21CONFIGFILESURI_i586 = "file://config.h \
22 file://numpyconfig.h \ 22 file://numpyconfig.h \
23 " 23"
24 24
25S = "${WORKDIR}/numpy-${PV}" 25S = "${WORKDIR}/numpy-${PV}"
26 26
@@ -29,10 +29,10 @@ inherit distutils
29# Make the build fail and replace *config.h with proper one 29# Make the build fail and replace *config.h with proper one
30# This is a ugly, ugly hack - Koen 30# This is a ugly, ugly hack - Koen
31do_compile_prepend() { 31do_compile_prepend() {
32 BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \ 32 BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
33 ${STAGING_BINDIR_NATIVE}/python-native/python setup.py build ${DISTUTILS_BUILD_ARGS} || \ 33 ${STAGING_BINDIR_NATIVE}/python-native/python setup.py build ${DISTUTILS_BUILD_ARGS} || \
34 true 34 true
35 cp ${WORKDIR}/*config.h ${S}/build/$(ls ${S}/build | grep src)/numpy/core/include/numpy/ 35 cp ${WORKDIR}/*config.h ${S}/build/$(ls ${S}/build | grep src)/numpy/core/include/numpy/
36} 36}
37 37
38FILES_${PN}-staticdev += "${PYTHON_SITEPACKAGES_DIR}/numpy/core/lib/*.a" 38FILES_${PN}-staticdev += "${PYTHON_SITEPACKAGES_DIR}/numpy/core/lib/*.a"
@@ -59,4 +59,4 @@ RDEPENDS_${PN} = "python-unittest \
59 python-email \ 59 python-email \
60 python-subprocess \ 60 python-subprocess \
61 python-compression \ 61 python-compression \
62 " 62"