From: Marc-André Lemburg Date: Thu, 28 Feb 2002 09:16:21 +0000 (+0000) Subject: Allow shebang's which use versioned Python binaries. Fixes X-Git-Tag: v2.3c1~6614 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bbea4717bcef2c6409a04263d4a8cfeecebd831e;p=thirdparty%2FPython%2Fcpython.git Allow shebang's which use versioned Python binaries. Fixes bug #521526. --- diff --git a/Lib/distutils/command/build_scripts.py b/Lib/distutils/command/build_scripts.py index bfa33c3a10ae..444284f7cc3f 100644 --- a/Lib/distutils/command/build_scripts.py +++ b/Lib/distutils/command/build_scripts.py @@ -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):