summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc-André Lemburg <mal@egenix.com>2002-02-28 09:16:21 (GMT)
committerMarc-André Lemburg <mal@egenix.com>2002-02-28 09:16:21 (GMT)
commitbbea4717bcef2c6409a04263d4a8cfeecebd831e (patch)
tree8662e5ca1aac25c588a77e7542fd554253791015
parente309504f3e3db01944aec85076be72f30f437e30 (diff)
downloadcpython-bbea4717bcef2c6409a04263d4a8cfeecebd831e.zip
cpython-bbea4717bcef2c6409a04263d4a8cfeecebd831e.tar.gz
cpython-bbea4717bcef2c6409a04263d4a8cfeecebd831e.tar.bz2
Allow shebang's which use versioned Python binaries. Fixes
bug #521526.
-rw-r--r--Lib/distutils/command/build_scripts.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/distutils/command/build_scripts.py b/Lib/distutils/command/build_scripts.py
index bfa33c3..444284f 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):