summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2016-08-20 21:31:07 (GMT)
committerJason R. Coombs <jaraco@jaraco.com>2016-08-20 21:31:07 (GMT)
commita47ca08a360bd1dc3b2b4c53bd757090f979be0f (patch)
tree13d7bcf997036da6b4880618f7dd75608a2969cb /Lib/distutils/command
parent3766572a488562b06e54d2484fb184eb3c87a9e0 (diff)
downloadcpython-a47ca08a360bd1dc3b2b4c53bd757090f979be0f.zip
cpython-a47ca08a360bd1dc3b2b4c53bd757090f979be0f.tar.gz
cpython-a47ca08a360bd1dc3b2b4c53bd757090f979be0f.tar.bz2
Issue #27819: Simply default to gztar for sdist formats by default on all platforms.
Diffstat (limited to 'Lib/distutils/command')
-rw-r--r--Lib/distutils/command/sdist.py12
1 files changed, 1 insertions, 11 deletions
diff --git a/Lib/distutils/command/sdist.py b/Lib/distutils/command/sdist.py
index 35a06eb..f1b8d91 100644
--- a/Lib/distutils/command/sdist.py
+++ b/Lib/distutils/command/sdist.py
@@ -91,9 +91,6 @@ class sdist(Command):
negative_opt = {'no-defaults': 'use-defaults',
'no-prune': 'prune' }
- default_format = {'posix': 'gztar',
- 'nt': 'zip' }
-
sub_commands = [('check', checking_metadata)]
def initialize_options(self):
@@ -110,7 +107,7 @@ class sdist(Command):
self.manifest_only = 0
self.force_manifest = 0
- self.formats = None
+ self.formats = ['gztar']
self.keep_temp = 0
self.dist_dir = None
@@ -126,13 +123,6 @@ class sdist(Command):
self.template = "MANIFEST.in"
self.ensure_string_list('formats')
- if self.formats is None:
- try:
- self.formats = [self.default_format[os.name]]
- except KeyError:
- raise DistutilsPlatformError(
- "don't know how to create source distributions "
- "on platform %s" % os.name)
bad_format = archive_util.check_archive_formats(self.formats)
if bad_format: