Allow shebang's which use versioned Python binaries. Fixes
bug #521526.
This commit is contained in:
parent
e309504f3e
commit
bbea4717bc
|
@ -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…
Reference in New Issue