diff Lib/distutils/command/build_scripts.py @ 22082:55c4d083c309 legacy-trunk

Allow shebang's which use versioned Python binaries. Fixes bug #521526.
author Marc-André Lemburg <mal@egenix.com>
date Thu, 28 Feb 2002 09:16:21 +0000
parents 003dc573b295
children ca87119255eb
line wrap: on
line diff
--- a/Lib/distutils/command/build_scripts.py	Thu Feb 28 07:27:48 2002 +0000
+++ b/Lib/distutils/command/build_scripts.py	Thu Feb 28 09:16:21 2002 +0000
@@ -13,7 +13,7 @@
 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):