Fix setup.py Regarding Optional Dependencies (#3209)

This commit is contained in:
Bibo-Joshi 2022-08-27 13:23:17 +02:00 committed by GitHub
parent 0e044804d2
commit abfcf72a56
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,8 +48,11 @@ def get_optional_requirements(raw=False):
dependency = dependency.strip()
for name in names.split(","):
name = name.strip()
if name.endswith("!ext") and raw:
if name.endswith("!ext"):
if raw:
continue
else:
name = name[:-4]
requirements[name].append(dependency)
return requirements