Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip unavailable Python interpreters from pyenv #609

Merged
merged 1 commit into from
Aug 17, 2021
Merged

Conversation

messense
Copy link
Member

If running maturin in venv and some pyenv installed Python interpreters become unavailable because of how pyenv works, maturin build command output looks like this, it simply skips the unavailable interpreters and print a warning

❯ cargo run -- build -m test-crates/pyo3-pure/Cargo.toml
   Compiling maturin v0.11.3-beta.5 (/Users/messense/Projects/maturin)
    Finished dev [unoptimized + debuginfo] target(s) in 3.59s
     Running `target/debug/maturin build -m test-crates/pyo3-pure/Cargo.toml`
🔗 Found pyo3 bindings
⚠️  Warning: skipped unavailable python interpreter 'python3.8' from pyenv
⚠️  Warning: skipped unavailable python interpreter 'python3.10' from pyenv
🐍 Found CPython 3.9 at python3.9
📡 Using build options bindings from pyproject.toml
📦 Built source distribution to /Users/messense/Projects/maturin/test-crates/pyo3-pure/target/wheels/pyo3_pure-2.1.2.tar.gz
    Finished dev [unoptimized + debuginfo] target(s) in 0.01s
📖 Found type stub file at pyo3_pure.pyi
📦 Built wheel for CPython 3.9 to /Users/messense/Projects/maturin/test-crates/pyo3-pure/target/wheels/pyo3_pure-2.1.2-cp39-cp39-macosx_11_0_arm64.whl

Closes #485

@messense messense merged commit cbad1b1 into PyO3:main Aug 17, 2021
@messense messense deleted the pyenv branch August 17, 2021 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

maturin publish fails with pyenv error
2 participants