-
-
Notifications
You must be signed in to change notification settings - Fork 274
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
Unable to install pyo3-pack on Alpine Linux #154
Comments
I tried to pip install in Docker and got that error.
|
I am getting the same error on NixOS. |
This looks like this pip bug: pypa/pip#5739. The only workaround I can think of would be writing a custom setup.py that builds pyo3-pack, which would kinda defeat the purpose of pyo3-pack and PEP 517. If you don't need PEP 517 support, you can also just download the binary (https://github.com/PyO3/pyo3-pack/releases/download/v0.7.0-beta.11/pyo3-pack-v0.7.0-beta.11-x86_64-unknown-linux-musl.tar.gz - if there's a problem with a linked library on alpine I can change those releases to fully static binaries) |
Could we document the installation process on alpine? |
@konstin I get a |
I've created #191 with an attempt to fix |
There are two solutions:
|
It turns out that using musl as a host toolchain isn't really supported by rust and cargo yet (rust-lang/rust#59302). However I've realized that there's an unexpectedly easy solution with cross compiling and multi stage builds:
edit: That solution is for installing some package using maturin, not for maturin itself. |
It is supported. What isn't supported is using musl c as a dynamic library as far as I understand. |
Since this came up in the pyo3 issue tracker (PyO3/pyo3#1109) and was proposed for setuptools-rust (PyO3/setuptools-rust#80): Should we automatically set |
assuming you meant musl instead of mus. |
I think it's ok to automatically set it, ideally with this behaviour documented somewhere. (e.g. in case in the future this flag should no longer be set, users might want to know about it so that they can report it as a bug for us to fix.) (I think it's ok to automatically set because we already set target-specific flags for macos) |
FYI we've just merged a similar patch to automatically set the flag for musl in setuptools-rust: PyO3/setuptools-rust#80 |
Can we please do the same here? |
@davidhewitt Ping? |
This is due to the lack of support for PEP 517 (See #2).
We should release a source distribution of pyo3-pack.
The text was updated successfully, but these errors were encountered: