[Python-checkins] python/dist/src/Lib/distutils/command build_scripts.py, 1.21, 1.21.8.1 sdist.py, 1.56, 1.56.14.1

fdrake at users.sourceforge.net fdrake at users.sourceforge.net
Wed Mar 31 22:56:49 EST 2004


Update of /cvsroot/python/python/dist/src/Lib/distutils/command
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11059/Lib/distutils/command

Modified Files:
      Tag: release23-maint
	build_scripts.py sdist.py 
Log Message:
backport fix for SF bug #796042:  sdist ignores scripts argument in setup

The fix adds a get_source_files() method to the build_scripts command
and adds the result to the default manifest list.


Index: build_scripts.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/command/build_scripts.py,v
retrieving revision 1.21
retrieving revision 1.21.8.1
diff -C2 -d -r1.21 -r1.21.8.1
*** build_scripts.py	27 Jun 2003 19:33:38 -0000	1.21
--- build_scripts.py	1 Apr 2004 03:56:46 -0000	1.21.8.1
***************
*** 42,45 ****
--- 42,47 ----
          self.scripts = self.distribution.scripts
  
+     def get_source_files(self):
+         return self.scripts
  
      def run (self):

Index: sdist.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/command/sdist.py,v
retrieving revision 1.56
retrieving revision 1.56.14.1
diff -C2 -d -r1.56 -r1.56.14.1
*** sdist.py	19 Nov 2002 13:12:28 -0000	1.56
--- sdist.py	1 Apr 2004 03:56:46 -0000	1.56.14.1
***************
*** 305,308 ****
--- 305,312 ----
              self.filelist.extend(build_clib.get_source_files())
  
+         if self.distribution.has_scripts():
+             build_scripts = self.get_finalized_command('build_scripts')
+             self.filelist.extend(build_scripts.get_source_files())
+ 
      # add_defaults ()
  




More information about the Python-checkins mailing list