[PATCH] D45211: Try to import parse_requirements from pip._internal.req too.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 3 13:54:58 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL329109: Try to import parse_requirements from pip._internal.req too. (authored by fhahn, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D45211?vs=140796&id=140858#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D45211

Files:
  lnt/trunk/setup.py


Index: lnt/trunk/setup.py
===================================================================
--- lnt/trunk/setup.py
+++ lnt/trunk/setup.py
@@ -1,4 +1,8 @@
-from pip.req import parse_requirements
+try:
+    from pip.req import parse_requirements
+except ImportError:
+    # The req module has been moved to pip._internal in the 10 release.
+    from pip._internal.req import parse_requirements
 import lnt
 import os
 from sys import platform as _platform


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45211.140858.patch
Type: text/x-patch
Size: 456 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180403/01b7ea78/attachment.bin>


More information about the llvm-commits mailing list