mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
easter eggs (but not on easter, it's too hard)
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
+15
-2
@@ -7,6 +7,7 @@ import sys
|
||||
import distutils.spawn
|
||||
import shutil
|
||||
import signal
|
||||
import time
|
||||
import tempfile
|
||||
|
||||
import background
|
||||
@@ -14,7 +15,6 @@ import click
|
||||
import click_completion
|
||||
import crayons
|
||||
import delegator
|
||||
import parse
|
||||
import pexpect
|
||||
import requests
|
||||
import pip
|
||||
@@ -66,6 +66,19 @@ BAD_PACKAGES = (
|
||||
'pyparsing', 'appdirs', 'pipenv'
|
||||
)
|
||||
|
||||
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_EMOJI = u'🎃'
|
||||
|
||||
# Chrismas easter-egg.
|
||||
elif ((now.tm_mon == 12) and (now.tm_day == 24)) or ((now.tm_mon == 12) and (now.tm_day == 25)):
|
||||
INSTALL_EMOJI = u'🎅'
|
||||
|
||||
else:
|
||||
INSTALL_EMOJI = u'🌻'
|
||||
|
||||
# Enable shell completion.
|
||||
click_completion.init()
|
||||
|
||||
@@ -378,7 +391,7 @@ def do_install_dependencies(
|
||||
sys.exit(0)
|
||||
|
||||
# pip install:
|
||||
for dep, ignore_hash in progress.bar(deps_list, label='🌻 ' if os.name != 'nt' else ''):
|
||||
for dep, ignore_hash in progress.bar(deps_list, label='{0} '.format(INSTALL_EMOJI) if os.name != 'nt' else ''):
|
||||
|
||||
# Install the module.
|
||||
c = pip_install(
|
||||
|
||||
Reference in New Issue
Block a user