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

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