<#809 fix: skip building editable deps as wheels a...
# flyte-github
a
#809 fix: skip building editable deps as wheels and fix src-layout module resolution Pull request opened by pingsutw Summary • Add
--no-install-package <name>
for each editable dependency to the
uv sync
command in both remote and Docker builders, preventing uv from trying to build editable deps as wheels (which fails when they have
[build-system]
requiring
uv_build
) • Fix module path resolution for src-layout projects in monorepos:
extract_obj_module()
now uses
sys.path
entries to find the correct Python package root instead of computing paths from the monorepo root (e.g.,
my_app.main
instead of
my_app.src.my_app.main
) • Filter
_F_SYS_PATH
to exclude
site-packages
entries and remove script directory entries that shadow real packages Test plan • Existing tests pass:
pytest tests/flyte/imagebuild/test_utils.py
• New unit tests for
get_uv_project_editable_package_names()
(happy path + edge cases) • Verified module path resolution produces
my_app.main
for src-layout projects • Verified
_F_SYS_PATH
filtering:
./my_app/src:./my_lib/src:./.
(no site-packages, no script dir) • End-to-end test with
02_sibling_packages
example flyteorg/flyte-sdk