1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-22 06:42:03 +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:
wm4 2015-06-04 11:10:02 +02:00
parent 38c74270c3
commit 73401f92ec

View File

@ -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)