mirror of
https://github.com/mpv-player/mpv
synced 2024-12-21 22:30:22 +00:00
bootstrap.py: make it work on win32
Apparently, just running ./waf and hoping that it will be run with a Python interpreter doesn't necessarily work. The workaround is pretty simple and reliable.
This commit is contained in:
parent
38c74270c3
commit
73401f92ec
@ -11,7 +11,7 @@ WAFURLS = ["http://ftp.waf.io/pub/release/" + WAFRELEASE,
|
||||
SHA256HASH = "f02035fa5d8814f33f19b2b20d43822ddef6bb39b955ca196c2a247a1f9ffaa8"
|
||||
|
||||
if os.path.exists("waf"):
|
||||
wafver = subprocess.check_output(['./waf', '--version']).decode()
|
||||
wafver = subprocess.check_output([sys.executable, './waf', '--version']).decode()
|
||||
if WAFRELEASE.split('-')[1] == wafver.split(' ')[1]:
|
||||
print("Found 'waf', skipping download.")
|
||||
sys.exit(0)
|
||||
|
Loading…
Reference in New Issue
Block a user