Skip to content

Commit 50f3cc6

Browse files
authored
dir_info metadata field does not exist for conda installs (#194)
Closes #193
2 parents 7742429 + 73284d6 commit 50f3cc6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spin/cmds/meson.py

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

48-
if getattr(dist.origin.dir_info, "editable", False):
48+
if hasattr(dist.origin, "dir_info") and getattr(
49+
dist.origin.dir_info, "editable", False
50+
):
4951
if sys.platform == "win32":
5052
return dist.origin.url.removeprefix("file:///")
5153
else:

0 commit comments

Comments
 (0)