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

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