Comments (3)
Is there any scenario where
-S
would break some edge use cases?
For https://github.com/PyO3/maturin/blob/main/src/python_interpreter/get_interpreter_metadata.py, I don't think anything would break.
from maturin.
A potential fix is to use the
-S
CLI flag to python to avoid loading site customizations when running these configuration scripts (the resulting output is identical in my testing).
Sounds good, pull requests are welcome.
Adding that flag to
check_executable
the build gets further and fails onfailed to run custom build command for pyo3-build-config v0.19.2
so pyo3 may need to implement this same fix
Make sense, cc @davidhewitt
from maturin.
Is there any scenario where -S
would break some edge use cases? A slightly more cautious option is to fail, retry with -S
, and if that succeeds, fail with an error message and a hint to run with PYTHONNOUSERSITE=1
env var set. That way the user knowingly disables their site if it's a problem.
(We could also set the env var rather than -S
when retrying.)
PR is very welcome.
from maturin.
Related Issues (20)
- maturin 1.3 produces invalid source distributions for workspace packages HOT 3
- Pure Python fallbacks HOT 4
- Supporting PGO builds from `maturin` HOT 3
- Suggestion: Make it easier to know whether project is a valid mixed python/rust project
- sdist not installable / Cargo workspace with non-default members with glob HOT 2
- maturin built failed after rust 1.74 for bin/rust-gdb conflicts HOT 4
- Recommend install via `pipx`? HOT 1
- the `multipart` crate is unmaintained HOT 1
- Cargo xwin configutation to download sdks and headers for target arch only. HOT 2
- Allow ignoring shared libraries HOT 2
- Compatibility with conda and poetry used simultaneously
- Fix or skip cffi tests on Windows PyPy
- maturin build fails on CentOS 7 HOT 4
- Build fails if REUSE-compliant LICENSES directory is present
- Panic when running `maturin build --interpreter python --target x86_64-pc-windows-msvc` HOT 2
- Source distribution missing workspace files HOT 6
- Build option to dynamically set abi3 version HOT 9
- Make it possible to skip passing `--interpreter` option when building editable wheels via pep517 backend
- Uniffi multiple crates not supported
- Uniffi-bindgen not detected in cargo workspace
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maturin.