Gelbpunkt / zangy

A fast redis library for python and asyncio written in Rust
MIT License
16 stars 2 forks source link

Add precompiled version #6

Open booqoffsky opened 1 month ago

booqoffsky commented 1 month ago

Could you add a package with pre-compiled code?

I tried to compile it myself, but I got an error

rustc --version rustc 1.81.0-nightly (6292b2af6 2024-07-02)

pip3 install git+https://github.com/Gelbpunkt/zangy

error: failed to run `rustc` to learn about target-specific information
      Caused by:
        process didn't exit successfully: `/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/rustc - --crate-name ___ --print=file-names -Z mir-opt-level=3 -Z unsound-mir-opts -C target-cpu=native -Z tune-cpu=native -Z strip=symbols --crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib --crate-type staticlib --crate-type proc-macro --print=sysroot --print=split-debuginfo --print=crate-name --print=cfg` (exit status: 1)
        --- stderr
        error: unknown unstable option: `strip`

Perhaps a pre-compiled version would help avoid such problems and save disk space (no need to install Rust)

Gelbpunkt commented 1 month ago

There are precompiled versions, but only for old python versions (since I haven't updated this repository in over a year). When I find some time I'll restore compatibility with more recent rustc and do a new pypi release.

Gelbpunkt commented 3 weeks ago

Can you let me know if the latest commit works for you? I added abi3 support so it should be forwards compatible with newer python versions from now on

booqoffsky commented 3 weeks ago

I have successfully installed the package downloaded from this page, thank you

$ python3 --version
Python 3.11.7

$ pip3 install zangy-0.1.2-cp37-abi3-manylinux_2_28_x86_64.whl