o
    -i;                  
   @   sz   z
d dl mZmZ W n( ey2 Z zddlZejde edd dZddefZW Y dZ[ndZ[ww dd	 Zd
d Z	dS )   )__version____version_tuple__    NzFailed to read commit hash:
   )
stackleveldevc                 C   sT   t dd dkr
dS t d dksJ tt d tsJ | t d  dt d d  kS )a%  Check whether a given version matches the previous minor version.

    Return True if version_str matches the previous minor version.

    For example - return True if the current version if 0.7.4 and the
    supplied version_str is '0.6'.

    Used for --show-hidden-metrics-for-version.
    r   r   )r   r   Tr   .)r   
isinstanceint)version_str r   I/home/ubuntu/veenaModal/venv/lib/python3.10/site-packages/vllm/version.py_prev_minor_version_was   s
   r   c                   C   s,   t td ts	J td  dtd d  S )zCFor the purpose of testing, return a previous minor version number.r   r   r   )r	   r   r
   r   r   r   r   _prev_minor_version#   s   r   )
_versionr   r   	ExceptionewarningswarnRuntimeWarningr   r   r   r   r   r   <module>   s   	