chore(ci): Move pyo3 extension module feature to Python args#50
chore(ci): Move pyo3 extension module feature to Python args#50jiayuasu merged 2 commits intoapache:mainfrom
Conversation
| datafusion-ffi = { workspace = true } | ||
| futures = { workspace = true } | ||
| pyo3 = { version = "0.25.1", features = ["extension-module"] } | ||
| pyo3 = { version = "0.25.1" } |
There was a problem hiding this comment.
Thanks! That was definitely the issue (and I think that the pyprojects.toml value was overridden when I passed --features in the wheel build 😬 )
|
Can we add a plain diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
index 1c57218..1c6bd19 100644
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/rust.yml
@@ -49,7 +49,7 @@ jobs:
rust:
strategy:
matrix:
- name: ["clippy", "docs", "test"]
+ name: ["clippy", "build", "docs", "test"]
name: "${{ matrix.name }}"
runs-on: ubuntu-latest
@@ -117,6 +117,11 @@ jobs:
run: |
cargo clippy --workspace --all-targets --all-features -- -Dwarnings
+ - name: Build
+ if: matrix.name == 'build'
+ run: |
+ cargo build --workspace --all-targets --all-features
+
- name: Test
if: matrix.name == 'test'
run: | |
|
Sure, in parallel maybe? I don't use |
I use |
The pyo3 feature extension-module enables the actual Python extension, which causes problems for some cargo commands of the parent repo (e.g.,
cargo build --all). I had added this so that we could add the s2geography feature optionally for MacOS and Linux builds and they failed without it; however, that can be specified elsewhere.