From 42152283d98ec99d6841b4f9447505cb0985db28 Mon Sep 17 00:00:00 2001 From: Catherine Date: Wed, 22 Mar 2023 10:56:35 +0000 Subject: Add a workaround for setuptools erroring out on stale git checkouts. --- pyproject.toml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pyproject.toml') diff --git a/pyproject.toml b/pyproject.toml index a5ffc83..fa90ad8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,5 +20,12 @@ dependencies = [ "Source Code" = "https://github.com/amaranth-lang/amaranth-boards" "Bug Tracker" = "https://github.com/amaranth-lang/amaranth-boards/issues" +[tool.setuptools] +# If old amaranth-boards is checked out with git (e.g. as a part of a persistent editable install +# or a git worktree cached by tools like poetry), it can have an empty `nmigen_boards` directory +# left over, which causes a hard error because setuptools cannot determine the top-level package. +# Add a workaround to improve experience for people upgrading from old checkouts. +packages = ["amaranth_boards"] + [tool.setuptools_scm] local_scheme = "node-and-timestamp" -- cgit v1.2.3