Skip to content

Commit

Permalink
Correctly handle non-editable package install
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanv committed Jan 12, 2024
1 parent 2db807a commit 309e199
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spin/cmds/meson.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def _set_pythonpath(quiet=False):

try:
dist = importlib_metadata.Distribution.from_name(package)
if dist.origin.dir_info.editable:
if getattr(dist.origin.dir_info, "editable", False):
click.secho(
f"Warning! An editable installation of `{package}` was detected.",
fg="bright_red",
Expand Down

0 comments on commit 309e199

Please sign in to comment.