mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
missing support for ~= in check?
also fixed comment typo
This commit is contained in:
committed by
Nate Prewitt
parent
35a0533e1a
commit
b9c3f4f635
+2
-2
@@ -870,8 +870,8 @@ def is_installable_file(path):
|
||||
if not isinstance(path, six.string_types) or path == '*':
|
||||
return False
|
||||
# If the string starts with a valid specifier operator, test if it is a valid
|
||||
# specifier set before making a path object (to avoid breakng windows)
|
||||
if any(path.startswith(spec) for spec in '!=<>'):
|
||||
# specifier set before making a path object (to avoid breaking windows)
|
||||
if any(path.startswith(spec) for spec in '!=<>~'):
|
||||
try:
|
||||
pip.utils.packaging.specifiers.SpecifierSet(path)
|
||||
# If this is not a valid specifier, just move on and try it as a path
|
||||
|
||||
Reference in New Issue
Block a user