PIPENV_HIDE_EMOJIS

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
2017-09-12 12:33:55 -04:00
parent 399132dcf8
commit 593ab8825b
2 changed files with 7 additions and 3 deletions
+3 -3
View File
@@ -36,7 +36,7 @@ from . import pep508checker, progress
from .environments import (
PIPENV_COLORBLIND, PIPENV_NOSPIN, PIPENV_SHELL_COMPAT,
PIPENV_VENV_IN_PROJECT, PIPENV_USE_SYSTEM, PIPENV_TIMEOUT,
PIPENV_SKIP_VALIDATION
PIPENV_SKIP_VALIDATION, PIPENV_HIDE_EMOJIS
)
# Backport required for earlier versions of Python.
@@ -66,7 +66,7 @@ BAD_PACKAGES = (
'pyparsing', 'appdirs', 'pipenv'
)
if os.name != 'nt':
if not PIPENV_HIDE_EMOJIS:
now = time.localtime()
# Halloween easter-egg.
@@ -930,7 +930,7 @@ def kr_easter_egg(package_name):
if package_name in ['requests', 'maya', 'crayons', 'delegator.py', 'records', 'tablib', 'background', 'clint']:
# Windows built-in terminal lacks proper emoji taste.
if os.name == 'nt':
if PIPENV_HIDE_EMOJIS:
click.echo(u'P.S. You have excellent taste!')
else:
click.echo(u'P.S. You have excellent taste! ✨ 🍰 ✨')
+4
View File
@@ -42,5 +42,9 @@ if os.name == 'nt':
# Tells pip to pass extra stuff to $ pip install.
PIPENV_PIP_INSTALL_FLAGS = os.environ.get('PIPENV_PIP_INSTALL_FLAGS')
PIPENV_HIDE_EMOJIS = os.environ.get('PIPENV_HIDE_EMOJIS')
if os.name == 'nt':
PIPENV_HIDE_EMOJIS = True
# Tells pipenv how long to wait for virtualenvs to be created in seconds
PIPENV_TIMEOUT = int(os.environ.get('PIPENV_TIMEOUT', 120))