[Distutils] patch to build_py.py

Joe Van Andel vanandel@ucar.edu
Tue, 01 Feb 2000 15:11:00 -0700


If the user mis-types a file name in the  py_modules list, the current
release gets a runtime error, while trying to print the warning
message.  The following patch properly produces the error message.

*** build_py.orig       Sun Dec 12 10:03:59 1999
--- build_py.py Tue Feb  1 15:05:10 2000
***************
*** 159,166 ****
  
      def check_module (self, module, module_file):
          if not os.path.isfile (module_file):
!             self.warn ("file %s (for module %s) not found" %
!                        module_file, module)
              return 0
          else:
              return 1
--- 159,166 ----
  
      def check_module (self, module, module_file):
          if not os.path.isfile (module_file):
!             self.warn ("file %s (for module %s) not found" % 
!                            (module_file, module))
              return 0
          else:
              return 1

-- 
Joe VanAndel  	          
National Center for Atmospheric Research
http://www.atd.ucar.edu/~vanandel/
Internet: vanandel@ucar.edu