[LNT] r293974 - In some old versions of pip there is no session flag
Chris Matthews via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 2 16:52:22 PST 2017
Author: cmatthews
Date: Thu Feb 2 18:52:22 2017
New Revision: 293974
URL: http://llvm.org/viewvc/llvm-project?rev=293974&view=rev
Log:
In some old versions of pip there is no session flag
If we explode, try not using that flag.
Modified:
lnt/trunk/setup.py
Modified: lnt/trunk/setup.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/setup.py?rev=293974&r1=293973&r2=293974&view=diff
==============================================================================
--- lnt/trunk/setup.py (original)
+++ lnt/trunk/setup.py Thu Feb 2 18:52:22 2017
@@ -28,8 +28,11 @@ if "--server" in sys.argv:
req_file = "requirements.server.txt"
else:
req_file = "requirements.client.txt"
-
-install_reqs = parse_requirements(req_file, session=False)
+try:
+ install_reqs = parse_requirements(req_file, session=False)
+except TypeError:
+ # In old PIP the session flag cannot be passed.
+ install_reqs = parse_requirements(req_file)
reqs = [str(ir.req) for ir in install_reqs]
More information about the llvm-commits
mailing list