chore: export rust flag for musl build

chore/add-python-circleci
Praveen Kumar 2025-01-10 13:31:50 +00:00
parent 8966cfb3d3
commit 11c4c49ad1
No known key found for this signature in database
GPG Key ID: CB9E05780A79EA5A
3 changed files with 9 additions and 2 deletions
.circleci
influxdb3_py_api
influxdb3_server

View File

@ -260,6 +260,13 @@ jobs:
command: |
apt-get update
apt-get install -y python3 python3-dev
- when:
condition:
equal: [ << parameters.target >>, x86_64-unknown-linux-musl ]
steps:
- run:
name: add -crt-satic flag
command: export RUSTFLAGS="-C target-feature=-crt-static"
- run:
name: Install Target
command: rustup target add << parameters.target >>

View File

@ -24,7 +24,7 @@ tokio.workspace = true
[dependencies.pyo3]
version = "0.23.3"
# this is necessary to automatically initialize the Python interpreter
features = ["auto-initialize", "experimental-async"]
features = ["auto-initialize", "experimental-async", "abi3"]
optional = true

View File

@ -81,7 +81,7 @@ unicode-segmentation.workspace = true
[dependencies.pyo3]
version = "0.23.3"
# this is necessary to automatically initialize the Python interpreter
features = ["auto-initialize"]
features = ["auto-initialize", "abi3"]
optional = true
[features]