Skip to content

Commit 9e2a323

Browse files
Add extension-module features.
1 parent 751011c commit 9e2a323

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/python-upload.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
uses: PyO3/maturin-action@v1
7373
with:
7474
target: ${{ matrix.platform.target }}
75-
args: --release --out dist --find-interpreter
75+
args: --release --features python --out dist --find-interpreter
7676
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
7777
manylinux: musllinux_1_2
7878
- name: Upload wheels
@@ -100,7 +100,7 @@ jobs:
100100
uses: PyO3/maturin-action@v1
101101
with:
102102
target: ${{ matrix.platform.target }}
103-
args: --release --out dist --find-interpreter
103+
args: --release --features python --out dist --find-interpreter
104104
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
105105
- name: Upload wheels
106106
uses: actions/upload-artifact@v4
@@ -126,7 +126,7 @@ jobs:
126126
uses: PyO3/maturin-action@v1
127127
with:
128128
target: ${{ matrix.platform.target }}
129-
args: --release --out dist --find-interpreter
129+
args: --release --features python --out dist --find-interpreter
130130
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
131131
- name: Upload wheels
132132
uses: actions/upload-artifact@v4

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ clap = { version = "4.0.32", features = ["derive"] }
2828
proc-macro2 = { version = "=1.0.89", features=["default", "proc-macro"] }
2929
signal-hook = "0.3.4"
3030
num_enum = "0.7.3"
31-
pyo3 = { version = "0.24.1", optional = true, features = ["multiple-pymethods"] }
31+
pyo3 = { version = "0.24.1", optional = true, features = ["multiple-pymethods", "extension-module"] }
3232
pyo3-log = { version = "0.12.3", optional = true }
3333

3434
[dev-dependencies]

0 commit comments

Comments
 (0)