B
    `’»dš  ã               @   s<   d dl m  mZ d dlZd dlmZ G dd„ dejƒZdS )é    N)ÚSetuptoolsDeprecationWarningc               @   s   e Zd Zddd„Zdd„ ZdS )Úbdist_wininstr   c             C   s    | j  ||¡}|dkrd|_|S )zj
        Supplement reinitialize_command to work around
        http://bugs.python.org/issue20819
        )ÚinstallÚinstall_libN)ÚdistributionÚreinitialize_commandr   )ÚselfÚcommandÚreinit_subcommandsÚcmd© r   úD/tmp/pip-unpacked-wheel-k1jh9j23/setuptools/command/bdist_wininst.pyr      s
    z"bdist_wininst.reinitialize_commandc             C   s0   t  dt¡ d| _ztj | ¡ W d d| _X d S )Nznbdist_wininst is deprecated and will be removed in a future version. Use bdist_wheel (wheel packages) instead.TF)ÚwarningsÚwarnr   Z_is_runningÚorigr   Úrun)r   r   r   r   r      s    zbdist_wininst.runN)r   )Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r   r      s   
r   )Zdistutils.command.bdist_wininstr	   r   r   r   Ú
setuptoolsr   r   r   r   r   Ú<module>   s   