Skip to content

Commit 107149a

Browse files
authored
Merge pull request #22 from python-project-templates/tkp/exc
exclude non-module files
2 parents e85d722 + d123be8 commit 107149a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hatch_rs/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def initialize(self, version: str, build_data: dict[str, Any]) -> None:
107107
for path in Path(".").rglob("*"):
108108
if path.is_dir():
109109
continue
110-
if str(path).startswith("target") or str(path).startswith("dist"):
110+
if str(path).startswith("target") or str(path).startswith("dist") or not str(path).startswith(config.module):
111111
continue
112112
if path.suffix in (".pyd", ".dll", ".so", ".dylib"):
113113
build_data["force_include"][str(path)] = str(path)

0 commit comments

Comments
 (0)