192c4ae Fix broken uninstallation by a bogus downstream patch

Authored and Committed by churchyard 2 years ago
    Fix broken uninstallation by a bogus downstream patch
    
    In pip 21.2, the Distribution here is a wrapper around the regular Distribution.
    It has a limited set of API defined by the BaseDistribution protocol.
    dist_location() uses the project_name attribute under the hood --
    and that is not part of the API.
    
    If we ever upstream this, we should make this check a property of BaseDistribution.
    But, for now, we hotfix it by accessing the private wrapped Distribution object directly.
    Yes, this is ugly.
    
        
file modified
+4 -1