mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
improvements to windows and such
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
+15
-9
@@ -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 initially–failed 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,
|
||||
|
||||
Reference in New Issue
Block a user