Skip to content

Commit

Permalink
Build dagster-cloud-action PEX for more platforms
Browse files Browse the repository at this point in the history
Summary:
Make our dagster-cloud-cli work on github action runners that have python versions other than 3.8 installed.
  • Loading branch information
gibsondan committed Oct 2, 2024
1 parent 468ba21 commit d8d3cbe
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
Binary file modified generated/gha/dagster-cloud.pex
Binary file not shown.
18 changes: 15 additions & 3 deletions scripts/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,16 @@ def update_dagster_cloud_pex(
info("Using PyPI for dagster package")
dagster_pkg = "dagster"

platform_args = []

# each of the default versions used by ubuntu 20.04 / 22.04 / 24.04 respectively
for py_version in ["38", "310", "312"]:
platform_args.extend(
[
f"--platform=manylinux2014_x86_64-cp-{py_version}-cp{py_version}",
]
)

info("Building generated/gha/dagster-cloud.pex")
args = [
"pex",
Expand All @@ -112,12 +122,14 @@ def update_dagster_cloud_pex(
dagster_pkg,
"PyGithub",
"-o=dagster-cloud.pex",
"--platform=manylinux2014_x86_64-cp-38-cp38",
"--platform=macosx_12_0_x86_64-cp-38-cp38",
"--platform=macosx_12_0_arm64-cp-38-cp38",
*platform_args,
"--platform=macosx_12_0_x86_64-cp-311-cp311",
"--platform=macosx_12_0_arm64-cp-311-cp311",
"--pip-version=23.0",
"--resolver-version=pip-2020-resolver",
"--venv=prepend",
# use a /bin/sh entrypoint that is better at choosing a python interpreter to use
"--sh-boot",
"-v",
]
print(f"Running {args}")
Expand Down

0 comments on commit d8d3cbe

Please sign in to comment.