Skip to content

Commit

Permalink
Fix edge case of package discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed Mar 24, 2022
1 parent f57bb2b commit 5ad4e0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setuptools/config/expand.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,8 @@ def __exit__(self, _exc_type, _exc_value, _traceback):

def _get_package_dir(self) -> Mapping[str, str]:
self()
return self._dist.package_dir
pkg_dir = self._dist.package_dir
return {} if pkg_dir is None else pkg_dir

@property
def package_dir(self) -> Mapping[str, str]:
Expand Down

0 comments on commit 5ad4e0b

Please sign in to comment.