From f1022f7c4affb9fab813451e305bfdbd62695a5a Mon Sep 17 00:00:00 2001 From: lucasiscovici-loreal Date: Sat, 12 Feb 2022 02:44:07 +0100 Subject: [PATCH] Allow sdist to have multiple packages correct build --- src/poetry/core/masonry/builders/builder.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/poetry/core/masonry/builders/builder.py b/src/poetry/core/masonry/builders/builder.py index e0b33eead..b8fb80cbb 100644 --- a/src/poetry/core/masonry/builders/builder.py +++ b/src/poetry/core/masonry/builders/builder.py @@ -170,11 +170,7 @@ def find_files_to_add(self, exclude_build: bool = True) -> Set["BuildIncludeFile if "__pycache__" in str(file): continue - if ( - isinstance(include, PackageInclude) - and include.source - and self.format == "wheel" - ): + if isinstance(include, PackageInclude) and include.source: source_root = include.base else: source_root = self._path