U n a @sddlZddlZddlmZddlmZddlmZm Z m Z ddl m Z e r`ddl mZmZmZeeZddZd d Zd d ZdS) N) open_spinner) make_setuptools_bdist_wheel_args) LOG_DIVIDERcall_subprocessformat_command_args)MYPY_CHECK_RUNNING)ListOptionalTextcCs^t|}d|}|s |d7}n:ttjkr8|d7}n"|dsJ|d7}|d|t7}|S)z'Format command information for logging.zCommand arguments: {} zCommand output: Nonez'Command output: [use --verbose to show] zCommand output: {}{})rformatloggergetEffectiveLevelloggingDEBUGendswithr) command_argscommand_output command_desctextrlC:\Users\vtejo\AppData\Local\Temp\pip-unpacked-wheel-6mt8ur68\pip\_internal\operations\build\wheel_legacy.pyformat_command_results    rcCstt|}|s2d|}|t||7}t|dSt|dkrbd||}|t||7}t|tj||dS)z>Return the path to the wheel in the temporary build directory.z1Legacy build of wheel for {!r} created no files. NzZLegacy build of wheel for {!r} created more than one file. Filenames (choosing first): {} r) sortedr rr warninglenospathjoin)namestemp_dirnamerrmsgrrrget_legacy_build_wheel_path*s$    r$c Cst||||d}d|}t|}td|zt|||d} Wn6tk rx|dtd|YW5QRdSXt |} t | |||| d} | W5QRSQRXdS) zBuild one unpacked package using the "legacy" build process. Returns path to wheel if successfully built. Otherwise, returns None. )global_options build_optionsdestination_dirz Building wheel for {} (setup.py)zDestination directory: %s)cwdspinnererrorzFailed building wheel for %sN)r r!r"rr) rr rr debugr Exceptionfinishr*rlistdirr$) r" setup_py_path source_dirr%r&tempd wheel_args spin_messager)outputr wheel_pathrrrbuild_wheel_legacyHs8        r6)ros.pathrpip._internal.cli.spinnersr$pip._internal.utils.setuptools_buildrpip._internal.utils.subprocessrrrpip._internal.utils.typingrtypingrr r getLogger__name__r rr$r6rrrrs