[Python-checkins] CVS: python/dist/src/Lib/distutils/command build_scripts.py,1.14,1.15

M.-A. Lemburg lemburg@users.sourceforge.net
Thu, 28 Feb 2002 01:16:23 -0800


Update of /cvsroot/python/python/dist/src/Lib/distutils/command
In directory usw-pr-cvs1:/tmp/cvs-serv4824

Modified Files:
	build_scripts.py 
Log Message:
Allow shebang's which use versioned Python binaries. Fixes
bug #521526.



Index: build_scripts.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/command/build_scripts.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** build_scripts.py	11 Dec 2001 20:44:42 -0000	1.14
--- build_scripts.py	28 Feb 2002 09:16:21 -0000	1.15
***************
*** 14,18 ****
  
  # check if Python is called on the first line with this expression
! first_line_re = re.compile(r'^#!.*python(\s+.*)?$')
  
  class build_scripts (Command):
--- 14,18 ----
  
  # check if Python is called on the first line with this expression
! first_line_re = re.compile(r'^#!.*python[0-9.]*(\s+.*)?$')
  
  class build_scripts (Command):