+
    &j	                         ^ RI t ^ RIt^ RIt^ RIHt ^ RIHt . ROtRsR t	RR R llt
R R	 lt]R
8X  d
   ]! 4        R# R# )    N)Path)ZipFile c                 P    V P                  V4      '       d   V \        V4      R  # V # )N)
startswithlen)textprefixs   &&h/Users/jameslopez/projects/CWCArchive/cwc-podcast/.venv/lib/python3.14/site-packages/torch/utils/_zip.pyremove_prefixr   !   s'    vCKM""K    c                    V ^8  d   QhRR/#    returnN )formats   "r   __annotate__r   '   s     , ,D ,r   c                     V\        V \        R ,           4      ,           p\        V4      pVP                  \        9   d   R# VP                  W4       R# )/N)r   strip_file_dirr   name	DENY_LISTwrite)	file_pathstrip_file_pathzfprepend_strstripped_file_pathpaths   &&&&  r   write_to_zipr!   '   s@    $}YQT@T'UU"#DyyIHHY+r   c                    V ^8  d   QhRR/# r   r   )r   s   "r   r   r   /   s     #S #Sd #Sr   c                  F   \         P                  ! R R7      p V P                  RRRR7       V P                  RRRR	7       V P                  R
RRR	7       V P                  RRRRR7       V P                  RRRR	7       V P                  4       pVP                  R,           VP
                  ,           pVP                  sVP                  p\        VRR7      ;_uu_ 4       p\        VP                  4       F  p\        P                  P                  V4      '       dM   \        P                  ! VR,           RR7      p\        V4       F  p\!        V\        R,           WCR7       K  	  Kt  \!        V\        R,           WCR7       K  	  RRR4       R#   + '       g   i     R# ; i)zZip py source)descriptionpaths*zPaths to zip.)nargshelpz--install-dirz--install_dirz#Root directory for all output files)r(   z--strip-dirz--strip_dirz1The absolute directory we want to remove from zipz--prepend-strz--prepend_strz7A string to prepend onto all paths of a file in the zipr   )r(   defaultz
--zip-namez
--zip_namezOutput zip namer   w)modez/**/*.pyT)	recursive)r   N)argparseArgumentParseradd_argument
parse_argsinstall_dirzip_name	strip_dirr   r   r   sortedr%   osr    isdirglobr!   )parserargszip_file_namer   r   pfilesr   s           r   mainr=   /   sa   $$AF
sA
/T   @  
 F	   l9JKD$$s*T]]:M^^N""K	S	)	)R

#Aww}}Q		!j.DA!'I !>C#7 "/ Q 4bR $ 
*	)	)	)s   B'FF 	__main__)
dbmcursestkinterrA   testtests	idle_testz__phello__.foo.pyz_bootstrap.pyz_bootstrap_external.py)r   )r-   r7   r5   pathlibr   zipfiler   r   r   r   r!   r=   __name__r   r   r   <module>rH      sG      	  	$ ,#SL zF r   