관리-도구
편집 파일: wheel_builder.cpython-36.pyc
3 �Re2% � @ s� d Z ddlZddlZddlZddlZddlmZ ddlm Z ddl mZ ddlm Z ddlmZmZmZ ddlmZ dd lmZ dd lmZ ddlmZ ddlmZ dd lmZ e�rddlmZm Z m!Z!m"Z"m#Z#m$Z$ ddl%m&Z& ddl'm(Z( e e(ge)f Z*e$e"e( e"e( f Z+ej,e-�Z.ej/dej0�Z1dd� Z2dd� Z3dd� Z4dd� Z5dd� Z6dd� Z7dd� Z8d d!� Z9d"d#� Z:d$d%� Z;d&d'� Z<dS )(z;Orchestrator for building wheels from InstallRequirements. � N)�Link)�build_wheel_pep517)�build_wheel_legacy)� indent_log)� ensure_dir� hash_file�is_wheel_installed)�make_setuptools_clean_args)�call_subprocess)� TempDirectory)�MYPY_CHECK_RUNNING)�path_to_url)�vcs)�Any�Callable�Iterable�List�Optional�Tuple)� WheelCache)�InstallRequirementz([a-z0-9_.]+)-([a-z0-9_.!+-]+)c C s t tj| ��S )zjDetermine whether the string looks like an egg_info. :param s: The string to parse. E.g. foo-2.1 )�bool�_egg_info_re�search)�s� r ��/builddir/build/BUILDROOT/alt-python36-pip-20.2.4-5.el8.x86_64/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/wheel_builder.py�_contains_egg_info% s r c C s� | j r dS | jr&|r"tjd| j� dS |r.dS | js<| j r@dS || �sZtjd| j� dS | j r|t� r|tjd| j� dS dS )zBReturn whether an InstallRequirement should be built into a wheel.Fz(Skipping %s, due to already being wheel.TzCSkipping wheel build for %s, due to binaries being disabled for it.zOUsing legacy 'setup.py install' for %s, since package 'wheel' is not installed.) � constraint�is_wheel�logger�info�name�editable� source_dir� use_pep517r )�req� need_wheel�check_binary_allowedr r r � _should_build. s, r) c C s t | dtd�S )NT)r'