Skip to content

Keep the editable flag on path sources - #2454

Closed
fhgffy wants to merge 1 commit into
pypa:masterfrom
fhgffy:fix-path-source-editable
Closed

fhgffy wants to merge 1 commit into
pypa:masterfrom
fhgffy:fix-path-source-editable

Conversation

@fhgffy

@fhgffy fhgffy commented Oct 4, 2026

Copy link
Copy Markdown

Fixes #2448

A path source is documented as editable by default. decorate_dependencies sets that flag, then all_dependencies_complex rebuilds each requirement from str(dependency). That string does not carry the flag, so the dependency is installed as a normal file URL.

File requirements that were editable are marked editable again after extras are expanded.

Tests: pytest tests/env/plugin/test_interface.py::TestEnvironmentSources::test_path_source_rewrites_dependency

all_dependencies_complex rebuilt each requirement from its string, which dropped the editable flag path sources set. The flag is copied back onto file requirements.
@cjames23

cjames23 commented Oct 4, 2026

Copy link
Copy Markdown
Member

@cjames23 cjames23 closed this Oct 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sources: path sources are installed non-editable (editable flag dropped in all_dependencies_complex)

2 participants