summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--setuptools/command/sdist.py5
-rw-r--r--setuptools/tests/test_manifest.py7
2 files changed, 4 insertions, 8 deletions
diff --git a/setuptools/command/sdist.py b/setuptools/command/sdist.py
index f40b782b..7a1f7915 100644
--- a/setuptools/command/sdist.py
+++ b/setuptools/command/sdist.py
@@ -136,9 +136,8 @@ class sdist(sdist_add_defaults, orig.sdist):
"""
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 c83f9a7c..25e65ce5 100644
--- a/setuptools/tests/test_manifest.py
+++ b/setuptools/tests/test_manifest.py
@@ -624,8 +624,5 @@ class TestFileListTest(TempDirTestCase):
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)