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

875274
--- /usr/bin/pip3	2018-03-29 15:22:13.000000000 +0200
875274
+++ pip3	2018-05-04 11:49:08.098821010 +0200
875274
@@ -4,7 +4,16 @@
875274
 import re
875274
 import sys
875274
 
875274
-from pip._internal import main
875274
+try:
875274
+    from pip._internal import main
875274
+except ImportError:
875274
+    # user has most probably downgraded pip in their home
875274
+    # so let them run it anyway until ~/.local/bin makes it in front of the PATH
875274
+    from pip import main
875274
+else:
875274
+    # user might also upgraded pip...
875274
+    if hasattr(main, 'main'):
875274
+        main = main.main
875274
 
875274
 if __name__ == '__main__':
875274
     sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])