Skip to content

Commit

Permalink
chore(python): bundle openssl on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
rasendubi committed Aug 28, 2024
1 parent bdd18dd commit 1ba35f3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ jobs:
args: --release --out dist --find-interpreter --manifest-path ./python-sdk/Cargo.toml
sccache: 'true'
manylinux: auto
before-script-linux: |
dnf install perl-core perl-IPC-Cmd
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
Expand Down
7 changes: 7 additions & 0 deletions python-sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,10 @@ pyo3 = { version = "0.22.0" }
pyo3-log = "0.11.0"
serde-pyobject = "0.4.0"
serde_json = "1.0.125"

# We don't use reqwest directly, so the following overrides it to
# enable feature flag. native-tls-vendored is required to vendor
# OpenSSL on linux builds, so we don't depend on shared libraries.
#
# See: https://github.com/PyO3/maturin-action/discussions/78
reqwest = { version = "*", features = ["native-tls-vendored"] }

0 comments on commit 1ba35f3

Please sign in to comment.