File manager - Edit - /opt/imunify360/venv/lib/python3.11/site-packages/pip/_internal/commands/__pycache__/wheel.cpython-311.pyc
Back
� L�i� � �� � d dl Z d dlZd dlZd dlmZ d dlmZ d dlmZ d dl m Z mZ d dlm Z d dlmZ d dlmZ d d lmZ d d lmZmZ d dlmZ d dlmZ e j e� � Z G d � de � � ZdS )� N)�Values)� WheelCache)� cmdoptions)�RequirementCommand�with_cleanup)�SUCCESS)�CommandError)�get_build_tracker)�InstallRequirement)� ensure_dir�normalize_path)� TempDirectory)�buildc �N � e Zd ZdZdZd d�Zededee de fd�� � 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> ...�returnNc � � | j � ddddt j d�� � | j � t j � � � � | j � t j � � � � | j � t j � � � � | j � t j � � � � | j � t j � � � � | j � t j � � � � | j � t j � � � � | j � t j � � � � | j � t j � � � � | j � t j � � � � | j � t j � � � � | j � t j � � � � | j � ddd d d�� � | j � t j � � � � | j � t j � � � � t j t j | j � � }t j t j | j � � }| j � d |� � | j � d |� � | j � d | j � � d S )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 �actionr r r )�cmd_opts� add_option�os�curdirr �no_build_isolation� use_pep517�check_build_deps�constraints�build_constraints�editable�requirements�requirements_from_scripts�src�ignore_requires_python�no_deps�progress_bar�config_settings�require_hashes�make_option_group�index_group�parser�package_selection_group�insert_option_group)�self� index_opts�selection_optss �|/builddir/build/BUILD/imunify360-venv-2.6.1/opt/imunify360/venv/lib/python3.11/site-packages/pip/_internal/commands/wheel.py�add_optionszWheelCommand.add_options* s� � �� � � ������I�-� !� � � � � � � ��!>�!@�!@�A�A�A�� � � ��!6�!8�!8�9�9�9�� � � ��!<�!>�!>�?�?�?�� � � ��!7�!9�!9�:�:�:�� � � ��!=�!?�!?�@�@�@�� � � ��!4�!6�!6�7�7�7�� � � ��!8�!:�!:�;�;�;�� � � ��!E�!G�!G�H�H�H�� � � ���!1�!1�2�2�2�� � � ��!B�!D�!D�E�E�E�� � � ��!3�!5�!5�6�6�6�� � � ��!8�!:�!:�;�;�;�� � � �����8� !� � � � � � � ��!;�!=�!=�>�>�>�� � � ��!:�!<�!<�=�=�=��1��"��K� � � � $�5��.��K� � �� ��'�'��:�6�6�6���'�'��>�:�:�:���'�'��4�=�9�9�9�9�9� �options�argsc �P � t j |� � t j |� � | � |� � }| � ||� � }t |j � � |_ t |j � � | � t � � � � }t |j dd�� � }| � ||||� � }t |j � � }| � ||||||j d| j �� � } | � | ||||j �� � } | � |� � | � |d�� � }| � |j � � � � � g }|j � � � D ]4} | j r| � | � � �|� | � � �5t7 |||j �� � \ }}|D ]�} | j r| j j sJ �| j sJ � t? j | j |j � � �A# tB $ r@}tD �# d | j$ |� � |� | � � Y d }~��d }~ww xY wtK |� � d k rtM d� � �tN S )N�wheelT)�delete�kind�globally_managedF)�temp_build_dirr: � build_tracker�session�finder�download_dir� use_user_site� verbosity)�preparerrD r: �wheel_cacher* )�check_supported_wheels)rI �verifyz Building wheel for %s failed: %sr z"Failed to build one or more wheels)(r �check_build_constraints�check_release_control_exclusive�get_default_session�_build_package_finderr r r � enter_contextr r �no_clean�get_requirementsr � cache_dir�make_requirement_preparerrG � make_resolverr* �trace_basic_info�resolve� prepare_linked_requirements_morer'