Fix issue with windows install (#310)
Windows version of python 3 returns platform.machine() in upper case for AMD64 which wasn't being checked for so added .lower(). Doesn't affect Linux python3 which already worked.
This commit is contained in:
2
emsdk
2
emsdk
@@ -82,7 +82,7 @@ if not OSX and (platform.system() == 'Linux' or os.name == 'posix'):
|
|||||||
UNIX = (OSX or LINUX)
|
UNIX = (OSX or LINUX)
|
||||||
|
|
||||||
ARCH = 'unknown'
|
ARCH = 'unknown'
|
||||||
machine = platform.machine()
|
machine = platform.machine().lower() #amd64 was not being recognised when returned as AMD64
|
||||||
if machine.startswith('x64') or machine.startswith('amd64') or machine.startswith('x86_64'):
|
if machine.startswith('x64') or machine.startswith('amd64') or machine.startswith('x86_64'):
|
||||||
ARCH = 'x86_64'
|
ARCH = 'x86_64'
|
||||||
elif machine.endswith('86'):
|
elif machine.endswith('86'):
|
||||||
|
|||||||
Reference in New Issue
Block a user