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

fdrake at users.sourceforge.net fdrake at users.sourceforge.net
Thu Mar 25 17:04:56 EST 2004


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

Modified Files:
	build_scripts.py sdist.py 
Log Message:
make sure the default manifest generation includes files identified as
scripts
closes SF bug 796042


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.22
diff -C2 -d -r1.21 -r1.22
*** build_scripts.py	27 Jun 2003 19:33:38 -0000	1.21
--- build_scripts.py	25 Mar 2004 22:04:51 -0000	1.22
***************
*** 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.57
diff -C2 -d -r1.56 -r1.57
*** sdist.py	19 Nov 2002 13:12:28 -0000	1.56
--- sdist.py	25 Mar 2004 22:04:52 -0000	1.57
***************
*** 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