Bug#872459: python-numpy: please make the output reproducible
Chris Lamb
lamby at debian.org
Thu Aug 17 16:29:53 UTC 2017
Source: python-numpy
Version: 1:1.12.1-3
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: buildpath toolchain
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org
Hi,
Whilst working on the Reproducible Builds effort [0], we noticed
that python-numpy generates output that is not reproducible. This
affects packages such as numexpr.
Patch attached.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
diff --git a/numpy/distutils/misc_util.py b/numpy/distutils/misc_util.py
index a0844b9..4eae745 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.basename(sys.argv[0])))
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():
More information about the Reproducible-bugs
mailing list