-
Notifications
You must be signed in to change notification settings - Fork 217
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
Could not install on Alpine Linux 3.11 and Rust 1.39.0 #46
Comments
There's some discussion in #8. If rustup works on Alpine now, someone could document this and specify how to run CI on Alpine. |
#8 has been closed now and installing |
Using https://pkgs.alpinelinux.org/package/v3.11/community/x86_64/rust? That's stable, and this requires nightly. If you can document how to install it, great. |
Yes and yes.
I stopped research half way due to timeout, so I cannot, at least yet. So we cannot re-open and/or pin this ticket for the next person to maybe find this quicker? |
Based on #8 (comment) by @scuml I can confirm that this Dockerfile works for orjson on Alpine 3.11: FROM python:3.8-alpine
RUN apk update \
&& \
apk add build-base wget
RUN wget -Oinit.sh https://sh.rustup.rs \
&& \
sh init.sh -y \
&& \
rm init.sh
ENV PATH="/root/.cargo/bin:${PATH}"
RUN rustup install nightly \
&& \
rustup default nightly
ENV RUSTFLAGS="-C target-feature=-crt-static"
RUN pip install --no-binary=orjson orjson==2.5.1
RUN python -c 'import orjson; print(orjson.loads("[1, true]"))' It took about 10 minutes total runtime over here. |
The recipe above only works now with nightly-2020-09-14
I am now testing on plain Alpine3.12, where binary manylinux build seems a bit slower... |
The text was updated successfully, but these errors were encountered: