관리-도구
편집 파일: legacy.pyc
� �Rec @ s! d Z d d l Z d d l Z d d l Z d d l m Z d d l m Z d d l m Z d d l m Z d d l m Z d d l m Z d d l m Z d d l m Z e r� d d l m Z m Z m Z d d l m Z d d l m Z n e j e � Z d e f d � � YZ d � Z! d S( s6 Legacy installation process, i.e. `setup.py install`. i����N( t change_root( t InstallationError( t indent_log( t ensure_dir( t make_setuptools_install_args( t runner_with_spinner_message( t TempDirectory( t MYPY_CHECK_RUNNING( t Listt Optionalt Sequence( t BuildEnvironment( t Schemet LegacyInstallFailurec B s e Z d � Z RS( c C s t j � | _ d S( N( t syst exc_infot parent( t self( ( s� /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/operations/install/legacy.pyt __init__ s ( t __name__t __module__R ( ( ( s� /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/operations/install/legacy.pyR s c sf | j } t d d � �} y� t j j | j d � } t | d | d | d | d � d | d | d | d | d | d | � } t d j | � � } t � �% | � | d | d | � Wd QXWd QXt j j | � s� t j d | � t SWn t k rt � n Xt | � � } | j � j � } Wd QXWd QX� f d � } xZ | D]7 } t j j | � } | j d � rG| | � } PqGqGWd j | � } t | � � g } xa | D]Y } | j � } t j j | � r�| t j j 7} n | j t j j | | � | � � q�W| j � t | � t j j | d � } t | d � �! } | j d j | � d � Wd QXt S( Nt kindt records install-record.txtt global_optionst install_optionst record_filenamet roott prefixt header_dirt homet use_user_sitet no_user_configt pycompiles Running setup.py install for {}t cmdt cwds Record file %s not foundc s4 � d k s t j j | � r# | St � | � Sd S( N( t Nonet ost patht isabsR ( R% ( R ( s� /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/operations/install/legacy.pyt prepend_root` s s .egg-infos� {} did not indicate that it installed an .egg-info directory. Only setup.py projects generating .egg-info directories are supported.s installed-files.txtt ws ( t headersR R$ R% t joinR R t formatR t existst loggert debugt Falset ExceptionR t opent readt splitlinest dirnamet endswithR t stript isdirt sept appendt relpatht sortR t writet True( R R R R R R R t schemet setup_py_patht isolatedt req_namet build_envt unpacked_source_directoryt req_descriptionR t temp_dirR t install_argst runnert ft record_linesR'