poetry build
creates package with platform marker not parseable: pkg_resources.RequirementParseError: Invalid requirement, parse error at "'sys_plat'"
#2802
Labels
area/build-system
Related to PEP 517 packaging (see poetry-core)
kind/bug
Something isn't working as expected
I am on the latest Poetry version.
I have searched the issues of this repo and believe that this is not a duplicate.
If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option).OS version and name: Ubuntu 20.04 (container)
Poetry version: 10.1.10
Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/daniel-j-h/789f181c620a97d74f4731b42a88e073
Issue
Hey folks - here is my use case: I work in a self-contained ubuntu:20.04 docker container and want to add a remote wheel
This works fine, but when I then
poetry build
my package and try to install it (even e.g. withpip3
) I get the parsing error stack trace attached below.Small self-contained reproducible example is here: https://gist.github.com/daniel-j-h/789f181c620a97d74f4731b42a88e073
What works tho is leaving out the platform marker and installing with
which semantically is wrong but at least the package then is installable.
When I unzip the wheel I get from
poetry build
, then in theMETADATA
file the platform marker looks like thisAnd here is the full stack trace when I try to install the package with platform marker
The text was updated successfully, but these errors were encountered: