Skip to content

Commit bbea471

Browse files
committed
Allow shebang's which use versioned Python binaries. Fixes
bug #521526.
1 parent e309504 commit bbea471

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/distutils/command/build_scripts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from distutils.util import convert_path
1414

1515
# check if Python is called on the first line with this expression
16-
first_line_re = re.compile(r'^#!.*python(\s+.*)?$')
16+
first_line_re = re.compile(r'^#!.*python[0-9.]*(\s+.*)?$')
1717

1818
class build_scripts (Command):
1919

0 commit comments

Comments
 (0)