Blame SOURCES/pip-allow-different-versions.patch

49df85
--- /usr/bin/pip3	2019-11-12 17:37:34.793131862 +0100
49df85
+++ pip3	2019-11-12 17:40:42.014107134 +0100
49df85
@@ -2,7 +2,23 @@
49df85
 # -*- coding: utf-8 -*-
49df85
 import re
49df85
 import sys
49df85
-from pip._internal.cli.main import main
49df85
+
49df85
+try:
49df85
+    from pip._internal.cli.main import main
49df85
+except ImportError:
49df85
+    try:
49df85
+        from pip._internal.main import main
49df85
+    except ImportError:
49df85
+        try:
49df85
+            # If the user has downgraded pip, the above import will fail.
49df85
+            # Let's try older methods of invoking it:
49df85
+
49df85
+            # pip 19 uses this
49df85
+            from pip._internal import main
49df85
+        except ImportError:
49df85
+            # older pip versions use this
49df85
+            from pip import main
49df85
+
49df85
 if __name__ == '__main__':
49df85
     sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
49df85
     sys.exit(main())