HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/lib/python3.7/site-packages/pip/_internal/commands/__pycache__/wheel.cpython-37.pyc
B

L��gL�@s�ddlZddlZddlZddlmZddlmZddlmZddl	m
Z
ddlmZm
Z
ddlmZddlmZdd	lmZdd
lmZmZddlmZmZddlmZdd
lmZmZe�e �Z!Gdd�de�Z"dS)�N)�Values)�List)�
WheelCache)�
cmdoptions)�RequirementCommand�with_cleanup)�SUCCESS)�CommandError)�get_build_tracker)�InstallRequirement�check_legacy_setup_py_options)�
ensure_dir�normalize_path)�
TempDirectory)�build�should_build_for_wheel_commandc@s<eZdZdZdZdd�dd�Zeeee	e
d�dd	��ZdS)
�WheelCommanda�
    Build Wheel archives for your requirements and dependencies.

    Wheel is a built-package format, and offers the advantage of not
    recompiling your software during every install. For more details, see the
    wheel docs: https://wheel.readthedocs.io/en/latest/

    'pip wheel' uses the build system interface as described here:
    https://pip.pypa.io/en/stable/reference/build-system/

    z�
      %prog [options] <requirement specifier> ...
      %prog [options] -r <requirements file> ...
      %prog [options] [-e] <vcs project url> ...
      %prog [options] [-e] <local project path> ...
      %prog [options] <archive url/path> ...N)�returncCs�|jjddddtjdd�|j�t���|j�t���|j�t���|j�t���|j�t�	��|j�t�
��|j�t���|j�t���|j�t�
��|j�t���|j�t���|j�t���|j�t���|j�t���|jjddd	d
dd�|j�t���|j�t���|j�t���|jjd
d	d
dd�|j�t���t�tj|j�}|j�d|�|j�d|j�dS)Nz-wz--wheel-dir�	wheel_dir�dirzLBuild wheels into <dir>, where the default is the current working directory.)�dest�metavar�default�helpz--no-verify�	no_verify�
store_trueFz%Don't verify if built wheel is valid.)r�actionrrz--prezYInclude pre-release and development versions. By default, pip only finds stable versions.)rrrr)�cmd_opts�
add_option�os�curdirr�	no_binary�only_binary�
prefer_binary�no_build_isolation�
use_pep517�
no_use_pep517Zcheck_build_deps�constraints�editable�requirements�src�ignore_requires_python�no_deps�progress_bar�config_settings�
build_options�global_options�require_hashes�make_option_group�index_group�parser�insert_option_group)�self�
index_opts�r8�@/tmp/pip-unpacked-wheel-hv55ucu3/pip/_internal/commands/wheel.py�add_options,sRzWheelCommand.add_options)�options�argsrcCs�|�|�}|�||�}t|j�|_t|j�|�t��}t|jddd�}|�	||||�}t
||�t|j�}|j
||||||jd|jd�}	|j|	||||j|jd�}
|�|�|
j|dd�}g}x6|j��D](}
|
jr�|	�|
�q�t|
�r�|�|
�q�W|	�|j���|��t|||j|j�p(g|j�p2gd�\}}x�|D]|}
|
j �rX|
j j�s\t!�|
j"�sht!�yt#�$|
j"|j�Wn>t%k
�r�}zt&�'d	|
j(|�|�|
�Wdd}~XYnX�qBWt)|�d
k�r�t*d��t+S)N�wheelT)�delete�kind�globally_managedF)�temp_build_dirr;�
build_tracker�session�finder�download_dir�
use_user_site�	verbosity)�preparerrDr;�wheel_cacher+r%)�check_supported_wheels)rI�verifyr/r0z Building wheel for %s failed: %srz"Failed to build one or more wheels),�get_default_session�_build_package_finderrrr
�
enter_contextr
r�no_clean�get_requirementsrr�	cache_dir�make_requirement_preparerrG�
make_resolverr+r%�trace_basic_info�resolver)�values�is_wheelZsave_linked_requirementr�appendZ prepare_linked_requirements_moreZ#warn_legacy_versions_and_specifiersrrr/r0�link�AssertionError�local_file_path�shutil�copy�OSError�logger�warning�name�lenr	r)r6r;r<rCrDrB�	directory�reqsrIrH�resolver�requirement_set�
reqs_to_build�req�build_successes�build_failures�er8r8r9�rungst








"zWheelCommand.run)�__name__�
__module__�__qualname__�__doc__�usager:rrr�str�intrlr8r8r8r9rs
;r)#�loggingrr\�optparser�typingr�pip._internal.cacherZpip._internal.clir�pip._internal.cli.req_commandrr�pip._internal.cli.status_codesr�pip._internal.exceptionsr	Z,pip._internal.operations.build.build_trackerr
Zpip._internal.req.req_installrr�pip._internal.utils.miscr
r�pip._internal.utils.temp_dirr�pip._internal.wheel_builderrr�	getLoggerrmr_rr8r8r8r9�<module>s