Skip to content

Commit

Permalink
add MPY for CP 9
Browse files Browse the repository at this point in the history
  • Loading branch information
Neradoc committed Nov 21, 2023
1 parent b0f4a00 commit 94ea4d9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,12 @@ def date_to_version(tag):
SET_VERSION_PATTERN = "\n__version__ = '{}'\n"
THIS_REPOSITORY = "https://github.com/Neradoc/Circuitpython_Keyboard_Layouts.git"

PLATFORMS = ["mpy7", "mpy8"]
PLATFORMS = ["mpy7", "mpy8", "mpy9"]
PLATFORM_NAMES = {
"py": "py",
"mpy7": "7.x-mpy",
"mpy8": "8.x-mpy",
"mpy9": "9.x-mpy",
}

# https://adafruit-circuit-python.s3.amazonaws.com/index.html?prefix=bin/mpy-cross/
Expand All @@ -95,18 +96,22 @@ def date_to_version(tag):
"darwin": {
"mpy7": ["macos-11", "mpy-cross-macos-11-8.0.2-universal"],
"mpy8": ["macos-11", "mpy-cross-macos-11-8.0.2-universal"],
"mpy9": ["macos-11", "mpy-cross-macos-11-9.0.0-alpha.2-universal"],
},
"linux": {
"mpy7": ["linux-amd64", "mpy-cross.static-amd64-linux-7.3.3"],
"mpy8": ["linux-amd64", "mpy-cross.static-amd64-linux-8.0.2"],
"mpy9": ["linux-amd64", "mpy-cross-linux-amd64-9.0.0-alpha.2.static"],
},
"win32": {
"mpy7": ["windows", "mpy-cross.static-x64-windows-7.3.3.exe"],
"mpy8": ["windows", "mpy-cross-windows-8.1.0-beta.0.static.exe"],
"mpy9": ["windows", "mpy-cross-windows-9.0.0-alpha.2.static.exe"],
},
"raspbian": {
"mpy7": ["linux-raspbian", "mpy-cross.static-raspbian-7.3.0"],
"mpy8": ["linux-raspbian", "mpy-cross.static-raspbian-8.0.2"],
"mpy9": ["linux-raspbian", "mpy-cross-linux-raspbian-9.0.0-alpha.2.static-raspbian"],
},
}
MPYCROSS = MPYCROSSES[sys.platform]
Expand Down

0 comments on commit 94ea4d9

Please sign in to comment.