Bug#870131: autopep8: please make the build reproducible
Chris Lamb
lamby at debian.org
Sun Jul 30 08:19:30 UTC 2017
Source: autopep8
Version: 1.3.2-1~exp1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: environment
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org
Hi,
Whilst working on the Reproducible Builds effort [0], we noticed
that autopep8 could not be built reproducibly.
This is because it uses the generated --help output which (helpfully)
expands the user's home directory, which naturally varies between
builds:
│ │ │ │ │ \fB\-\-global\-config\fR filename
│ │ │ │ │ path to a global pep8 config file; if this file does
│ │ │ │ │ not exist then this is ignored (default: \fI\,/nonexistent\/\fP
│ │ │ │ │ -/first\-build/.config/pep8)
│ │ │ │ │ +/second\-build/.config/pep8)
│ │ │ │ │ .TP
Patch attached that simply hardcodes the path for the documentation.
We seem to be doing this in the README already, so it is not a big
of an issue.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb, Debian Project Leader
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
diff --git a/autopep8.py b/autopep8.py
index fb32e12..a0ececf 100755
--- a/autopep8.py
+++ b/autopep8.py
@@ -3226,7 +3226,7 @@ def create_parser():
default=DEFAULT_CONFIG,
help='path to a global pep8 config file; if this file '
'does not exist then this is ignored '
- '(default: {0})'.format(DEFAULT_CONFIG))
+ '(default: ~/.config)')
parser.add_argument('--ignore-local-config', action='store_true',
help="don't look for and apply local config files; "
'if not passed, defaults are updated with any '
More information about the Reproducible-bugs
mailing list