Skip to content

Commit cf7a62b

Browse files
committed
Do not fail editable install detection when only system install is present
1 parent 504c30b commit cf7a62b

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)