summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenno Rice <benno.rice@oracle.com>2022-08-19 12:22:12 +1000
committerAnderson Bravalheri <andersonbravalheri@gmail.com>2022-08-19 18:20:39 +0100
commitfd6e0773589691eb0d4455b26af7c2d417d6ff60 (patch)
tree7ad02c62a47b0cf07564851502095ea0be2eb0ed
parent9e4a1af958c8ebbbe0cda2d2cbe5be065ee0bdef (diff)
downloadpython-setuptools-git-fd6e0773589691eb0d4455b26af7c2d417d6ff60.tar.gz
Remove inadvertent splatting of the name attribute
The `name` attribute of a `Distribution` object is used by the command-line processing system and is not intended to hold the name of the distribution itself. Setting it to the name will cause the command-line processing system to have a bad time.
-rw-r--r--setuptools/discovery.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/setuptools/discovery.py b/setuptools/discovery.py
index 6a3d2c9d..98fc2a7f 100644
--- a/setuptools/discovery.py
+++ b/setuptools/discovery.py
@@ -481,7 +481,6 @@ class ConfigDiscovery:
)
if name:
self.dist.metadata.name = name
- self.dist.name = name
def _find_name_single_package_or_module(self) -> Optional[str]:
"""Exactly one module or package"""