1
0
forked from brl/citadel
citadel/meta/recipes-devtools/python-numpy/files/remove-build-path-in-comments.patch
brl 098b8f982b Squashed 'poky/' content from commit 4469acdf1d
git-subtree-dir: poky
git-subtree-split: 4469acdf1d0338220f3fe2ecb5e079eea6fda375
2017-12-04 16:35:29 -05:00

31 lines
1.2 KiB
Diff

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