Backport the distutils part of r83399 to fix #7645.
diff --git a/Misc/NEWS b/Misc/NEWS
index fc40da5..315b556 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -29,6 +29,8 @@
Build
-----
+- Backport r83399 to allow test_distutils to pass on installed versions.
+
- Issue #1303434: Generate ZIP file containing all PDBs.
Tests
diff --git a/Tools/msi/msi.py b/Tools/msi/msi.py
index d988283..a1f67b8 100644
--- a/Tools/msi/msi.py
+++ b/Tools/msi/msi.py
@@ -1020,6 +1020,8 @@
lib.glob("*.pem")
lib.glob("*.pck")
lib.add_file("zipdir.zip")
+ if dir=='tests' and parent.physical=='distutils':
+ lib.add_file("Setup.sample")
if dir=='decimaltestdata':
lib.glob("*.decTest")
if dir=='xmltestdata':