Skip to content

Commit 91517b6

Browse files
authored
Do not fail editable install detection when only system install is present (#212)
Closes #211
2 parents b705a48 + cf7a62b commit 91517b6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

spin/cmds/meson.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ def _editable_install_path(distname):
4545
except importlib_metadata.PackageNotFoundError:
4646
return None
4747

48+
if dist.origin is None:
49+
return None
50+
4851
if hasattr(dist.origin, "dir_info") and getattr(
4952
dist.origin.dir_info, "editable", False
5053
):

0 commit comments

Comments
 (0)