
    5>qj                    r    d dl mZ d dlmZ d dlmZ d dlmZ d dlm	Z	m
Z
mZ erd dlmZmZ  G d de      Zy	)
    )annotations)TYPE_CHECKING)canonicalize_name)AbstractDistribution)BaseDistributionFilesystemWheelget_wheel_distribution)BuildEnvironmentInstallerBuildIsolationModec                  F    e Zd ZdZedd       ZddZ	 	 	 	 	 	 	 	 	 	 ddZy)	WheelDistributionzqRepresents a wheel distribution.

    This does not need any preparation as wheels can be directly unpacked.
    c                     y N )selfs    `/opt/rentech/trading_bot/.venv/lib/python3.12/site-packages/pip/_internal/distributions/wheel.pybuild_tracker_idz"WheelDistribution.build_tracker_id   s        c                   | j                   j                  sJ d       | j                   j                  sJ d       t        | j                   j                        }t	        |t        | j                   j                              S )zLoads the metadata from the wheel file into memory and returns a
        Distribution that uses it, not relying on the wheel file or
        requirement.
        z*Set as part of preparation during downloadzWheels are never unnamed)reqlocal_file_pathnamer   r	   r   )r   wheels     r   get_metadata_distributionz+WheelDistribution.get_metadata_distribution   sb    
 xx''U)UU'xx}}888} 8 89%e->txx}}-MNNr   c                     y r   r   )r   build_env_installerbuild_isolationcheck_build_depsallow_editabless        r   prepare_distribution_metadataz/WheelDistribution.prepare_distribution_metadata&   s     	r   N)returnz
str | None)r!   r   )
r   r
   r   r   r   boolr   r"   r!   None)__name__
__module____qualname____doc__propertyr   r   r    r   r   r   r   r      sV    
  O6 , 	
  
r   r   N)
__future__r   typingr   pip._vendor.packaging.utilsr    pip._internal.distributions.baser   pip._internal.metadatar   r   r	   pip._internal.build_envr
   r   r   r   r   r   <module>r/      s0    "   9 A  U, r   