Allow pycrypto to be included in parsed requirements

This commit is contained in:
Pedro Algarvio 2020-01-31 21:11:38 +00:00
parent 69a3d33f09
commit ac90bb4d9f
No known key found for this signature in database
GPG key ID: BB36BF6584A298FF

View file

@ -206,7 +206,7 @@ def _parse_requirements_file(requirements_file):
except ValueError:
pkg, pyverspec = line, ''
pyverspec = pyverspec.strip()
if pyverspec:
if pyverspec and (not pkg.startswith('pycrypto') or pkg.startswith('pycryptodome')):
_, op, ver = pyverspec.split(' ', 2)
if not _check_ver(platform.python_version(), _parse_op(op), _parse_ver(ver)):
continue