Skip to content

pex -c does not work for multiplatform pexes when the target dist is platform specific #537

Closed
@jsirois

Description

@jsirois

If the console script is housed in a dist that is platform-specific and the pex is multiplatform, then the same script is found more than once and pex creation fails with something like:

RuntimeError: Ambiguous script specification pants matches multiple entry points:pants = pants.bin.pants_loader:main pants = pants.bin.pants_loader:main

Pex should probably allow dups from a single requirement key if the found scripts are bytewise identical as they are in this example case.

See pantsbuild/pants#6349 for an example of getting bit by this.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions