mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
+3
-3
@@ -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! ✨ 🍰 ✨')
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user