
    +j                     z    S SK Jr  S SKrS SKrS SKr\" \5      R                  S   S-  rS rS\	S\
4S jr0 rS	 rg)
    )PathN   zrequirements.txtc                      Sn [         R                  R                  (       a  Sn S[         R                   SU  S[         S3R                  5       $ )z9The warning message to display when a package is missing. z-s z>
Please install the updated requirements.txt file by running:
 z-m pip install -r zb
If you are on the portable package you can run: update\update_comfyui.bat to solve this problem.
)sysflagsno_user_site
executablerequirements_pathstrip)extras    2/home/wildlama/comfy/ComfyUI/utils/install_util.py get_missing_requirements_messager   
   sQ     E
yy %*+<*= > 
EG	    versionreturnc                 D    Sn[        [        R                  " X5      5      $ )z@Validate if a string is a valid semantic version (X.Y.Z format).z^(\d+)\.(\d+)\.(\d+)$)boolrematch)r   patterns     r   is_valid_versionr      s    &G*++r   c                     [        [        5      S:  a  [        R                  5       $ [        n  [        [        SSS9 nU H  nUR                  5       R                  SS5      nUR                  S5      n[        U5      S:X  d  ME  US   n[        U5      (       d!  [        R                  " S	US    S
U 35        M{  X@US   '   M     S S S 5        U R                  5       $ ! , (       d  f       N= f! [         a    [        R                  " S5         g [         a#  n[        R                  " SU 35         S nAg S nAff = f)Nr   rzutf-8)encodingz>=z==   zInvalid version format for z in requirements.txt: zrequirements.txt not found.z Error reading requirements.txt: )lenPACKAGE_VERSIONScopyopenr   r   replacesplitr   loggingdebugFileNotFoundErrorerror	Exception)outflinesversion_stres         r   get_required_packages_versionsr0      s   
q $$&&
C#S7;qzz|++D$7JJt$q6Q;"#B%K+K88(CAaD6I_`k_l&mn  +!I  < xxz <;  34 8<=s<   C0 ACACC0 
C-)C0 0 D>	D>D99D>)pathlibr   r   r%   r   __file__parentsr   r   strr   r   r    r0    r   r   <module>r6      sS     
  	 N**1-0BB 
,c ,d ,  r   