Simplify warning.
diff --git a/setuptools/command/sdist.py b/setuptools/command/sdist.py index f40b782..7a1f791 100644 --- a/setuptools/command/sdist.py +++ b/setuptools/command/sdist.py
@@ -136,9 +136,8 @@ """ if self.distribution.include_package_data: self.warn( - "Either specify package_data manually, or use " - "include_package_data=True, but not both. Proceeding as if " - "package_data was not specified." + "Distutils 'package_data' ignored due to " + "'include_package_data'." ) return () return build_py.data_files
diff --git a/setuptools/tests/test_manifest.py b/setuptools/tests/test_manifest.py index c83f9a7..25e65ce 100644 --- a/setuptools/tests/test_manifest.py +++ b/setuptools/tests/test_manifest.py
@@ -624,8 +624,5 @@ mm.warn = mock.Mock() mm.run() - mm.warn.assert_called_with( - "Either specify package_data manually, or use " - "include_package_data=True, but not both. Proceeding as if " - "package_data was not specified." - ) + msg = "Distutils 'package_data' ignored due to 'include_package_data'." + mm.warn.assert_called_with(msg)