Skip to content

Failing to find local editable package from pylock.toml for pex >= 2.91.0 #3138

@Lauszus

Description

@Lauszus

I use uv to export the uv.lock to a pylock.toml for one of my projects.

I then use pex with the --pylock argument to create a PEX given the pylock.toml.

This has worked great since you introduced support for pylock.toml initially, but broke in pex >= 2.91.0 with the following error:

pex.pex_builder.PEXBuilder.InvalidExecutableSpecification: Could not find script 'hello' in any distribution a 1.0, b 1.0.0 within PEX!
Could not find script 'hello' in any distribution a 1.0, b 1.0.0 within PEX!

I believe this is because my package relies on another local package like so:

dependencies = [
    "a",
]

[tool.uv.sources]
a = { path = "../a", editable = true }

I have create a repository for replicating the issue: https://github.com/Lauszus/pex-pylock-bug/tree/main

Let me know if you need any more information

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions