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

Check path-like interpreter arguments when cross compiling #1459

Merged
merged 1 commit into from
Feb 3, 2023

Conversation

messense
Copy link
Member

@messense messense commented Feb 3, 2023

For example: maturin build -m test-crates/pyo3-mixed/Cargo.toml -i ./python3.10 --target aarch64-unknown-linux-gnu, where ./python3.10 doesn't exists:

Before

🍹 Building a mixed python/rust project
🔗 Found pyo3 bindings
💥 maturin failed
  Caused by: Unsupported Python interpreter: /python3.10

After

🍹 Building a mixed python/rust project
🔗 Found pyo3 bindings
💥 maturin failed
  Caused by: /python3.10 is not a valid python interpreter

Or it exists but isn't runnable:

Before

🍹 Building a mixed python/rust project
🔗 Found pyo3 bindings
💥 maturin failed
  Caused by: Unsupported Python interpreter: /Users/messense/Downloads/python/bin/python3.10

After

🍹 Building a mixed python/rust project
🔗 Found pyo3 bindings
/Users/messense/Downloads/python/bin/python3.10: /Users/messense/Downloads/python/bin/python3.10: cannot execute binary file

💥 maturin failed
  Caused by: Trying to get metadata from the python interpreter '/Users/messense/Downloads/python/bin/python3.10' failed

See also #1433 (comment)

@netlify
Copy link

netlify bot commented Feb 3, 2023

Deploy Preview for maturin-guide ready!

Name Link
🔨 Latest commit 8f8803b
🔍 Latest deploy log https://app.netlify.com/sites/maturin-guide/deploys/63dcd6ae376f480008673aaa
😎 Deploy Preview https://deploy-preview-1459--maturin-guide.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@messense
Copy link
Member Author

messense commented Feb 3, 2023

bors r+

bors bot added a commit that referenced this pull request Feb 3, 2023
1459: Check path-like interpreter arguments when cross compiling r=messense a=messense

For example: `maturin build -m test-crates/pyo3-mixed/Cargo.toml -i ./python3.10 --target aarch64-unknown-linux-gnu`, where `./python3.10` doesn't exists

Before

```bash
🍹 Building a mixed python/rust project
🔗 Found pyo3 bindings
💥 maturin failed
  Caused by: Unsupported Python interpreter: /python3.10
```

After

```bash
🍹 Building a mixed python/rust project
🔗 Found pyo3 bindings
💥 maturin failed
  Caused by: /python3.10 is not a valid python interpreter
```

Or it exists but isn't runnable:

Before

```bash
🍹 Building a mixed python/rust project
🔗 Found pyo3 bindings
💥 maturin failed
  Caused by: Unsupported Python interpreter: /Users/messense/Downloads/python/bin/python3.10
```

After

```bash
🍹 Building a mixed python/rust project
🔗 Found pyo3 bindings
/Users/messense/Downloads/python/bin/python3.10: /Users/messense/Downloads/python/bin/python3.10: cannot execute binary file

💥 maturin failed
  Caused by: Trying to get metadata from the python interpreter '/Users/messense/Downloads/python/bin/python3.10' failed
```

Co-authored-by: messense <[email protected]>
@bors
Copy link
Contributor

bors bot commented Feb 3, 2023

Build failed:

  • Test (x86_64 FreeBSD)

@messense messense merged commit 3cef2a0 into PyO3:main Feb 3, 2023
@messense messense deleted the check-interpreter branch February 3, 2023 10:57
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.

1 participant