mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
@@ -167,7 +167,7 @@ class PyPIRepository(BaseRepository):
|
||||
all_candidates = []
|
||||
for c in self.find_all_candidates(ireq.name):
|
||||
python_specifier = SpecifierSet(c.requires_python)
|
||||
if not python_specifier.contains(py_version):
|
||||
if c.requires_python and not python_specifier.contains(py_version):
|
||||
continue
|
||||
all_candidates.append(c)
|
||||
|
||||
|
||||
@@ -138,7 +138,7 @@ index 1c4b943..a15c23b 100644
|
||||
+ all_candidates = []
|
||||
+ for c in self.find_all_candidates(ireq.name):
|
||||
+ python_specifier = SpecifierSet(c.requires_python)
|
||||
+ if not python_specifier.contains(py_version):
|
||||
+ if c.requires_python and not python_specifier.contains(py_version):
|
||||
+ continue
|
||||
+ all_candidates.append(c)
|
||||
+
|
||||
|
||||
Reference in New Issue
Block a user