Commits

Lennart Regebro committed 5e62f38 Draft

Issue #313: Support for sdist subcommands (Python 2.7)

Comments (0)

Files changed (2)

   before testing it.
 * Issue #306: Even if 2to3 is used, we build in-place under Python 2.
 * Issue #307: Prints the full path when .svn/entries is broken.
+* Issue #313: Support for sdist subcommands (Python 2.7)
 
 ------
 0.6.28

setuptools/command/sdist.py

         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',[])