Skip to content

Commit 04eeb1a

Browse files
committed
Fix getattr statement
1 parent 6f7dd7c commit 04eeb1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setuptools/config/pyprojecttoml.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def read_configuration(
112112
# `ini2toml` backfills include_package_data=False when nothing is explicitly given,
113113
# therefore setting a default here is backwards compatible.
114114
orig_setuptools_table = setuptools_table.copy()
115-
if dist and getattr(dist, "include_package_data") is not None:
115+
if dist and getattr(dist, "include_package_data", None) is not None:
116116
setuptools_table.setdefault("include-package-data", dist.include_package_data)
117117
else:
118118
setuptools_table.setdefault("include-package-data", True)

0 commit comments

Comments
 (0)