Skip to content

Commit

Permalink
Revert python distributions to pyoxidizer bundled ones
Browse files Browse the repository at this point in the history
  • Loading branch information
gi0baro committed Apr 15, 2024
1 parent bf982c7 commit 1338578
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 24 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
- name: Build release
run: |
make build_linux
build/x86_64-unknown-linux-musl/release/install/noir --version
make pack_linux BUILD_VERSION=${{ steps.build_version.outputs.version }}
- name: Upload release file
uses: actions/upload-artifact@v3
Expand Down
29 changes: 5 additions & 24 deletions pyoxidizer.bzl
Original file line number Diff line number Diff line change
@@ -1,28 +1,9 @@
def make_exe():
distributions = {
"x86_64-unknown-linux-musl": PythonDistribution(
sha256="e711f6a063efb665e425f4f071c75f2a8c107f599c99130ecfff2b0532f7b804",
url="https://github.com/indygreg/python-build-standalone/releases/download/20240224/cpython-3.10.13+20240224-x86_64-unknown-linux-musl-noopt-full.tar.zst",
),
"aarch64-unknown-linux-gnu": PythonDistribution(
sha256="ab7195f04182d94aa675e738b6cf8affd4e897e7be7f02224cf36865194be344",
url="https://github.com/indygreg/python-build-standalone/releases/download/20240224/cpython-3.10.13+20240224-aarch64-unknown-linux-gnu-noopt-full.tar.zst"
),
"x86_64-apple-darwin": PythonDistribution(
sha256="5c6d2b375f3944dc156c55544a13afa3ba0dc4bbc492135a3b7004a71f612cfd",
url="https://github.com/indygreg/python-build-standalone/releases/download/20221220/cpython-3.10.9%2B20221220-x86_64-apple-darwin-pgo-full.tar.zst"
),
"aarch64-apple-darwin": PythonDistribution(
sha256="5f90a26379f423de40c1be6c06fbc68b82f8b09f43e657932a48df30d3f5dba4",
url="https://github.com/indygreg/python-build-standalone/releases/download/20240224/cpython-3.10.13+20240224-aarch64-apple-darwin-pgo-full.tar.zst"
),
"x86_64-pc-windows-msvc": PythonDistribution(
sha256="6a2c8f37509556e5d463b1f437cdf7772ebd84cdf183c258d783e64bb3109505",
url="https://github.com/indygreg/python-build-standalone/releases/download/20240224/cpython-3.10.13+20240224-x86_64-pc-windows-msvc-shared-pgo-full.tar.zst"
)
}

dist = distributions[BUILD_TARGET_TRIPLE]
if BUILD_TARGET_TRIPLE == "x86_64-unknown-linux-musl":
flavor = "standalone_static"
else:
flavor = "standalone"
dist = default_python_distribution(python_version="3.10", flavor=flavor)

policy = dist.make_python_packaging_policy()
policy.resources_location_fallback = "filesystem-relative:lib"
Expand Down

0 comments on commit 1338578

Please sign in to comment.