[Python-checkins] distutils2: passing the distribution object as well.

tarek.ziade python-checkins at python.org
Sun Nov 7 22:23:50 CET 2010


tarek.ziade pushed 101bd15a0198 to distutils2:

http://hg.python.org/distutils2/rev/101bd15a0198
changeset:   806:101bd15a0198
tag:         tip
user:        Tarek Ziade <tarek at ziade.org>
date:        Sun Nov 07 22:23:42 2010 +0100
summary:     passing the distribution object as well.
files:       distutils2/command/sdist.py, distutils2/tests/test_command_sdist.py

diff --git a/distutils2/command/sdist.py b/distutils2/command/sdist.py
--- a/distutils2/command/sdist.py
+++ b/distutils2/command/sdist.py
@@ -204,7 +204,7 @@
 
         # call manifest builders, if any.
         for builder in self.manifest_builders:
-            builder(self.filelist)
+            builder(self.distribution, self.filelist)
 
         if self.prune:
             self.prune_file_list()
diff --git a/distutils2/tests/test_command_sdist.py b/distutils2/tests/test_command_sdist.py
--- a/distutils2/tests/test_command_sdist.py
+++ b/distutils2/tests/test_command_sdist.py
@@ -56,7 +56,7 @@
 somecode%(sep)sdoc.txt
 """
 
-def builder(filelist):
+def builder(dist, filelist):
     filelist.append('bah')
 
 

--
Repository URL: http://hg.python.org/distutils2


More information about the Python-checkins mailing list