We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f7dd7c commit 04eeb1aCopy full SHA for 04eeb1a
setuptools/config/pyprojecttoml.py
@@ -112,7 +112,7 @@ def read_configuration(
112
# `ini2toml` backfills include_package_data=False when nothing is explicitly given,
113
# therefore setting a default here is backwards compatible.
114
orig_setuptools_table = setuptools_table.copy()
115
- if dist and getattr(dist, "include_package_data") is not None:
+ if dist and getattr(dist, "include_package_data", None) is not None:
116
setuptools_table.setdefault("include-package-data", dist.include_package_data)
117
else:
118
setuptools_table.setdefault("include-package-data", True)
0 commit comments