mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
warn when installing git packages, without editable
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
@@ -1666,6 +1666,21 @@ def install(
|
||||
with spinner():
|
||||
c = pip_install(package_name, ignore_hashes=True, allow_global=system, no_deps=False, verbose=verbose, pre=pre)
|
||||
|
||||
# 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'):
|
||||
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}.'
|
||||
'\n To enable this sub–dependency functionality, specify that this dependency is editable.'
|
||||
''.format(
|
||||
crayons.red('Warning', bold=True),
|
||||
crayons.red('$ pipenv lock')
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
click.echo(crayons.blue(format_pip_output(c.out)))
|
||||
|
||||
# Ensure that package was successfully installed.
|
||||
|
||||
Reference in New Issue
Block a user