관리-도구
편집 파일: bdist_wininst.cpython-34.pyc
� M�Re� � @ sB d d l m Z d d l Z d d l Z Gd d � d e � Z d S)� )� bdist_wininstNc @ sn e Z d Z d Z Z d d d � Z d d � Z d d d � Z d d � Z e e d � sj d d � Z n d S)r Nc C sh t j | | | | � | j | � } | j rL | j } d d | f | _ n d } d | | f | _ d S)Nr �any)�_bdist_wininst� create_exe�get_installer_filename�target_version�_bad_upload�_good_upload)�self�arcname�fullnameZbitmap�installer_nameZ pyversion� r �;/tmp/pip-l4uy7dan-build/setuptools/command/bdist_wininst.pyr s zbdist_wininst.create_exec C sd | j | j } } t | j d g � } | | k rD | j | � n | | k r` | j | � n d S)N� dist_files)r r �getattr�distribution�remove�append)r Zgood�badr r r r �_fix_upload_names s zbdist_wininst._fix_upload_namesr c C s1 | j j | | � } | d k r- d | _ n | S)N�install�install_lib)zinstallzinstall_lib)r �reinitialize_commandr )r �command�reinit_subcommands�cmdr r r r s z"bdist_wininst.reinitialize_commandc C s5 d | _ z t j | � | j � Wd d | _ Xd S)NTF)Z_is_runningr �runr )r r r r r ! s zbdist_wininst.runr c C sQ | j r1 t j j | j d | | j f � } n t j j | j d | � } | S)Nz%s.win32-py%s.exez%s.win32.exe)r �os�path�joinZdist_dir)r r r r r r r + s z$bdist_wininst.get_installer_filename)�__name__� __module__�__qualname__r r r r r r �hasattrr r r r r r r s r )Zdistutils.command.bdist_wininstr r r �sysr r r r �<module> s