improvements to windows and such

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
2017-09-12 12:32:03 -04:00
parent 81e44ea039
commit 399132dcf8
+15 -9
View File
@@ -66,18 +66,24 @@ BAD_PACKAGES = (
'pyparsing', 'appdirs', 'pipenv'
)
now = time.localtime()
if os.name != 'nt':
now = time.localtime()
# Halloween easter-egg.
if ((now.tm_mon == 10) and (now.tm_day == 30)) or ((now.tm_mon == 10) and (now.tm_day == 31)):
INSTALL_LABEL = '🎃 '
# Halloween easter-egg.
if ((now.tm_mon == 10) and (now.tm_day == 30)) or ((now.tm_mon == 10) and (now.tm_day == 31)):
INSTALL_LABEL = '🎃 '
# Chrismas easter-egg.
elif ((now.tm_mon == 12) and (now.tm_day == 24)) or ((now.tm_mon == 12) and (now.tm_day == 25)):
INSTALL_LABEL = '🎅 '
# Chrismas easter-egg.
elif ((now.tm_mon == 12) and (now.tm_day == 24)) or ((now.tm_mon == 12) and (now.tm_day == 25)):
INSTALL_LABEL = '🎅 '
else:
INSTALL_LABEL = '🐍 '
INSTALL_LABEL2 = crayons.white('', bold=True)
else:
INSTALL_LABEL = '🐍 '
INSTALL_LABEL = ' '
INSTALL_LABEL2 = ' '
# Enable shell completion.
click_completion.init()
@@ -421,7 +427,7 @@ def do_install_dependencies(
click.echo(crayons.white(u'Installing initiallyfailed dependencies…', bold=True))
for dep, ignore_hash in progress.bar(failed_deps_list, label=crayons.white('', bold=True) if os.name != 'nt' else ''):
for dep, ignore_hash in progress.bar(failed_deps_list, label=INSTALL_LABEL2):
# Install the module.
c = pip_install(
dep,