a
    –Î`š  ã                   @   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v rd|_|S )zj
        Supplement reinitialize_command to work around
        http://bugs.python.org/issue20819
        )ZinstallÚinstall_libN)ZdistributionÚreinitialize_commandr   )ÚselfÚcommandZreinit_subcommandsÚcmd© r	   úB/usr/lib/python3/dist-packages/setuptools/command/bdist_wininst.pyr      s    ÿz"bdist_wininst.reinitialize_commandc                 C   s6   t  dt¡ d| _ztj | ¡ W d| _nd| _0 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   Z
setuptoolsr   r	   r	   r	   r
   Ú<module>   s   