improvements to pipenv clean

This commit is contained in:
2018-02-24 08:09:12 -05:00
parent 3cbcef41f1
commit 3a82f965b6
+3 -5
View File
@@ -1629,6 +1629,8 @@ def ensure_lockfile():
)
do_lock(pre=pre)
else:
do_lock(pre=pre)
def do_py(system=False):
@@ -2302,11 +2304,7 @@ def do_clean(
# Ensure that virtualenv is available.
ensure_project(three=three, python=python, validate=False)
if not project.lockfile_exists:
click.echo(
'{0}: Could not find Pipfile.lock'.format(crayons.red('Warning'))
)
sys.exit(1)
ensure_lockfile()
installed_packages = delegator.run(
'{0} freeze'.format(which('pip'))