summaryrefslogtreecommitdiff
path: root/setuptools/command/sdist.py
diff options
context:
space:
mode:
authorLennart Regebro <regebro@gmail.com>2012-08-22 16:36:29 +0200
committerLennart Regebro <regebro@gmail.com>2012-08-22 16:36:29 +0200
commitec0ed85656b96812402439fa23c877fd27b99de5 (patch)
tree42bfde385ac965e3ddb17d4aafdefb75ba9219a9 /setuptools/command/sdist.py
parentcafaa3bd07185df0c17a19edee8820494d34267c (diff)
downloadpython-setuptools-git-ec0ed85656b96812402439fa23c877fd27b99de5.tar.gz
Issue #313: Support for sdist subcommands (Python 2.7)
--HG-- branch : distribute extra : rebase_source : 5461cca20f4c91fec21b69128f76f6e6a0df205c
Diffstat (limited to 'setuptools/command/sdist.py')
-rwxr-xr-xsetuptools/command/sdist.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/setuptools/command/sdist.py b/setuptools/command/sdist.py
index 16d3c37b..91c4fd1b 100755
--- a/setuptools/command/sdist.py
+++ b/setuptools/command/sdist.py
@@ -147,7 +147,17 @@ class sdist(_sdist):
self.filelist = ei_cmd.filelist
self.filelist.append(os.path.join(ei_cmd.egg_info,'SOURCES.txt'))
self.check_readme()
- self.check_metadata()
+
+ # Run sub commands
+ for cmd_name in self.get_sub_commands():
+ self.run_command(cmd_name)
+
+ # Call check_metadata only if no 'check' command
+ # (distutils <= 2.6)
+ import distutils.command
+ if 'check' not in distutils.command.__all__:
+ self.check_metadata()
+
self.make_distribution()
dist_files = getattr(self.distribution,'dist_files',[])