from __future__ import absolute_import

import errno
import itertools
import logging
import os.path
import tempfile
from contextlib import contextmanager

from pipenv.patched.notpip._vendor.contextlib2 import ExitStack
import warnings

from pipenv.patched.notpip._internal.utils.misc import rmtree
from pipenv.patched.notpip._internal.utils.typing import MYPY_CHECK_RUNNING