summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnderson Bravalheri <andersonbravalheri@gmail.com>2022-11-28 14:12:08 +0000
committerAnderson Bravalheri <andersonbravalheri@gmail.com>2022-11-28 14:12:08 +0000
commit04eeb1ad7ee9babaaeafbcf1ad1095de26d7d581 (patch)
tree5d5ed20b3dbc3183004fbd2cfa4aa10a266276ca
parent6f7dd7c12ceffa2aefe28c2fbafbad2273980b2b (diff)
downloadpython-setuptools-git-04eeb1ad7ee9babaaeafbcf1ad1095de26d7d581.tar.gz
Fix getattr statement
-rw-r--r--setuptools/config/pyprojecttoml.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/config/pyprojecttoml.py b/setuptools/config/pyprojecttoml.py
index d995f0bc..fee6fac6 100644
--- a/setuptools/config/pyprojecttoml.py
+++ b/setuptools/config/pyprojecttoml.py
@@ -112,7 +112,7 @@ def read_configuration(
# `ini2toml` backfills include_package_data=False when nothing is explicitly given,
# therefore setting a default here is backwards compatible.
orig_setuptools_table = setuptools_table.copy()
- if dist and getattr(dist, "include_package_data") is not None:
+ if dist and getattr(dist, "include_package_data", None) is not None:
setuptools_table.setdefault("include-package-data", dist.include_package_data)
else:
setuptools_table.setdefault("include-package-data", True)