ITADN

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

#3138ClosedLauszus 创建于 2026-03-31
bug
L
Lauszuscommented
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: ```bash 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: ```toml 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
关闭于 2026-03-31 8 条评论