ó
    qyüiÒ  ã                   óê   • S r SSKrSSKrSSKrSSKrSSKJr  \R                  \R                  \R                  \R                  \R                  \R                  S.rS rSS\S\S-  SS4S	 jjrS
 rg)z-
Utilities for working with package versions
é    N)Úversion)Ú<z<=ú==z!=z>=Ú>c                 óæ   • Ub  Uc  [        SU SU SU SU S3	5      e[        U    " [        R                  " U5      [        R                  " U5      5      (       d  [	        U SU SU SU 35      eg )NzUnable to compare versions for z: need=z found=z). This is unusual. Consider reinstalling Ú.z@ is required for a normal functioning of this module, but found r   )Ú
ValueErrorÚopsr   ÚparseÚImportError)ÚopÚgot_verÚwant_verÚrequirementÚpkgÚhints         ÚX/home/mande/repo/quber/.venv/lib/python3.13/site-packages/transformers/utils/versions.pyÚ_compare_versionsr   $   s›   € Ø�˜(Ñ*ÜØ-¨k¨]¸'À(ÀÈ7ÐSZÐR[ð \Ø ˜E ð$ó
ð 	
ô ˆrŠ7”7—=’= Ó)¬7¯=ª=¸Ó+B×CÑCÜØˆmÐ[Ð\_Ð[`Ð`bÐcjÐbkÐklÐmqÐlrÐsó
ð 	
ð Dó    r   r   Úreturnc           	      óÖ  • Ub  SU 3OSn[         R                  " SU 5      (       a  U SSpCnO¾[         R                  " SU 5      nU(       d  [        SU  35      eUS   u  p&UR	                  S5      n0 nU Hr  n	[         R                  " S	U	5      nU(       d  [        SU  35      eUS   u  p4XHU'   U[
        ;  d  MF  [        U  S
[        [
        R                  5       5       SU 35      e   US:X  ac  SR                  [        R                  SS  V
s/ s H  n
[        U
5      PM     sn
5      nWR                  5        H  u  p4[        X;X@X!5        M     g [        R                  R!                  U5      nWb'  WR                  5        H  u  p4[        X;X@X!5        M     ggs  sn
f ! [        R                  R"                   a&    [        R                  R#                  SU  SU 35      ef = f)a  
Perform a runtime check of the dependency versions, using the exact same syntax used by pip.

The installed module version comes from the *site-packages* dir via *importlib.metadata*.

Args:
    requirement (`str`): pip style definition, e.g.,  "tokenizers==0.9.4", "tqdm>=4.27", "numpy"
    hint (`str`, *optional*): what suggestion to print in case of requirements not being met

Example:

```python
require_version("pandas>1.1.2")
require_version("numpy>1.18.5", "this is important to have for whatever reason")
```NÚ
Ú z^[\w_\-\d]+$z^([^!=<>\s]+)([\s!=<>]{1,2}.+)zgrequirement needs to be in the pip package format, .e.g., package_a==1.23, or package_b>=1.23, but got r   Ú,z^([\s!=<>]{1,2})(.+)z: need one of z
, but got Úpythonr   é   zThe 'zB' distribution was not found and is required by this application. )ÚreÚmatchÚfindallr	   Úsplitr
   ÚlistÚkeysÚjoinÚsysÚversion_infoÚstrÚitemsr   Ú	importlibÚmetadatar   ÚPackageNotFoundError)r   r   r   r   r   r   Ú	want_fullÚ
want_rangeÚwantedÚwÚxr   s               r   Úrequire_versionr0   0   sõ  € ð" Ñ*ˆR�ˆv‰;°€Dô 
‡x‚x� ×-Ñ-Ø'¨¨t�ˆ�ä—
’
Ð<¸kÓJˆÞÜðØ#�}ð&óð ð ˜q™‰ˆØ—_‘_ SÓ)ˆ
ØˆÛˆAÜ—J’JÐ6¸Ó:ˆEÞÜ ð Ø +˜}ð.óð ð ! ™8‰LˆBØ!�2‰JØœ�}Ü  K =°¼tÄCÇHÁHÃJÓ?OÐ>PÐPZÐ[]ÐZ^Ð!_Ó`Ð`ñ ð ˆhƒØ—(‘(¬C×,<Ñ,<¸R¸aÑ,@ÓAÒ,@ qœC žFÑ,@ÑAÓBˆØ"ŸL™LžN‰LˆBÜ˜b¨8À#ÖLñ +àð
Ü×$Ñ$×,Ñ,¨SÓ1ˆð ÑØ"ŸL™LžN‰LˆBÜ˜b¨8À#ÖLò +ð ùò Bøô ×Ñ×2Ñ2ó 
Ü× Ñ ×5Ñ5Ø�K�=Ð bÐcgÐbhÐió
ð 	
ð
ús   ÄFÅF$ Æ$AG(c                 ó   • Sn[        X5      $ )zCrequire_version wrapper which emits a core-specific hint on failurez_Try: `pip install transformers -U` or `pip install -e '.[dev]'` if you're working with git main)r0   )r   r   s     r   Úrequire_version_corer2   q   s   € àl€DÜ˜;Ó-Ð-r   )N)Ú__doc__Úimportlib.metadatar(   Úoperatorr   r$   Ú	packagingr   ÚltÚleÚeqÚneÚgeÚgtr
   r   r&   r0   r2   © r   r   Ú<module>r>      s{   ðñó Û Û 	Û 
å ð 
�‰Ø
�+‰+Ø
�+‰+Ø
�+‰+Ø
�+‰+Ø	�‰ñ€ò	
ñ>M ð >M¨C°$©Jð >MÀ$õ >MóB.r   