Properly quote compileall and Lib paths in case TARGETDIR has a space.
diff --git a/Misc/NEWS b/Misc/NEWS
index 3de2823..b3fc3e1 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -89,6 +89,9 @@
 Build
 -----
 
+- The MSI compileall step was fixed to also support a TARGETDIR
+  with spaces in it.
+
 - Bug #1517388: sqlite3.dll is now installed on Windows independent
   of Tcl/Tk.
 
diff --git a/Tools/msi/msi.py b/Tools/msi/msi.py
index c65c6bc..aebab98 100644
--- a/Tools/msi/msi.py
+++ b/Tools/msi/msi.py
@@ -367,7 +367,7 @@
               ("VerdanaRed9", "Verdana", 9, 255, 0),
              ])
 
-    compileargs = r"-Wi [TARGETDIR]Lib\compileall.py -f -x bad_coding|badsyntax|site-packages [TARGETDIR]Lib"
+    compileargs = r'-Wi "[TARGETDIR]Lib\compileall.py" -f -x bad_coding|badsyntax|site-packages "[TARGETDIR]Lib"'
     # See "CustomAction Table"
     add_data(db, "CustomAction", [
         # msidbCustomActionTypeFirstSequence + msidbCustomActionTypeTextData + msidbCustomActionTypeProperty