diff --git a/hatch_rs/plugin.py b/hatch_rs/plugin.py index 4f7dc77..a16cc22 100644 --- a/hatch_rs/plugin.py +++ b/hatch_rs/plugin.py @@ -107,7 +107,7 @@ def initialize(self, version: str, build_data: dict[str, Any]) -> None: for path in Path(".").rglob("*"): if path.is_dir(): continue - if str(path).startswith("target") or str(path).startswith("dist"): + if str(path).startswith("target") or str(path).startswith("dist") or not str(path).startswith(config.module): continue if path.suffix in (".pyd", ".dll", ".so", ".dylib"): build_data["force_include"][str(path)] = str(path)