Skip to content

Incorrect wheel tag for platform-dependent packages on PyPy #1820

Open
@mmaslowskicc

Description

Issue

When running on PyPy and having the build key in pyproject.toml, Poetry chooses a wheel tags that is not supported by the platform, so it cannot be installed afterwards.

When running docker build . with files from the linked Gist:

Step 6/7 : RUN poetry build
 ---> Running in a893c9f76461
Creating virtualenv wheeltagtest-9TtSrW0h-py3.6 in /root/.cache/pypoetry/virtualenvs
Building wheeltagtest (0.1.0)
 - Building sdist
 - Built wheeltagtest-0.1.0.tar.gz

 - Building wheel
 - Built wheeltagtest-0.1.0-pp369-pypy36_pp73-linux_x86_64.whl
Removing intermediate container a893c9f76461
 ---> c99768df9fda
Step 7/7 : RUN poetry run pip install dist/*.whl
 ---> Running in 33d70ae40527
ERROR: wheeltagtest-0.1.0-pp369-pypy36_pp73-linux_x86_64.whl is not a supported wheel on this platform.
WARNING: You are using pip version 19.2.3, however version 19.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
The command '/bin/sh -c poetry run pip install dist/*.whl' returned a non-zero code: 1

A proper wheel tag would contain pp373 instead of pp369: this runs on PyPy 7.3.0 (which is otherwise compatible with Python 3.6.9).

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions