Search Criteria
Package Details: ty 0.0.1_alpha.3-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/ty.git (read-only, click to copy) |
---|---|
Package Base: | ty |
Description: | An extremely fast Python type checker and language server, written in Rust. |
Upstream URL: | https://github.com/astral-sh/ty |
Licenses: | MIT |
Submitter: | alub |
Maintainer: | alub |
Last Packager: | alub |
Votes: | 2 |
Popularity: | 1.85 |
First Submitted: | 2025-05-08 07:47 (UTC) |
Last Updated: | 2025-05-16 11:22 (UTC) |
Dependencies (7)
- python (python37AUR, python311AUR, python310AUR)
- clang (llvm-gitAUR, clang17-binAUR, clang-minimal-gitAUR) (make)
- git (git-gitAUR, git-glAUR) (make)
- lld (llvm-gitAUR) (make)
- python-build (make)
- python-installer (make)
- python-maturin (python-maturin-gitAUR) (make)
Latest Comments
gyscos commented on 2025-05-16 13:50 (UTC) (edited on 2025-05-16 13:57 (UTC) by gyscos)
Thanks! rust 1.87 is in testing, you can try building in a chroot with the testing repo enabled, I suspect it will fail for now (until llvm and clang get updated to 20 probably).
alub commented on 2025-05-16 11:30 (UTC)
Hello @gyscos, thanks for testing! I’ve included your change regarding the toolchain file, that seems reasonable. Note that I test the build in a chroot (https://wiki.archlinux.org/title/DeveloperWiki:Building_in_a_clean_chroot) so I install rust 1.86 from the repository, not with Rustup.
gyscos commented on 2025-05-15 20:22 (UTC) (edited on 2025-05-16 00:05 (UTC) by gyscos)
Hi, and thanks for maintaining this package!
I'm getting a bunch of similar compilation errors on the latest version:
This here is for portable-atomic, but there are dozens of similar errors for probably all the other dependencies being built.
Running simply
python -m build --wheel
works, so something might be off with the lto/linker options given in the PKGBUILD?I do have the
lto
option enabled in my/etc/makepkg.conf
. But if I disable it for this package withoptions=(!lto)
it doesn't fix anything, so I guess it's not the problem.EDIT: Looks like it fails to build if I have the latest stable (1.87) installed. It looks like the repo specifies 1.86 in its rust-toolchain.toml, maybe some versions are crossed somewhere?
EDIT2: The problem might be that
rust-toolchain.toml
is under theruff
directory, and is apparently ignored. If I copy it in the parent directory, wherepython -m build --wheel
is run, it looks like it works fine. It problably should be fixed upstream, but in the meantime this diff works for me:Note: it's now beyond the scope of this, but if I update these rust-toolchain.toml to use 1.87, it fails with a different error:
Might be related to rust 1.87 bumping LLVM to 20, while clang and llvm are still at version 19 in the official arch packages.
rockerBOO commented on 2025-05-09 22:08 (UTC) (edited on 2025-05-09 22:28 (UTC) by rockerBOO)
The python build is not using the system python but the terminal python. So if you have a venv enabled it will try to use that to build with.
Also requires rust 1.84 and doesn't support rust 1.82