pip does not support '_' in package names and converts them to
'-' after installing the wheel. In order to uninstall affected
packages the '_' needs to be converted to a '-' when calculating
the package name.

Signed-off-by: Ashley E Desimone <ashley.e.desim...@intel.com>
Cc: Nate DeSimone <nathaniel.l.desim...@intel.com>
Cc: Puja Pandya <puja.pan...@intel.com>
---
 edkrepo_installer/EdkRepoInstaller/InstallWorker.cs | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/edkrepo_installer/EdkRepoInstaller/InstallWorker.cs 
b/edkrepo_installer/EdkRepoInstaller/InstallWorker.cs
index effc3c4..5a358f9 100644
--- a/edkrepo_installer/EdkRepoInstaller/InstallWorker.cs
+++ b/edkrepo_installer/EdkRepoInstaller/InstallWorker.cs
@@ -622,7 +622,10 @@ namespace TianoCore.EdkRepoInstaller
                 {
                     if (Wheel.UninstallAllOtherCopies)
                     {
-                        ExclusivePackages.Add(new Tuple<string, 
PythonVersion>(Wheel.Package.Name, PyInstance.Version));
+                        //
+                        // pip doesn't understand the difference between '_' 
and '-'
+                        //
+                        ExclusivePackages.Add(new Tuple<string, 
PythonVersion>(Wheel.Package.Name.Replace('_', '-'), PyInstance.Version));
                     }
                 }
             }
-- 
2.16.2.windows.1


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#50599): https://edk2.groups.io/g/devel/message/50599
Mute This Topic: https://groups.io/mt/56505935/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to