mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Allow shebang's which use versioned Python binaries. Fixes
bug #521526.
This commit is contained in:
parent
e309504f3e
commit
bbea4717bc
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue