summaryrefslogtreecommitdiff
path: root/setuptools/command
diff options
context:
space:
mode:
authorAnderson Bravalheri <andersonbravalheri@gmail.com>2022-08-11 18:52:28 +0100
committerAnderson Bravalheri <andersonbravalheri@gmail.com>2022-08-11 18:52:28 +0100
commit216bf5e6cd7a5ce19ccf04753d03dc6348003163 (patch)
tree359cccb238c97fad5cb39581ab0dfa69f4d59ffc /setuptools/command
parentabeda22f90ec3928656489b906480910d54d9da4 (diff)
downloadpython-setuptools-git-216bf5e6cd7a5ce19ccf04753d03dc6348003163.tar.gz
Fix problem with editable install and single module packages
Diffstat (limited to 'setuptools/command')
-rw-r--r--setuptools/command/editable_wheel.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/command/editable_wheel.py b/setuptools/command/editable_wheel.py
index a44d24be..bd8ac82c 100644
--- a/setuptools/command/editable_wheel.py
+++ b/setuptools/command/editable_wheel.py
@@ -439,7 +439,7 @@ class _TopLevelFinder:
roots = _find_package_roots(top_level, package_dir, src_root)
namespaces_: Dict[str, List[str]] = dict(chain(
- _find_namespaces(self.dist.packages, roots),
+ _find_namespaces(self.dist.packages or [], roots),
((ns, []) for ns in _find_virtual_namespaces(roots)),
))