Skip to content

Commit

Permalink
Add more VCS checks, fixes #806
Browse files Browse the repository at this point in the history
  • Loading branch information
techalchemy committed Oct 2, 2017
1 parent 6e32b6f commit ec57146
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pipenv/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1800,7 +1800,7 @@ def install(
# Warn if --editable wasn't passed.
converted = convert_deps_from_pip(package_name)
key = [k for k in converted.keys()][0]
if is_vcs(converted[key]) and not converted[key].get('editable'):
if is_vcs(key) or is_vcs(converted[key]) and not converted[key].get('editable'):
click.echo(
'{0}: You installed a VCS dependency in non–editable mode. '
'This will work fine, but sub-depdendencies will not be resolved by {1}.'
Expand Down
2 changes: 2 additions & 0 deletions pipenv/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,8 @@ def is_vcs(pipfile_entry):

if hasattr(pipfile_entry, 'keys'):
return any(key for key in pipfile_entry.keys() if key in VCS_LIST)
elif isinstance(pipfile_entry, six.string_types):
return pipfile_entry.startswith(VCS_LIST)
return False


Expand Down

0 comments on commit ec57146

Please sign in to comment.