]> granicus.if.org Git - python/commitdiff
Allow shebang's which use versioned Python binaries. Fixes
authorMarc-André Lemburg <mal@egenix.com>
Thu, 28 Feb 2002 09:16:21 +0000 (09:16 +0000)
committerMarc-André Lemburg <mal@egenix.com>
Thu, 28 Feb 2002 09:16:21 +0000 (09:16 +0000)
bug #521526.

Lib/distutils/command/build_scripts.py

index bfa33c3a10ae6cc413704f58465574de3c73e5d3..444284f7cc3f1ddf380d78dd2fc35c6cd327c0be 100644 (file)
@@ -13,7 +13,7 @@ from distutils.dep_util import newer
 from distutils.util import convert_path
 
 # check if Python is called on the first line with this expression
-first_line_re = re.compile(r'^#!.*python(\s+.*)?$')
+first_line_re = re.compile(r'^#!.*python[0-9.]*(\s+.*)?$')
 
 class build_scripts (Command):