summaryrefslogtreecommitdiffhomepage
path: root/setup_helper.py
diff options
context:
space:
mode:
authorDorian Pula <dorian.pula@amber-penguin-software.ca>2017-05-23 16:36:21 -0700
committerJeff Forcier <jeff@bitprophet.org>2017-05-31 17:14:40 -0700
commitc1a0974d8886c6a2d46fb69a4a7df382875374c2 (patch)
tree9ee49c23a56b8bed833a081248146f07263a85fd /setup_helper.py
parentad4cddfb3b684b21ddcbf3ac8bc9a29fc0c9c81c (diff)
Fix flake8 for top-level modules.
Diffstat (limited to 'setup_helper.py')
-rw-r--r--setup_helper.py17
1 files changed, 9 insertions, 8 deletions
diff --git a/setup_helper.py b/setup_helper.py
index 9e3834b3..c359a16c 100644
--- a/setup_helper.py
+++ b/setup_helper.py
@@ -77,7 +77,7 @@ def make_tarball(base_name, base_dir, compress='gzip', verbose=0, dry_run=0,
For 'gzip' and 'bzip2' the internal tarfile module will be used.
For 'compress' the .tar will be created using tarfile, and then
we will spawn 'compress' afterwards.
- The output tar file will be named 'base_name' + ".tar",
+ The output tar file will be named 'base_name' + ".tar",
possibly plus the appropriate compression extension (".gz",
".bz2" or ".Z"). Return the output filename.
"""
@@ -87,12 +87,14 @@ def make_tarball(base_name, base_dir, compress='gzip', verbose=0, dry_run=0,
# "create a tree of hardlinks" step! (Would also be nice to
# detect GNU tar to use its 'z' option and save a step.)
- compress_ext = { 'gzip': ".gz",
- 'bzip2': '.bz2',
- 'compress': ".Z" }
+ compress_ext = {
+ 'gzip': ".gz",
+ 'bzip2': '.bz2',
+ 'compress': ".Z",
+ }
# flags for compression program, each element of list will be an argument
- tarfile_compress_flag = {'gzip':'gz', 'bzip2':'bz2'}
+ tarfile_compress_flag = {'gzip': 'gz', 'bzip2': 'bz2'}
compress_flags = {'compress': ["-f"]}
if compress is not None and compress not in compress_ext.keys():
@@ -144,11 +146,10 @@ def make_tarball(base_name, base_dir, compress='gzip', verbose=0, dry_run=0,
_custom_formats = {
'gztar': (make_tarball, [('compress', 'gzip')], "gzip'ed tar-file"),
'bztar': (make_tarball, [('compress', 'bzip2')], "bzip2'ed tar-file"),
- 'ztar': (make_tarball, [('compress', 'compress')], "compressed tar file"),
- 'tar': (make_tarball, [('compress', None)], "uncompressed tar file"),
+ 'ztar': (make_tarball, [('compress', 'compress')], "compressed tar file"),
+ 'tar': (make_tarball, [('compress', None)], "uncompressed tar file"),
}
# Hack in and insert ourselves into the distutils code base
def install_custom_make_tarball():
distutils.archive_util.ARCHIVE_FORMATS.update(_custom_formats)
-