summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2016-08-20 17:31:07 -0400
committerJason R. Coombs <jaraco@jaraco.com>2016-08-20 17:31:07 -0400
commit774707dce2a31748382aaa019848014a17d0a04a (patch)
treeede0e59b4876e3b60717052b8f4cda8b3f428ca5
parent2d5cb97d40da9083a2765d1993241304722c7e16 (diff)
downloadpython-setuptools-git-774707dce2a31748382aaa019848014a17d0a04a.tar.gz
Issue #27819: Simply default to gztar for sdist formats by default on all platforms.
-rw-r--r--command/sdist.py12
1 files changed, 1 insertions, 11 deletions
diff --git a/command/sdist.py b/command/sdist.py
index 35a06eb0..f1b8d919 100644
--- a/command/sdist.py
+++ b/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: