File 95.patch of Package python-pip2pi

From 27aed07893b256f4a25ed64644eefdfea9a0969a Mon Sep 17 00:00:00 2001
From: Marcelo Garnica <marcelo.garnica@jalasoft.com>
Date: Fri, 6 Dec 2019 18:32:20 -0400
Subject: [PATCH] import main function from pip._internal for pip 19.3.1

---
 libpip2pi/commands.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/libpip2pi/commands.py b/libpip2pi/commands.py
index 65d6cde..7bf3b2f 100644
--- a/libpip2pi/commands.py
+++ b/libpip2pi/commands.py
@@ -39,7 +39,11 @@ def try_int(x):
 
 
 if pip_version:
-    if pip_version >= (10, 0, 0):
+    if pip_version >= (19, 3, 1):
+        from pip._internal.main import main as pip_main
+        pip_download_command = 'download --dest'
+        pip_no_binary_command = '--no-binary=:all:'
+    elif pip_version >= (10, 0, 0):
         from pip._internal import main as pip_main
         pip_download_command = 'download --dest'
         pip_no_binary_command = '--no-binary=:all:'
openSUSE Build Service is sponsored by