这是indexloc提供的服务,不要输入任何密码
Skip to content

[Bug]: PIP allows only for linux_aarch64 wheel platforms #25150

@TUVIMEN

Description

@TUVIMEN

Problem description

Only linux_aarch64 platform is allowed, this forces all packages to compile since all wheels with binaries are marked with manylinux e.g. raylib-5.5.0.2-cp312-cp312-manylinux2014_aarch64.whl.

I'm reporting it as an issue since, since this wasn't happening previously.

I couldn't find a package that is able to download bdists, lxml, numpy and raylib try to compile after downloading. Running

$ pip install --only-binary=:all: lxml

outputs

ERROR: Could not find a version that satisfies the requirement lxml (from versions: none)
ERROR: No matching distribution found for lxml

The same for raylib downloads old -none wheel.

The only way to download bdist packages is to manually specify platform, which doesn't allow for global installation

$ pip install --only-binary=:all: --platform manylinux2014_aarch64 -t directory raylib

What steps will reproduce the bug?

The easiest way to reproduce (it should fail):

pip install --only-binary=:all: lxml

This script outputs allowed wheel platforms

from pprint import pprint

try:  # normal dist
    from pip._vendor.distlib.wheel import COMPATIBLE_TAGS

    pprint(COMPATIBLE_TAGS)
except Exception:  # dev dist
    from pip._vendor.packaging.tags import sys_tags

    pprint(set(sys_tags()))

On pip 25.1.1 it outputs

{('cp3', 'none', 'any'),
 ('cp30', 'none', 'any'),
 ('cp31', 'none', 'any'),
 ('cp310', 'abi3', 'linux_aarch64'),
 ('cp310', 'none', 'any'),
 ('cp311', 'abi3', 'linux_aarch64'),
 ('cp311', 'none', 'any'),
 ('cp312', 'abi3', 'linux_aarch64'),
 ('cp312', 'cp312', 'linux_aarch64'),
 ('cp312', 'none', 'any'),
 ('cp312', 'none', 'linux_aarch64'),
 ('cp32', 'abi3', 'linux_aarch64'),
 ('cp32', 'none', 'any'),
 ('cp33', 'abi3', 'linux_aarch64'),
 ('cp33', 'none', 'any'),
 ('cp34', 'abi3', 'linux_aarch64'),
 ('cp34', 'none', 'any'),
 ('cp35', 'abi3', 'linux_aarch64'),
 ('cp35', 'none', 'any'),
 ('cp36', 'abi3', 'linux_aarch64'),
 ('cp36', 'none', 'any'),
 ('cp37', 'abi3', 'linux_aarch64'),
 ('cp37', 'none', 'any'),
 ('cp38', 'abi3', 'linux_aarch64'),
 ('cp38', 'none', 'any'),
 ('cp39', 'abi3', 'linux_aarch64'),
 ('cp39', 'none', 'any'),
 ('py3', 'none', 'any'),
 ('py30', 'none', 'any'),
 ('py31', 'none', 'any'),
 ('py310', 'none', 'any'),
 ('py311', 'none', 'any'),
 ('py312', 'none', 'any'),
 ('py32', 'none', 'any'),
 ('py33', 'none', 'any'),
 ('py34', 'none', 'any'),
 ('py35', 'none', 'any'),
 ('py36', 'none', 'any'),
 ('py37', 'none', 'any'),
 ('py38', 'none', 'any'),
 ('py39', 'none', 'any')}

manylinux is not mentioned

What is the expected behavior?

Having manylinux1, manylinux2010, manylinux2014 allowed as wheels platforms for aarch64 linux

System information

Termux Variables:
TERMUX_API_VERSION=0.52.0
TERMUX_APK_RELEASE=F_DROID
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP_PID=31467
TERMUX_APP__DATA_DIR=/data/user/0/com.termux
TERMUX_APP__LEGACY_DATA_DIR=/data/data/com.termux
TERMUX_APP__SE_FILE_CONTEXT=u:object_r:app_data_file:s0:c35,c257,c512,c768
TERMUX_APP__SE_INFO=default:targetSdkVersion=28:complete
TERMUX_IS_DEBUGGABLE_BUILD=0
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.3
TERMUX__HOME=/data/data/com.termux/files/home
TERMUX__PREFIX=/data/data/com.termux/files/usr
TERMUX__ROOTFS_DIR=/data/data/com.termux/files
TERMUX__SE_PROCESS_CONTEXT=u:r:untrusted_app_27:s0:c35,c257,c512,c768
TERMUX__USER_ID=0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://mirror.leitecastro.com/termux/termux-main stable main
# x11-repo (sources.list.d/x11.list)
deb https://mirror.leitecastro.com/termux/termux-x11 x11 main
Updatable packages:
All packages up to date
termux-tools version:
1.45.0
Android version:
12
Kernel build information:
Linux localhost 4.14.113-25257816 #1 SMP PREEMPT Thu Mar 2 09:32:04 KST 2023 aarch64 Android
Device manufacturer:
samsung
Device model:
SM-G970F
Supported ABIs:
SUPPORTED_ABIS: arm64-v8a,armeabi-v7a,armeabi
SUPPORTED_32_BIT_ABIS: armeabi-v7a,armeabi
SUPPORTED_64_BIT_ABIS: arm64-v8a
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec-ld-preload.so
Installed termux plugins:
com.termux.api versionCode:1001

Metadata

Metadata

Assignees

No one assigned

    Labels

    inactiveNo activity in a certain period of timenot-bugIssue is not a bug or has been resolved

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions