ó ïRec@s·ddlZddlZddlmZddlmZddlmZm Z m Z ddl m Z e r‰ddl mZmZmZnejeƒZd„Zd„Zd „ZdS( iÿÿÿÿN(t open_spinner(t make_setuptools_bdist_wheel_args(t LOG_DIVIDERtcall_subprocesstformat_command_args(tMYPY_CHECK_RUNNING(tListtOptionaltTextcCs†t|ƒ}dj|ƒ}|s.|d7}nTtjƒtjkrP|d7}n2|jdƒsl|d7}n|dj|tƒ7}|S(s'Format command information for logging.sCommand arguments: {} sCommand output: Nones'Command output: [use --verbose to show]s sCommand output: {}{}(RtformattloggertgetEffectiveLeveltloggingtDEBUGtendswithR(t command_argstcommand_outputt command_descttext((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/build/wheel_legacy.pytformat_command_results    cCs£t|ƒ}|sEdj|ƒ}|t||ƒ7}tj|ƒdSt|ƒdkrŒdj||ƒ}|t||ƒ7}tj|ƒntjj ||dƒS(s>Return the path to the wheel in the temporary build directory.s1Legacy build of wheel for {!r} created no files. isZLegacy build of wheel for {!r} created more than one file. Filenames (choosing first): {} iN( tsortedR RR twarningtNonetlentostpathtjoin(tnamesttemp_dirtnameRRtmsg((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/build/wheel_legacy.pytget_legacy_build_wheel_path*s    c CsÞt|d|d|d|ƒ}dj|ƒ}t|ƒŸ}tjd|ƒyt|d|d|ƒ} Wn/tk r™|jdƒtjd |ƒdSXt j |ƒ} t d | d |d |d |d| ƒ} | SWdQXdS(sŒBuild one unpacked package using the "legacy" build process. Returns path to wheel if successfully built. Otherwise, returns None. tglobal_optionst build_optionstdestination_dirs Building wheel for {} (setup.py)sDestination directory: %stcwdtspinnerterrorsFailed building wheel for %sRRRRRN( RR RR tdebugRt ExceptiontfinishR%RRtlistdirR( Rt setup_py_patht source_dirR R!ttempdt wheel_argst spin_messageR$toutputRt wheel_path((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/build/wheel_legacy.pytbuild_wheel_legacyHs2      (R tos.pathRtpip._internal.cli.spinnersRt$pip._internal.utils.setuptools_buildRtpip._internal.utils.subprocessRRRtpip._internal.utils.typingRttypingRRRt getLoggert__name__R RRR1(((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/build/wheel_legacy.pyts