windows improvements

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
2017-09-20 20:06:29 -04:00
parent 7bc1ccc98c
commit ced96875f5
+7 -2
View File
@@ -88,9 +88,11 @@ if not PIPENV_HIDE_EMOJIS:
INSTALL_LABEL = '🐍 '
INSTALL_LABEL2 = crayons.white('', bold=True)
STARTING_LABEL = ' '
else:
INSTALL_LABEL = ' '
INSTALL_LABEL2 = ' '
STARTING_LABEL = ' '
# Enable shell completion.
click_completion.init()
@@ -645,11 +647,11 @@ def do_install_dependencies(
# Load the lockfile if it exists, or if only is being used (e.g. lock is being used).
if skip_lock or only or not project.lockfile_exists:
if not bare:
click.echo(crayons.white(u'Installing dependencies (concurrently) from Pipfile…', bold=True))
click.echo(crayons.white(u'Installing dependencies from Pipfile…', bold=True))
lockfile = split_vcs(project._lockfile)
else:
if not bare:
click.echo(crayons.white(u'Installing dependencies (concurrently) from Pipfile.lock…', bold=True))
click.echo(crayons.white(u'Installing dependencies from Pipfile.lock…', bold=True))
with open(project.lockfile_location) as f:
lockfile = split_vcs(json.load(f))
@@ -688,6 +690,9 @@ def do_install_dependencies(
procs = []
# pip install:
if os.name == 'nt':
deps_list = progress.bar(deps_list, label=STARTING_LABEL if os.name != 'nt' else '')
for dep, ignore_hash in deps_list:
# Install the module.