From 14bf175aa7372f875591153056cde0319e6d7dc2 Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Wed, 16 Sep 2020 10:19:53 +0100 Subject: [PATCH] Strip out any pip flags when parsing requirements. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 8133f1ddb72..08c84344eaa 100755 --- a/setup.py +++ b/setup.py @@ -256,7 +256,7 @@ def _parse_requirements_file(requirements_file): with open(requirements_file) as rfh: for line in rfh.readlines(): line = line.strip() - if not line or line.startswith(("#", "-r")): + if not line or line.startswith(("#", "-r", "--")): continue if IS_WINDOWS_PLATFORM: if "libcloud" in line: