U
    e                     @   sH   d dl Z d dlZd dlZd dlZddlmZ dd Zdd Zdd	 Z	dS )
    N   )monkeyc                 C   s   | j tjk S )N)levelnologgingWARNING)record r   c/mounts/lovelace/software/anaconda3/envs/rescript/lib/python3.8/site-packages/setuptools/logging.py_not_warning   s    r
   c                  C   sr   t  } | t j t tj}|t | |f}t jdd|t j	d t
tjjrntttjd tjtj_dS )z
    Configure logging to emit warning and above to stderr
    and everything else to stdout. This behavior is provided
    for compatibility with distutils.log but may change in
    the future.
    z	{message}{)formatstylehandlerslevelset_thresholdN)r   StreamHandlersetLevelr   sysstdout	addFilterr
   basicConfigDEBUGinspectismodule	distutilsdistlogr   Z
patch_funcr   )Zerr_handlerZout_handlerr   r   r   r	   	configure   s    
   r   c                 C   s   t j| d  t| S )N
   )r   rootr   r   Z	unpatched)r   r   r   r	   r   $   s    r   )
r   r   r   Zdistutils.logr    r   r
   r   r   r   r   r   r	   <module>   s   