From 9a6e009a3e4ff8d196a7e09b95b9d075a5bae550 Mon Sep 17 00:00:00 2001 From: Ofek Lev Date: Thu, 2 Mar 2023 13:41:20 -0500 Subject: [PATCH] Remove erroneous runtime dependence on setuptools --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 04bc04cd3..49fae21d4 100644 --- a/setup.py +++ b/setup.py @@ -35,7 +35,9 @@ with open('requirements.txt') as f: for line in f: line, _, _ = line.partition('#') line = line.strip() - if ';' in line: + if not line or line.startswith('setuptools'): + continue + elif ';' in line: requirement, _, specifier = line.partition(';') for_specifier = EXTRAS.setdefault(':{}'.format(specifier), []) for_specifier.append(requirement)