mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-08 02:24:04 +00:00
Simplify unify_aarch64
This commit is contained in:
@@ -20,13 +20,9 @@ LOGGER = logging.getLogger(__name__)
|
|||||||
|
|
||||||
def unify_aarch64(platform: str) -> str:
|
def unify_aarch64(platform: str) -> str:
|
||||||
"""
|
"""
|
||||||
Renames arm64->aarch64 to support local builds on on aarch64 Macs
|
Renames arm64->aarch64 to support local builds on aarch64 Macs
|
||||||
"""
|
"""
|
||||||
return {
|
return {"arm64": "aarch64"}.get(platform, platform)
|
||||||
"aarch64": "aarch64",
|
|
||||||
"arm64": "aarch64",
|
|
||||||
"x86_64": "x86_64",
|
|
||||||
}[platform]
|
|
||||||
|
|
||||||
|
|
||||||
def get_latest_julia_url() -> tuple[str, str]:
|
def get_latest_julia_url() -> tuple[str, str]:
|
||||||
|
@@ -7,13 +7,9 @@ ALL_PLATFORMS = {"x86_64", "aarch64"}
|
|||||||
|
|
||||||
def unify_aarch64(platform: str) -> str:
|
def unify_aarch64(platform: str) -> str:
|
||||||
"""
|
"""
|
||||||
Renames arm64->aarch64 to support local builds on on aarch64 Macs
|
Renames arm64->aarch64 to support local builds on aarch64 Macs
|
||||||
"""
|
"""
|
||||||
return {
|
return {"arm64": "aarch64"}.get(platform, platform)
|
||||||
"aarch64": "aarch64",
|
|
||||||
"arm64": "aarch64",
|
|
||||||
"x86_64": "x86_64",
|
|
||||||
}[platform]
|
|
||||||
|
|
||||||
|
|
||||||
def get_platform() -> str:
|
def get_platform() -> str:
|
||||||
|
Reference in New Issue
Block a user