You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "kevinjqliu (via GitHub)" <gi...@apache.org> on 2026/03/23 17:12:51 UTC
[PR] fix: explicitly set Python interpreter in maturin build to prevent using wrong version [iceberg-rust]
kevinjqliu opened a new pull request, #2277:
URL: https://github.com/apache/iceberg-rust/pull/2277
## Which issue does this PR close?
<!--
We generally require a GitHub issue to be filed for all bug fixes and enhancements and this helps us generate change logs for our releases. You can link an issue to this PR using the GitHub syntax. For example `Closes #123` indicates that this PR will close issue #123.
-->
- Closes #2276.
## What changes are included in this PR?
Maturin auto-discovers Python interpreters inside manylinux Docker containers and may pick an older version (e.g., 3.8) instead of the intended 3.12. The `actions/setup-python` step only installs Python on the host runner, not inside the container.
Fix by passing `-i python3.12` to `maturin build` in all workflows:
- `bindings_python_ci.yml`
- `release_python.yml`
- `release_python_nightly.yml`
`sdist` commands are unchanged since source distributions don't target a specific interpreter.
<!--
Provide a summary of the modifications in this PR. List the main changes such as new features, bug fixes, refactoring, or any other updates.
-->
## Are these changes tested?
<!--
Specify what test covers (unit test, integration test, etc.).
If tests are not included in your PR, please explain why (for example, are they covered by existing tests)?
-->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] fix: explicitly set Python interpreter in maturin build to prevent using wrong version [iceberg-rust]
Posted by "geruh (via GitHub)" <gi...@apache.org>.
geruh commented on code in PR #2277:
URL: https://github.com/apache/iceberg-rust/pull/2277#discussion_r2977039318
##########
.github/workflows/release_python_nightly.yml:
##########
@@ -101,7 +101,7 @@ jobs:
manylinux: ${{ matrix.manylinux || 'auto' }}
working-directory: "bindings/python"
command: build
- args: --release -o dist
+ args: --release -o dist -i python3.12 # Explicitly set interpreter; manylinux containers have multiple Pythons and maturin may pick an older one
Review Comment:
nit: non blocking we can factor out the 3.12 to a variable for future upgrades
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] fix: explicitly set Python interpreter in maturin build to prevent using wrong version [iceberg-rust]
Posted by "geruh (via GitHub)" <gi...@apache.org>.
geruh merged PR #2277:
URL: https://github.com/apache/iceberg-rust/pull/2277
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org