💾 Archived View for bbs.geminispace.org › u › gemalaya › 17361 captured on 2024-08-18 at 20:47:08. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2024-06-16)
-=-=-=-=-=-=-
Re: "is it feasible to get rid of rust dependency? it makes..."
I think it's the cryptography package which requires rust-bin to build. aiogemini requires "cryptography". I found a comment on stackoverflow that suggests that cryptography < 35.0 can be built without rust by setting CRYPTOGRAPHY_DONT_BUILD_RUST=1. However cryptography 35.0 is an almost 3 years old release so ...
Can you try adding "cryptography==3.4.8" in pyproject.toml's "dependencies" array and try to build with this command ?
CRYPTOGRAPHY_DONT_BUILD_RUST=1 pip install .
aiogemini's dependency spec for cryptography is ">= 3.2,< 42.0" so that could work.
May 27 · 3 months ago
😺 gemalaya [mod] · May 27 at 19:07:
Weird cause, i installed levior on a rpi3+, aarch64, and i didn't have any issues, works fine.
😺 gemalaya [mod] · May 27 at 20:07:
— https://lwn.net/Articles/845535/
😺 gemalaya [mod] · May 27 at 20:13:
Also, be sure to run "pip install -U pip", that could be the issue. I see that there are aarch64 wheels for "cryptography" so building on aarch64 without rust is definitely possible.
— https://stackoverflow.com/questions/66118337/how-to-get-rid-of-cryptography-build-error
Why can't people just write god-damned C code? Only half joking :)
🐙 norayr [OP] · May 28 at 00:57:
Can you try adding "cryptography==3.4.8" in pyproject.toml's "dependencies" array and try to build with this command ?
CRYPTOGRAPHY_DONT_BUILD_RUST=1 pip install .
it works, i was able to build it, thank you!
😺 gemalaya [mod] · May 28 at 09:35:
@norayr Nice ! No issues with TLS connections ?
😺 gemalaya [mod] · May 28 at 09:44:
I'll try to provide an appimage for aarch64 as well.
😺 gemalaya [mod] · May 28 at 10:17:
Actually there's no aarch64 dist for python-appimage so that's a problem ...
— https://github.com/niess/python-appimage
For now I'll just add a section in the README to explain how to build it on aarch64.
🐙 norayr [OP] · May 29 at 00:28:
thank you, but for me, sincerely, don't bother. i prefer to build software myself, appimages feel like black boxes.
🐙 norayr [OP] · May 29 at 00:30:
also yes, i think no issues. it works well. thank you!
is it feasible to get rid of rust dependency? it makes building levior hard on my pinebook/gentoo, and there is no rust-bin(binary version) for aarch64, since i cannot build rust there, it requires too much memory. and on maemo leste, where i wanted to also package it - impossible, since it is based on devuan oldstable and only has much older version of rust yet.