Closed aptalca closed 1 year ago
Unrelated, but apparently your build always fails (installs the pure Python fallback), which is likely not what you want. Do you have a C++ compiler installed in the container?
Right, the above logs were just for demonstrating the version pip attempts to install. In the actual builds, we include the proper deps: https://github.com/linuxserver/wheelie/blob/main/Dockerfile
For context, we host a wheel repo that our docker images can use to significantly cut down on build time: https://wheel-index.linuxserver.io/
Regarding the broken cache for the sdist: I can reproduce this as well, but I have no way (I am aware of) to force a cache update. I assume this could be reported in https://github.com/pypa/pypi-support or https://github.com/pypi/warehouse.
Seems the cache got updated:
python3.11 -m pip install --no-binary rapidfuzz rapidfuzz==2.13.4
Defaulting to user installation because normal site-packages is not writeable
Collecting rapidfuzz==2.13.4
Downloading rapidfuzz-2.13.4.tar.gz (843 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 843.4/843.4 kB 1.2 MB/s eta 0:00:00
Yeah, they mentioned dns cache as the underlying problem in that warehouse issue, which apparently has a ttl of 24 hours
When I try to install rapidfuzz on an OS where there are no prebuilt wheels, pip installs 2.13.3 instead (compiled from source).
I ran into this issue in the past with other projects and I believe the issue is incorrect pypi cache, where it's missing the tarball for the latest version, so it defaults to the previous version instead.
Here's a log snippet of trying to compile 2.13.4 from source with the
--no-binary
option:Here's a demonstration of trying to install rapidfuzz on alpine arm32v7 in docker, and pip installs 2.13.3: https://hastebin.com/yawizesixo.sql
Here's a demonstration of trying to install rapidfuzz on x86_64 with
--no-binary rapidfuzz
in docker and it installs 2.13.3: https://hastebin.com/comotehake.sqlWhile this is not your project's fault, as the tarball is indeed listed on pypi (https://pypi.org/project/rapidfuzz/#files), it somehow isn't found by pip (perhaps pypi cache?).
I don't know how to report the issue to pypi so I'm reporting here in the hopes that you have some channel to communicate with them through, or perhaps a way for your team to force a pypi cache update.
Thanks