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/lib/python3.9/site-packages/pip/_internal/commands/__pycache__/wheel.cpython-39.pyc
a

?�f�@s�ddlmZddlZddlZddlZddlmZddlmZddl	m
Z
mZddlm
Z
ddlmZddlmZdd	lmZmZdd
lmZddlmZddlmZmZer�dd
lmZddlmZe� e!�Z"Gdd�de
�Z#dS)�)�absolute_importN)�
WheelCache)�
cmdoptions)�RequirementCommand�with_cleanup)�SUCCESS)�CommandError)�get_requirement_tracker)�
ensure_dir�normalize_path)�
TempDirectory)�MYPY_CHECK_RUNNING)�build�should_build_for_wheel_command)�Values)�Listc@s(eZdZdZdZdd�Zedd��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/

    Requirements: setuptools>=0.8, and wheel.

    'pip wheel' uses the bdist_wheel setuptools extension from the wheel
    package to build individual wheels.

    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> ...cCs||jjddddtjdd�|j�t���|j�t���|j�t���|jjddd	d
dd�|j�t���|j�t�	��|j�t�
��|j�t���|j�t���|j�t�
��|j�t���|j�t���|j�t���|j�t���|j�t���|jjd
dd
d	dd�|jjddddd�|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--build-option�
build_options�options�appendz9Extra arguments to be supplied to 'setup.py bdist_wheel'.)rr�actionrz--global-option�global_optionszZExtra global options to be supplied to the setup.py call before the 'bdist_wheel' command.)rrrrz--pre�
store_trueFzYInclude pre-release and development versions. By default, pip only finds stable versions.)rrrr)Zcmd_optsZ
add_option�os�curdirrZ	no_binaryZonly_binaryZ
prefer_binaryZno_build_isolation�
use_pep517Z
no_use_pep517�constraintsZeditable�requirements�src�ignore_requires_pythonZno_deps�	build_dirZprogress_barZrequire_hashesZmake_option_groupZindex_group�parserZinsert_option_group)�selfZ
index_opts�r)�@/usr/lib/python3.9/site-packages/pip/_internal/commands/wheel.py�add_options2s`�����zWheelCommand.add_optionscCs�t�|�|�|�}|�||�}|jp*|j}t|j|j�}t	|j
�|_
t|j
�|�t
��}t|j|ddd�}|�||||�}	|j||||||j
dd�}
|j|
||||j|jd�}|�|�|j|	dd�}dd	�|j��D�}
t|
||jp�g|jp�gd
�\}}|D]~}|j�r|jj�sJ�|j�s*J�zt�|j|j
�Wn@t �y~}z&t!�"d|j#|�|�$|�WYd}~n
d}~00�qt%|�dk�r�t&d
��t'S)NZwheelT)�delete�kindZglobally_managedF)Ztemp_build_dirr�req_tracker�session�finderZwheel_download_dirZ
use_user_site)�preparerr0r�wheel_cacher%r!)Zcheck_supported_wheelscSsg|]}t|�r|�qSr))r)�.0�rr)r)r*�
<listcomp>�s�z$WheelCommand.run.<locals>.<listcomp>)r2rrz Building wheel for %s failed: %srz"Failed to build one or more wheels)(rZcheck_install_build_globalZget_default_sessionZ_build_package_finderZno_cleanr&rZ	cache_dirZformat_controlrrr
�
enter_contextr	rZget_requirementsZmake_requirement_preparerZ
make_resolverr%r!Ztrace_basic_info�resolver#�valuesrrr�linkZis_wheelZlocal_file_path�shutil�copy�OSError�loggerZwarning�namer�lenrr)r(r�argsr/r0Zbuild_deleter2r.Z	directoryZreqsr1ZresolverZrequirement_setZ
reqs_to_buildZbuild_successesZbuild_failuresZreq�er)r)r*�runmsz


��
�	
���
�$�zWheelCommand.runN)�__name__�
__module__�__qualname__�__doc__Zusager+rrBr)r)r)r*rs
;r)$Z
__future__rZloggingrr:Zpip._internal.cacherZpip._internal.clirZpip._internal.cli.req_commandrrZpip._internal.cli.status_codesrZpip._internal.exceptionsrZpip._internal.req.req_trackerr	Zpip._internal.utils.miscr
rZpip._internal.utils.temp_dirrZpip._internal.utils.typingr
Zpip._internal.wheel_builderrrZoptparser�typingrZ	getLoggerrCr=rr)r)r)r*�<module>s$