Ë
    »ÿæiü  ã                  ól  — d dl mZ d dlZd dlZd dlZd dlZd dlmZ d dlm	Z	 ddej                  j                  › �dej                  j                  › dej                  j                  › �gZe	r4ddhZ ej                  ee«      D � cg c]  } dj!                  | «      ‘Œ c} Zddd	„Zdd
„Zdd„Zyc c} w )é    )ÚannotationsN)Úmain)ÚWINDOWSÚpipÚ.Ú z.exec                óV   — t         j                  j                  d«       t        | «      S )aò  Central wrapper for all old entrypoints.

    Historically pip has had several entrypoints defined. Because of issues
    arising from PATH, sys.path, multiple Pythons, their interactions, and most
    of them having a pip installed, users suffer every time an entrypoint gets
    moved.

    To alleviate this pain, and provide a mechanism for warning users and
    directing them to an appropriate place for help, we now define all of
    our old entrypoints as wrappers for the current one.
    a  WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
)ÚsysÚstderrÚwriter   )Úargss    út/Volumes/fast/ai/experiments/voice-extract-mac/.venv/lib/python3.12/site-packages/pip/_internal/utils/entrypoints.pyÚ_wrapperr      s'   € ô ‡J�J×Ñð	"ôô �‹:Ðó    c                 ó”  — t         rdnd} t        j                  j                  t        j
                  | «      }t        j                  j                  t        j                  j                  dd«      «      j                  t        j                  «      }t        j                  j                  |«      |v }|r‡t        D ]~  }t        j                  |«      }t        j                  j                  ||«      }|sŒ;t        j                  j                  |«      sŒ[t        j                  j                  ||«      sŒ||c S  t!        «       › d�S )zHTry to figure out the best way to invoke pip in the current environment.ÚScriptsÚbinÚPATHr   z -m pip)r   ÚosÚpathÚjoinr
   ÚprefixÚnormcaseÚenvironÚgetÚsplitÚpathsepÚ_EXECUTABLE_NAMESÚshutilÚwhichÚexistsÚsamefileÚ#get_best_invocation_for_this_python)Úbinary_directoryÚbinary_prefixÚ
path_partsÚexe_are_in_PATHÚexe_nameÚfound_executableÚbinary_executables          r   Ú get_best_invocation_for_this_pipr+   /   sé   € å$+‘y°ÐÜ—G‘G—L‘L¤§¡Ð-=Ó>€Mô —‘×!Ñ!¤"§*¡*§.¡.°¸Ó"<Ó=×CÑCÄBÇJÁJÓO€JÜ—g‘g×&Ñ& }Ó5¸ÐC€OÙß)ˆHÜ%Ÿ|™|¨HÓ5ÐÜ "§¡§¡¨]¸HÓ EÐâ Ü—G‘G—N‘NÐ#4Õ5Ü—G‘G×$Ñ$Ø$Ø%õð
  ’ð *ô 2Ó3Ð4°GÐ<Ð<r   c                 ó"  — t         j                  } t        j                  j	                  | «      }t        j                  |«      }|rHt        j                  j                  t        j                  |«      t        j                  | «      «      r|S | S )z<Try to figure out the best way to invoke the current Python.)	r
   Ú
executabler   r   Úbasenamer   r    ÚsamestatÚlstat)Úexer(   r)   s      r   r#   r#   J   sg   € ä
�.‰.€CÜ�w‰w×Ñ Ó$€Hô —|‘| HÓ-Ðñ œBŸG™G×,Ñ,¬R¯X©XÐ6FÓ-GÌÏÉÐRUËÔWØˆð €Jr   )N)r   zlist[str] | NoneÚreturnÚint)r2   Ústr)Ú
__future__r   Ú	itertoolsr   r   r
   Úpip._internal.cli.mainr   Úpip._internal.utils.compatr   Úversion_infoÚmajorÚminorr   Ú_allowed_extensionsÚproductr   r   r+   r#   )Úpartss   0r   Ú<module>r?      sÅ   ðÝ "ã Û 	Û Û 
å 'Ý .ð 
Ø	ˆ#×
Ñ
×
 Ñ
 Ð	!Ð"Ø	ˆ#×
Ñ
×
 Ñ
 Ð	!  3×#3Ñ#3×#9Ñ#9Ð":Ð;ðÐ ñ
 Ø˜v˜,Ðð '�Y×&Ñ&Ð'8Ð:MÔNóáNˆEð 	�‰��ØNñÐôó.=ô6ùòqs   ÂB1