OwlCyberSecurity - MANAGER
Edit File: wheel_legacy.cpython-35.pyc
��Re � @ s� d d l Z d d l Z d d l m Z d d l m Z d d l m Z m Z m Z d d l m Z e r� d d l m Z m Z m Z e j e � Z d d � Z d d � Z d d � Z d S) � N)�open_spinner)� make_setuptools_bdist_wheel_args)�LOG_DIVIDER�call_subprocess�format_command_args)�MYPY_CHECK_RUNNING)�List�Optional�Textc C s� t | � } d j | � } | s. | d 7} nQ t j � t j k rP | d 7} n/ | j d � si | d 7} | d j | t � 7} | S)z'Format command information for logging.zCommand arguments: {} zCommand output: Nonez'Command output: [use --verbose to show]� zCommand output: {}{})r �format�logger�getEffectiveLevel�logging�DEBUG�endswithr )�command_args�command_output�command_desc�text� r ��/builddir/build/BUILDROOT/alt-python35-pip-20.2.4-5.el8.x86_64/opt/alt/python35/lib/python3.5/site-packages/pip/_internal/operations/build/wheel_legacy.py�format_command_result s r c C s� t | � } | sE d j | � } | t | | � 7} t j | � d St | � d k r� d j | | � } | t | | � 7} t j | � t j j | | d � S)z>Return the path to the wheel in the temporary build directory.z1Legacy build of wheel for {!r} created no files. N� zZLegacy build of wheel for {!r} created more than one file. Filenames (choosing first): {} r ) �sortedr r r �warning�len�os�path�join)�names�temp_dir�namer r �msgr r r �get_legacy_build_wheel_path* s r$ c C s� t | d | d | d | �} d j | � } t | � �� } t j d | � y t | d | d | �} Wn3 t k r� | j d � t j d | � d SYn Xt j | � } t d | d | d | d | d | � } | SWd QRXd S)z�Build one unpacked package using the "legacy" build process. Returns path to wheel if successfully built. Otherwise, returns None. �global_options� build_options�destination_dirz Building wheel for {} (setup.py)zDestination directory: %s�cwd�spinner�errorzFailed building wheel for %sNr r! r"