diff options
author | Hongxu Jia <hongxu.jia@windriver.com> | 2016-02-25 20:45:01 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-03-12 22:11:47 +0000 |
commit | 9155b2487dd3a37322ad6575e096ee93138b9ce6 (patch) | |
tree | 6de905905f363d3cad8c03253c2ab6868d24e71f /meta/recipes-devtools/python/python-numpy/remove-build-path-in-comments.patch | |
parent | 9e69963f119eb343d79206f4cfd173b3cece76c9 (diff) | |
download | poky-9155b2487dd3a37322ad6575e096ee93138b9ce6.tar.gz |
python-numpy: fix buildpaths QA issue
Remove build path in comments:
Without the fix:
...
|This file is generated by /buildarea/raid0/hjia/build-20160225-yocto-
buildpath/tmp/work/core2-64-poky-linux/python-numpy/1.10.4-r0/numpy
-1.10.4/setup.py
...
With the fix:
...
|This file is generated by /numpy-1.10.4/setup.py
...
[YOCTO #7058]
(From OE-Core rev: 06835e109264b0472f4a47e33a74b0c872ebd7f1)
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python/python-numpy/remove-build-path-in-comments.patch')
-rw-r--r-- | meta/recipes-devtools/python/python-numpy/remove-build-path-in-comments.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python-numpy/remove-build-path-in-comments.patch b/meta/recipes-devtools/python/python-numpy/remove-build-path-in-comments.patch new file mode 100644 index 0000000000..eb8a71a2e2 --- /dev/null +++ b/meta/recipes-devtools/python/python-numpy/remove-build-path-in-comments.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | From c560abff71f98a39a7401f08c2c13dad9ae7f15f Mon Sep 17 00:00:00 2001 | ||
2 | From: Hongxu Jia <hongxu.jia@windriver.com> | ||
3 | Date: Thu, 25 Feb 2016 01:23:32 -0500 | ||
4 | Subject: [PATCH] remove build path in comments | ||
5 | |||
6 | It has build path in comments, so remove it. | ||
7 | |||
8 | Upstream-Status: Inappropriate [openembedded specific] | ||
9 | |||
10 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
11 | --- | ||
12 | numpy/distutils/misc_util.py | 2 +- | ||
13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
14 | |||
15 | diff --git a/numpy/distutils/misc_util.py b/numpy/distutils/misc_util.py | ||
16 | index 345e60f..dafb068 100644 | ||
17 | --- a/numpy/distutils/misc_util.py | ||
18 | +++ b/numpy/distutils/misc_util.py | ||
19 | @@ -2254,7 +2254,7 @@ def generate_config_py(target): | ||
20 | from distutils.dir_util import mkpath | ||
21 | mkpath(os.path.dirname(target)) | ||
22 | f = open(target, 'w') | ||
23 | - f.write('# This file is generated by %s\n' % (os.path.abspath(sys.argv[0]))) | ||
24 | + f.write('# This file is generated by %s\n' % (os.path.abspath(sys.argv[0]).replace(os.path.abspath('../'),''))) | ||
25 | f.write('# It contains system_info results at the time of building this package.\n') | ||
26 | f.write('__all__ = ["get_info","show"]\n\n') | ||
27 | for k, i in system_info.saved_results.items(): | ||
28 | -- | ||
29 | 1.9.1 | ||
30 | |||