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

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