+
    Îi2#                       R t ^ RIHt ^ RIt^ RIt^ RIt^ RIHt ^ RI	H
t
 ^ RIHtHt ^ RIHtHt ^ RIHt ^ RIHtHt ^ R	IHtHt ^ R
IHt ^ RIHt ^ RIHt ^ RIH t  ^ RI!H"t" ^ RI#H$t$ ^ RI%H&t&H't' ^ RI(H)t) ^ RI*H+t+ ]PX                  ! ]-4      t.]P^                  ! R]P`                  4      t1]2]3]",          ]3]",          3,          t4R R lt5R R lt6R R lt7R R lt8R R lt9R R lt:R  R! lt;R# )"z:Orchestrator for building wheels from InstallRequirements.)annotationsN)Iterable)TemporaryDirectory)canonicalize_namecanonicalize_version)InvalidVersionVersion)
WheelCache)InvalidWheelFilenameUnsupportedWheel)FilesystemWheelget_wheel_distribution)Link)Wheel)build_wheel_pep517)build_wheel_editable)InstallRequirement)
indent_log)
ensure_dir	hash_file)path_to_url)vcsz([a-z0-9_.]+)-([a-z0-9_.!+-]+)c                    V ^8  d   QhRRRR/# )   sstrreturnbool )formats   "j/Users/ahmad/.openclaw/workspace/scripts/.venv/lib/python3.14/site-packages/pip/_internal/wheel_builder.py__annotate__r!   "   s     ( (# ($ (    c                >    \        \        P                  V 4      4      # )zbDetermine whether the string looks like an egg_info.

:param s: The string to parse. E.g. foo-2.1
)r   _egg_info_research)r   s   &r    _contains_egg_infor&   "   s    
 ##A&''r"   c                    V ^8  d   QhRRRR/# )r   reqr   r   zbool | Noner   )r   s   "r    r!   r!   *   s      	r"   c                `   V P                   '       g   V P                  '       g   R# V P                  '       d   V P                  P                  '       d   V P                   '       d   Q hV P                  '       g   Q h\        P
                  ! V P                  P                  4      pV'       g   Q hVP                  V P                  P                  V P                  4      '       d   R# R# V P                  '       g   Q hV P                  P                  4       w  r#\        V4      '       d   R# R# )z
Return whether a built InstallRequirement can be stored in the persistent
wheel cache, assuming the wheel cache is available.
FT)editable
source_dirlinkis_vcsr   get_backend_for_schemeschemeis_immutable_rev_checkouturlsplitextr&   )r(   vcs_backendbaseexts   &   r    _should_cacher6   *   s     |||3>>>
xxxCHHOOO <<<~~~~00A{00s~~NN888O8!!#ID$ r"   c               $    V ^8  d   QhRRRRRR/# )r   r(   r   wheel_cacher	   r   r   r   )r   s   "r    r!   r!   I   s&      	 	r"   c                    \        VP                  4      pV P                  '       g   Q hV'       d/   \        V 4      '       d   VP	                  V P                  4      pV# VP                  V P                  4      pV# )z\Return the persistent or temporary cache directory where the built
wheel need to be stored.
)r   	cache_dirr,   r6   get_path_for_linkget_ephem_path_for_link)r(   r8   cache_availabler:   s   &&  r    _get_cache_dirr>   I   sf     ;001O888O8=--11#((;	   77A	r"   c               $    V ^8  d   QhRRRRRR/# )r   r(   r   
wheel_pathr   r   Noner   )r   s   "r    r!   r!   Y   s"     
 
' 
S 
T 
r"   c                   \        V P                  ;'       g    R 4      p\        \        P                  P                  V4      4      pVP                  V8w  d   \        RV: RVP                  : 24      h\        \        V4      V4      p\        VP                  4      p\        V4      \        VP                  4      8w  d   \        RV: RVP                  : 24      hVP                  pVf   \        R4      h \        V4      pT\        R4      8  d3   \!        TP                  \        4      '       g   \        RT: R24      hR# R#   \         d    RT 2p\        T4      hi ; i)	 z)Wheel has unexpected file name: expected z, got NzMissing Metadata-VersionzInvalid Metadata-Version: z1.2z+Metadata 1.2 mandates PEP 440 version, but z is not)r   namer   ospathbasenamer
   r   r   r   versionr   metadata_versionr   r   r   
isinstance)	r(   r@   canonical_namewdistdist_verstrmetadata_version_valuerI   msgs	   &&       r    _verify_onerQ   Y   s_   &sxx~~26Nbggz*+Avv"77I J66*
 	
 "/*"=~NDdll#KK(,@,KK"7 G99-!
 	
 "22%9::$"#9: 75>)*T\\72S2S9+P
 	
 3T)  $*+A*BCs##$s   <E E'c          
     ,    V ^8  d   QhRRRRRRRRRR	/# )
r   r(   r   
output_dirr   verifyr   r*   r   
str | Noner   )r   s   "r    r!   r!   v   s:      	  	
 r"   c                   V'       d   RMRp \        V4       T P
                  ;_uu_ 4        \        YT4      pRRR4       X'       d   T'       d    \        Y4       T# T#   \         d.   p\        P                  RTT P                  T4        Rp?R# Rp?ii ; i  + '       g   i     Lk; i  \        \        3 d-   p\        P                  RY@P                  T4        Rp?R# Rp?ii ; i)zYBuild one wheel.

:return: The filename of the built wheel, or None if the build failed.
r*   wheelzBuilding %s for %s failed: %sNzBuilt %s for %s is invalid: %s)
r   OSErrorloggerwarningrD   	build_env_build_one_inside_envrQ   r
   r   )r(   rS   rT   r*   artifacter@   s   &&&&   r    
_build_oner_   v   s     &z7H	: 
*3HE
 
f	( :%  +HH		
  

 %&67 	NN;XxxQRS	s:   A" BB0 "B-"BBB-	0C-!C((C-c               (    V ^8  d   QhRRRRRRRR/# )	r   r(   r   rS   r   r*   r   r   rU   r   )r   s   "r    r!   r!      s0     1 1	11 1 	1r"   c           
        \        VR 7      ;_uu_ 4       pV P                  '       g   Q hV P                  '       g   Q hV P                  '       g   Q hV'       d/   \	        V P                  V P                  V P                  VR7      pM-\        V P                  V P                  V P                  VR7      pVe   \        P                  P                  V4      p\        P                  P                  W4      p \        V4      w  rx\        P                  ! WF4       \        P                  RV P                  VVVP                  4       4       \        P                  RV4       VuuRRR4       #  RRR4       R#   \         d,   p	\        P!                  RT P                  T	4        Rp	?	L<Rp	?	ii ; i  + '       g   i     R# ; i))dir)rD   backendmetadata_directorywheel_directoryNz3Created wheel for %s: filename=%s size=%d sha256=%szStored in directory: %sz Building wheel for %s failed: %s)r   rD   rd   pep517_backendr   r   rE   rF   rG   joinr   replacerY   info	hexdigest	ExceptionrZ   )
r(   rS   r*   re   r@   
wheel_name	dest_path
wheel_hashlengthr^   s
   &&&       r    r\   r\      ss   
 

	+	+xxxx%%%%%!!!!!-XX**#&#9#9 /	J ,XX**#&#9#9 /	J !))*5JZ<I%.z%:"

 

:1IHH((* 5zB K 
,	+X Y 
,	+L  6HH M 
,	+	+sH   &F2F2	F2BF28A+E9.F29F/!F*%F2*F//F22G	c               (    V ^8  d   QhRRRRRRRR/# )	r   requirementszIterable[InstallRequirement]r8   r	   rT   r   r   BuildResultr   )r   s   "r    r!   r!      s0     9+ 9+.9+9+ 9+ 	9+r"   c           
        V '       g   . . 3# \         P                  RRP                  R V  4       4      4       \        4       ;_uu_ 4        . . rCV  F  pVP                  '       g   Q h\        WQ4      p\        TTTVP                  ;'       d    VP                  4      pV'       d   VP                  e   VP                  WeP                  4       \        \        V4      4      Vn        VP                  P                  Vn        VP                  P                   '       g   Q hVP#                  V4       K  VP#                  V4       K  	  RRR4       X'       d?   \         P                  RRP                  V Uu. uF  qUP                  NK  	  up4      4       X'       d?   \         P                  RRP                  V Uu. uF  qUP                  NK  	  up4      4       W43#   + '       g   i     L; iu upi u upi )zBuild wheels.

:return: The list of InstallRequirement that succeeded to build and
    the list of InstallRequirement that failed to build.
z*Building wheels for collected packages: %sz, c              3  8   "   T F  qP                   x  K  	  R # 5i)N)rD   ).0r(   s   & r    	<genexpr>build.<locals>.<genexpr>   s     3ls((ls   NzSuccessfully built %s zFailed to build %s)rY   ri   rg   r   rD   r>   r_   r*   permit_editable_wheelsdownload_inforecord_download_originr   r   r,   	file_pathlocal_file_pathis_wheelappend)rq   r8   rT   build_successesbuild_failuresr(   r:   
wheel_files   &&&     r    buildr      s    2v KK4		3l33
 
*,bC888O8&s8I#;;!;!;	J $$0  66yBSBSTJ 78&)hh&8&8#xx(((((&&s+%%c*-   
6 #HH/:/3hh/:;	
  HH.9.3hh.9:	

 **M 
< ;
 :s    AG!'B#G!9G4?G9!G1	)<__doc__
__future__r   loggingos.pathrE   recollections.abcr   tempfiler   pip._vendor.packaging.utilsr   r   pip._vendor.packaging.versionr   r   pip._internal.cacher	   pip._internal.exceptionsr
   r   pip._internal.metadatar   r   pip._internal.models.linkr   pip._internal.models.wheelr   $pip._internal.operations.build.wheelr   -pip._internal.operations.build.wheel_editabler   pip._internal.req.req_installr   pip._internal.utils.loggingr   pip._internal.utils.miscr   r   pip._internal.utils.urlsr   pip._internal.vcsr   	getLogger__name__rY   compile
IGNORECASEr$   tuplelistrr   r&   r6   r>   rQ   r_   r\   r   r   r"   r    <module>r      s    @ "   	 $ ' O A * K J * , C N < 2 : 0 !			8	$zz;R]]KD+,d3E.FFG(> 
:D1h9+r"   