Issue #20748: Uninstalling pip does not leave behind the pyc of
the uninstaller anymore.
diff --git a/Misc/NEWS b/Misc/NEWS
index 172bb73..054341d 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -15,6 +15,9 @@
Build
-----
+- Issue #20748: Uninstalling pip does not leave behind the pyc of
+ the uninstaller anymore.
+
- Issue #20568: The Windows installer now installs the unversioned ``pip``
command in addition to the versioned ``pip3`` and ``pip3.4`` commands.
diff --git a/Tools/msi/msi.py b/Tools/msi/msi.py
index f2b7148..2ba72e4 100644
--- a/Tools/msi/msi.py
+++ b/Tools/msi/msi.py
@@ -421,7 +421,7 @@
compileargs = r'-Wi "[TARGETDIR]Lib\compileall.py" -f -x "bad_coding|badsyntax|site-packages|py2_|lib2to3\\tests|venv\\scripts" "[TARGETDIR]Lib"'
lib2to3args = r'-c "import lib2to3.pygram, lib2to3.patcomp;lib2to3.patcomp.PatternCompiler()"'
updatepipargs = r'-m ensurepip -U --default-pip'
- removepipargs = r'-m ensurepip._uninstall'
+ removepipargs = r'-B -m ensurepip._uninstall'
# See "CustomAction Table"
add_data(db, "CustomAction", [
# msidbCustomActionTypeFirstSequence + msidbCustomActionTypeTextData + msidbCustomActionTypeProperty