Add Linux/x86_64 to mpy-cross S3 check

This commit is contained in:
James Carr 2021-05-30 00:28:56 +01:00
parent c9a7d6323e
commit 39b1fe192f
No known key found for this signature in database
GPG key ID: 14665603BA81F181

View file

@ -71,7 +71,7 @@ def mpy_cross(mpy_cross_filename, circuitpython_tag, quiet=False):
# Try to pull from S3
uname = os.uname()
s3_url = None
if uname[0] == 'Linux' and uname[4] == 'amd64':
if uname[0] == 'Linux' and uname[4] in ('amd64', 'x86_64'):
s3_url = f"{S3_MPY_PREFIX}mpy-cross.static-amd64-linux-{circuitpython_tag}"
elif uname[0] == 'Linux' and uname[4] == 'armv7l':
s3_url = f"{S3_MPY_PREFIX}mpy-cross.static-raspbian-{circuitpython_tag}"