+
     h  c                   s    R t ^ RIt^ RIt^ RIHt ^ RIHt ^ RIHtH	t	H
t
 ^ RIHt ^ RIHt ^ RIHt ]P"                  ! ]4      tR R	 ltR
 R ltR# )z:Metadata generation logic for legacy source distributions.N)BuildEnvironment)open_spinner)InstallationErrorInstallationSubprocessErrorMetadataGenerationFailed)make_setuptools_egg_info_args)call_subprocess)TempDirectoryc                s0    V ^8  d   QhR\         R\         /# )   	directoryreturn)strZformat   "S/usr/lib/python3.14/site-packages/pip/_internal/operations/build/metadata_legacy.py__annotate__r      s     1 1c 1c 1    c                s:   \         P                  ! V 4       Uu. uF  qP                  R4      '       g   K  VNK  	  ppV'       g   \        RV  24      h\	        V4      ^8  d   \        RV  24      h\         P
                  P                  W^ ,          4      # u upi )z.Find an .egg-info subdirectory in `directory`.z	.egg-infoz No .egg-info directory found in z+More than one .egg-info directory found in )osZlistdirZendswithr   ZlenpathZjoin)r	   ZfZ	filenamess   &  r   _find_egg_infor      s    JJy1M1qZZ5L1IM"B9+ NOO
9~9)E
 	
 77<<	Q<00 Ns
   BBc                s`    V ^8  d   QhR\         R\        R\        R\        R\        R\        /# )r   	build_envsetup_py_path
source_dirisolateddetailsr
   )r    r   Zboolr   r   r   r   r   #   sD     &( &(&(&( &( 	&(
 &( 	&(r   c                s   \         P                  RVV4       \        RRR7      P                  p\	        VVVR7      pT ;_uu_ 4        \        R4      ;_uu_ 4       p \        VVRVR7        R
R
R
4       R
R
R
4       \        T4      #   \         d   p\        TR	7      ThR
p?ii ; i  + '       g   i     LC; i  + '       g   i     LN; i)zfGenerate metadata using setup.py-based defacto mechanisms.

Returns the generated metadata directory.
z2Running setup.py (path:%s) egg_info for package %szpip-egg-infoT)ZkindZglobally_managed)egg_info_dirZno_user_configzPreparing metadata (setup.py)zpython setup.py egg_info)ZcwdZcommand_descspinner)Zpackage_detailsN)
loggerZdebugr   r   r   r   r   r   r   r   )	r   r   r   r   r   r   Zargsr   Zerrors	   &&&&&    r   generate_metadatar   #   s     LL< !ntLQQL(!D 
9::gS"!;#	 ; 
 ,''	 / S.wGURS ;: 
sB   B;B(	B-B;B%B  B%%B(	(B83B;;C	)Z__doc__Zloggingr   Zpip._internal.build_envr    Zpip._internal.cli.spinnersr   Zpip._internal.exceptionsr   r   r   Z$pip._internal.utils.setuptools_buildr   Zpip._internal.utils.subprocessr   Zpip._internal.utils.temp_dirr   Z	getLoggerZ__name__r   r   r   ) r   r   <module>r      sD    @  	 4 3 
 O : 6			8	$1&(r   