mirror of
https://git.yoctoproject.org/poky
synced 2026-02-05 16:28:43 +01:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
9e69963f11
commit
9155b2487d
@@ -0,0 +1,30 @@
|
||||
From c560abff71f98a39a7401f08c2c13dad9ae7f15f Mon Sep 17 00:00:00 2001
|
||||
From: Hongxu Jia <hongxu.jia@windriver.com>
|
||||
Date: Thu, 25 Feb 2016 01:23:32 -0500
|
||||
Subject: [PATCH] remove build path in comments
|
||||
|
||||
It has build path in comments, so remove it.
|
||||
|
||||
Upstream-Status: Inappropriate [openembedded specific]
|
||||
|
||||
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
||||
---
|
||||
numpy/distutils/misc_util.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/numpy/distutils/misc_util.py b/numpy/distutils/misc_util.py
|
||||
index 345e60f..dafb068 100644
|
||||
--- a/numpy/distutils/misc_util.py
|
||||
+++ b/numpy/distutils/misc_util.py
|
||||
@@ -2254,7 +2254,7 @@ def generate_config_py(target):
|
||||
from distutils.dir_util import mkpath
|
||||
mkpath(os.path.dirname(target))
|
||||
f = open(target, 'w')
|
||||
- f.write('# This file is generated by %s\n' % (os.path.abspath(sys.argv[0])))
|
||||
+ f.write('# This file is generated by %s\n' % (os.path.abspath(sys.argv[0]).replace(os.path.abspath('../'),'')))
|
||||
f.write('# It contains system_info results at the time of building this package.\n')
|
||||
f.write('__all__ = ["get_info","show"]\n\n')
|
||||
for k, i in system_info.saved_results.items():
|
||||
--
|
||||
1.9.1
|
||||
|
||||
Reference in New Issue
Block a user