Skip to content

Commit 962260e

Browse files
authored
Fix dev-mode not respected in VirtualEnvironment (#2137)
* Fix dep-mode for editable install when sync dependencies for VirtualEnvironment
1 parent e966480 commit 962260e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/hatch/env/virtual.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,11 +204,14 @@ def sync_dependencies(self):
204204

205205
all_install_args = []
206206

207-
workspace_deps = [str(dep.path) for dep in self.local_dependencies_complex if dep.path]
207+
workspace_deps = [dep for dep in self.local_dependencies_complex if dep.path]
208208
workspace_names = {dep.name.lower() for dep in self.local_dependencies_complex if dep.path}
209209

210-
for dep_path in workspace_deps:
211-
all_install_args.extend(["--editable", dep_path])
210+
for dep in workspace_deps:
211+
if dep.editable:
212+
all_install_args.extend(["--editable", dep.path])
213+
else:
214+
all_install_args.append(dep.path)
212215

213216
standard_dependencies = []
214217

0 commit comments

Comments
 (0)