Fix venv cache support for local folders

This commit is contained in:
allegroai 2021-02-28 19:47:09 +02:00
parent 9c257858dd
commit f019905720

View File

@ -21,7 +21,8 @@ class ExternalRequirements(SimpleSubstitution):
# noinspection PyBroadException
try:
if not req.name and req.req and not req.req.editable and not req.req.vcs and \
req.req.line and not req.req.line.strip().split('#')[0].lower().endswith('.whl'):
req.req.line and req.req.line.strip().split('#')[0] and \
not req.req.line.strip().split('#')[0].lower().endswith('.whl'):
return True
except Exception:
pass