Source: python-numpy
Version: 1:1.12.1-3
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: buildpath toolchain
X-Debbugs-Cc: reproducible-b...@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
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
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():

Reply via email to