<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet"
        integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css"
        integrity="sha512-SzlrxWUlpfuzQ+pcUCosxcglQRNAq/DZjVsC0lE40xsADsfeQoEypE+enwcOiGjk/bSuGGKHEyjSoQ1zVisanQ=="
        crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
</html>
ž
7’Reå9  c               @   s®   d  d l  Z  d  d l Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l m Z m Z m	 Z	 d  d l
 m Z d  d l m Z d  d l m Z Gd d „  d e ƒ Z d S(   i    N(   u   display_pathu
   backup_diru   rmtree(   u   logger(   u   InstallationError(   u   Commandc                s¶   |  Ee  Z d  Z d Z d Z d Z d Z ‡  f d d †  Z d d „  Z d	 d
 „  Z	 d d „  Z
 d d „  Z d d „  Z d d „  Z d d „  Z d d „  Z d d „  Z d d „  Z ‡  S(   u
   ZipCommandu   Zip individual packages.u   zipu#   
     %prog [options] <package> ...u$   DEPRECATED. Zip individual packages.c          
      s9  t  t |  ƒ j | | Ž  |  j d k rM |  j j d d d d d d d ƒn( |  j j d	 d d
 d d d d d d ƒ|  j j d d d d d d d ƒ|  j j d d d d d d d d ƒ|  j j d d d d d d d ƒ|  j j d d d d d d d ƒ|  j j d d d d d d ƒ|  j j d |  j ƒ d  S(    Nu   zipu   --unzipu   actionu
   store_trueu   destu   unzipu   helpu"   Unzip (rather than zip) a package.u   --zipu   store_falseu   defaultu"   Zip (rather than unzip) a package.u   --no-pycu   no_pycuE   Do not include .pyc files in zip files (useful on Google App Engine).u   -lu   --listu   listu2   List the packages available, and their zip status.u   --sort-filesu
   sort_filesuD   With --list, sort packages according to how many files they contain.u   --pathu   appendu   pathsu?   Restrict operations to the given paths (may include wildcards).u   -nu
   --simulateu0   Do not actually perform the zip/unzip operation.i    T(	   u   superu
   ZipCommandu   __init__u   nameu   cmd_optsu
   add_optionu   Trueu   parseru   insert_option_group(   u   selfu   argsu   kw(   u	   __class__(    u)   /tmp/pip-zej_zi-build/pip/commands/zip.pyu   __init__   sL    	
								u   ZipCommand.__init__c             C   sp  |  j  s t j Sg  } t ƒ  } xý t j D]ò } t j j t j j | ƒ ƒ } xË |  j  D] } t j j t j j | ƒ ƒ } d | k rÇ t j t	 j
 | d ƒ | ƒ rô | j | ƒ | j | ƒ Pqô qW | j | ƒ rW | j | ƒ | j | ƒ PqW qW Wt j d | d j |  j  ƒ f ƒ q) WxJ |  j  D]? } | | k r)d | k r)| j | ƒ t j d | ƒ q)q)W| S(   u:   All the entries of sys.path, possibly restricted by --pathu   *u,   Skipping path %s because it doesn't match %su   , uD   Adding path %s because it doesn't match anything already on sys.path(   u   select_pathsu   sysu   pathu   setu   osu   normcaseu   abspathu   reu   searchu   fnmatchu	   translateu   appendu   addu
   startswithu   loggeru   debugu   join(   u   selfu   resultu	   match_anyu   pathu   match(    (    u)   /tmp/pip-zej_zi-build/pip/commands/zip.pyu   paths>   s2    				u   ZipCommand.pathsc             C   sV  t  j d d ƒ | j |  _ | j |  _ | j rA |  j | | ƒ S| sV t d ƒ ‚ n  g  } x  | D]˜ } |  j | ƒ \ } } | j r² t	 j
 j | ƒ r² t d | | f ƒ ‚ n6 | j rè t	 j
 j | ƒ rè t d | | f ƒ ‚ n  | j | | f ƒ qc Wd  } xJ | D]B \ } } | j r6|  j | | ƒ } q|  j | | | j ƒ } qW| S(   Nu   1.7u_   DEPRECATION: 'pip zip' and 'pip unzip` are deprecated, and will be removed in a future release.u2   You must give at least one package to zip or unzipu;   The module %s (in %s) is not a zip file; cannot be unzippedu:   The module %s (in %s) is not a directory; cannot be zipped(   u   loggeru
   deprecatedu   pathsu   select_pathsu   simulateu   listu   InstallationErroru   find_packageu   unzipu   osu   pathu   isdiru   appendu   Noneu   unzip_packageu   zip_packageu   no_pyc(   u   selfu   optionsu   argsu   packagesu   argu   module_nameu   filenameu   last_status(    (    u)   /tmp/pip-zej_zi-build/pip/commands/zip.pyu   run\   s4    		u   ZipCommand.runc             C   sÚ  t  j j | ƒ } t  j j | ƒ rP t j | ƒ rP t d | | | f ƒ ‚ n  t  j j | ƒ } | |  j ƒ  k r£ t j	 d t
 | ƒ t
 | ƒ t
 | ƒ f ƒ n  t j d | t
 | ƒ f ƒ |  j rÚ t j d ƒ d  St j d 7_ zÚt j | ƒ } g  } x| j ƒ  D]} | j } | j | t  j j ƒ rþ| j | ƒ }	 t  j j | | ƒ }
 t  j j t  j j |
 ƒ ƒ s”t  j t  j j |
 ƒ ƒ n  |	 rÕ|
 j t  j j ƒ rÕt  j j |
 ƒ sût  j |
 ƒ qûqt |
 d ƒ } | j |	 ƒ | j ƒ  q| j | | j | ƒ f ƒ qW| j ƒ  | sbt j d t
 | ƒ ƒ t  j | ƒ |  j | ƒ n` t j d | t
 | ƒ f ƒ t j | d	 ƒ } x$ | D] \ } }	 | j | |	 ƒ q˜W| j ƒ  Wd  t j d 8_ Xd  S(
   Nu3   Module %s (in %s) isn't located in a zip file in %su/   Unpacking %s into %s, but %s is not on sys.pathu   Unzipping %s (in %s)u3   Skipping remaining operations because of --simulatei   u   wbu   Removing now-empty zip file %su(   Removing entries in %s/ from zip file %su   w(    u   osu   pathu   dirnameu   isfileu   zipfileu
   is_zipfileu   InstallationErroru   pathsu   loggeru   warnu   display_pathu   notifyu   simulateu   indentu   ZipFileu   infolistu   filenameu
   startswithu   sepu   readu   joinu   existsu   makedirsu   endswithu   openu   writeu   closeu   appendu   infou   unlinku   remove_filename_from_pthu   writestr(   u   selfu   module_nameu   filenameu   zip_filenameu   package_pathu   zipu   to_saveu   infou   nameu   contentu   destu   f(    (    u)   /tmp/pip-zej_zi-build/pip/commands/zip.pyu   unzip_package{   sX    "		 
u   ZipCommand.unzip_packagec             C   sN  | } t  j d | t | ƒ f ƒ t  j d 7_ | j d ƒ rJ | } n
 | d } zã| | k r¥ t | ƒ } t  j d | | f ƒ |  j s¥ t j | | ƒ q¥ n  yvt  j	 d t | ƒ ƒ |  j sít
 j | d ƒ } | j | d d	 ƒ xï t j | ƒ D]Þ \ } } }	 | r)d
 d „  |	 Dƒ }	 n  x° | d f |	 d f g D]– \ }
 } x‡ |
 D] } t j j | | ƒ } t j j | | t | ƒ d  … j t j j ƒ | ƒ } | rÄ| j | d d	 ƒ qU| j | | ƒ qUWqBWqþ W| j ƒ  n  t  j	 d t | ƒ ƒ |  j st | ƒ n  Wn ‚  Yn X|  j | ƒ Wd  t  j d 8_ Xd  S(   Nu   Zip %s (in %s)i   u   .eggu   .zipu   Moving %s aside to %su   Creating zip file in %su   wu   /u    c             S   s+   g  |  ]! } | j  ƒ  j d  ƒ s | ‘ q S(   u   .pyc(   u   loweru   endswith(   u   .0u   f(    (    u)   /tmp/pip-zej_zi-build/pip/commands/zip.pyu
   <listcomp>Ä   s   	 u*   ZipCommand.zip_package.<locals>.<listcomp>u   Removing old directory %sTF(   u   loggeru   notifyu   display_pathu   indentu   endswithu
   backup_diru   simulateu   shutilu   moveu   infou   zipfileu   ZipFileu   writestru   osu   walku   Trueu   Falseu   pathu   joinu   lenu   lstripu   sepu   writeu   closeu   rmtreeu   add_filename_to_pth(   u   selfu   module_nameu   filenameu   no_pycu   orig_filenameu   dest_filenameu   zipu   dirpathu   dirnamesu	   filenamesu   fnsu   is_diru   fnu   fullu   dest(    (    u)   /tmp/pip-zej_zi-build/pip/commands/zip.pyu   zip_package®   sF    	
		%7	u   ZipCommand.zip_packagec                s  xý |  j  ƒ  D]ï } t | d ƒ } | j ƒ  } | j ƒ  ‡  f d d †  | Dƒ } | | k r t j d t ˆ  ƒ t | ƒ f ƒ d d „  | Dƒ sÆ t j d t | ƒ ƒ |  j sø t j	 | ƒ qø n2 |  j sø t | d ƒ } | j
 | ƒ | j ƒ  n  d  Sq Wt j d t ˆ  ƒ ƒ d  S(	   Nu   rc                s(   g  |  ] } | j  ƒ  ˆ  k r | ‘ q S(    (   u   strip(   u   .0u   l(   u   filename(    u)   /tmp/pip-zej_zi-build/pip/commands/zip.pyu
   <listcomp>à   s   	 u7   ZipCommand.remove_filename_from_pth.<locals>.<listcomp>u*   Removing reference to %s from .pth file %sc             S   s   g  |  ] } | r | ‘ q S(    (    (   u   .0u   line(    (    u)   /tmp/pip-zej_zi-build/pip/commands/zip.pyu
   <listcomp>ä   s   	 u    %s file would be empty: deletingu   wbu.   Cannot find a reference to %s in any .pth file(   u	   pth_filesu   openu	   readlinesu   closeu   loggeru   infou   display_pathu   simulateu   osu   unlinku
   writelinesu   warn(   u   selfu   filenameu   pthu   fu   linesu	   new_lines(    (   u   filenameu)   /tmp/pip-zej_zi-build/pip/commands/zip.pyu   remove_filename_from_pthÚ   s$    
			u#   ZipCommand.remove_filename_from_pthc             C   sþ   t  j j | ƒ } | d } | |  j ƒ  k rH t j d t | ƒ ƒ n  |  j sú t  j j | ƒ rÄ t	 | ƒ } | j
 ƒ  } | j ƒ  | r° | d j d ƒ r° | d d 7<n  | j | d ƒ n | d g } t	 | d ƒ } | j | ƒ | j ƒ  n  d  S(   Nu   .pthu.   Adding .pth file %s, but it is not on sys.pathi   u   
u   wbiÿÿÿÿiÿÿÿÿ(   u   osu   pathu   dirnameu   pathsu   loggeru   warnu   display_pathu   simulateu   existsu   openu	   readlinesu   closeu   endswithu   appendu
   writelines(   u   selfu   filenameu   pathu   destu   fu   lines(    (    u)   /tmp/pip-zej_zi-build/pip/commands/zip.pyu   add_filename_to_pthð   s     
	
u   ZipCommand.add_filename_to_pthc             c   s‡   x€ |  j  ƒ  D]r } t j j | ƒ s t j j | ƒ r? q n  x= t j | ƒ D], } | j d ƒ rO t j j | | ƒ VqO qO Wq Wd  S(   Nu   .pth(   u   pathsu   osu   pathu   existsu   isdiru   listdiru   endswithu   join(   u   selfu   pathu   filename(    (    u)   /tmp/pip-zej_zi-build/pip/commands/zip.pyu	   pth_files  s    &u   ZipCommand.pth_filesc             C   sæ   xÏ |  j  ƒ  D]Á } t j j | | ƒ } t j j | ƒ rD | | f St j j | ƒ r t j | ƒ r t j | d ƒ } y  | j	 t j j | d ƒ ƒ Wn t
 k
 r¬ Yn X| j ƒ  | | f S| j ƒ  q q Wt d | ƒ ‚ d  S(   Nu   ru   __init__.pyu!   No package with the name %s found(   u   pathsu   osu   pathu   joinu   existsu   isdiru   zipfileu
   is_zipfileu   ZipFileu   readu   KeyErroru   closeu   InstallationError(   u   selfu   packageu   pathu   fullu   zip(    (    u)   /tmp/pip-zej_zi-build/pip/commands/zip.pyu   find_package  s    
" 

u   ZipCommand.find_packagec             C   sD  | r t  d ƒ ‚ n  x(t |  j ƒ  ƒ D]} t j j | ƒ sF q( n  t j j | j t j j ƒ ƒ } t j j	 | ƒ rÆ t
 j | ƒ rÆ t j j | ƒ |  j ƒ  k r( t j d t | ƒ ƒ q( q( n  | d k r | d k r | j d d ƒ j d ƒ r q( n  t j d t | ƒ ƒ t j d	 7_ g  } g  } z÷xð t t j | ƒ ƒ D]Ù } t j j | ƒ d
 j ƒ  } | d k rqKn  | d k r¨t j d t | ƒ ƒ qKn  t j j | | ƒ }	 t j j |	 ƒ rî| j | |  j |	 ƒ f ƒ qKt
 j |	 ƒ r| j | ƒ qKt j d t | ƒ ƒ qKW| r‚t j d ƒ t j d	 7_ z" x | D] } t j | ƒ qTWWd  t j d	 8_ Xn t j d ƒ | r| j r·| j d d d „  ƒ n  t j d ƒ t j d	 7_ z2 x+ | D]# \ } }
 t j d | |
 f ƒ qÝWWd  t j d	 8_ Xn t j d ƒ Wd  t j d	 8_ Xq( Wd  S(   Nu'   You cannot give an argument with --listu   Zipped egg: %su   site-packagesu   dist-packagesu   \u   /u
   lib/pythonu   In %s:i   i   u   .pthu	   .egg-infou	   .egg-linku   .pyu    Not displaying %s: not a packageu   Unknown file: %su   Zipped packages:u   No zipped packages.u   keyc             S   s	   |  d S(   Ni   (    (   u   x(    (    u)   /tmp/pip-zej_zi-build/pip/commands/zip.pyu   <lambda>L  s    u!   ZipCommand.list.<locals>.<lambda>u   Unzipped packages:u   %s  (%i files)u   No unzipped packages.(   u   .pthu	   .egg-infou	   .egg-link(   u   InstallationErroru   sortedu   pathsu   osu   pathu   existsu   basenameu   rstripu   sepu   isfileu   zipfileu
   is_zipfileu   dirnameu   loggeru   notifyu   display_pathu   replaceu   endswithu   indentu   listdiru   splitextu   loweru   infou   joinu   isdiru   appendu   count_packageu
   sort_filesu   sort(   u   selfu   optionsu   argsu   pathu   basenameu   zippedu   unzippedu   filenameu   extu   fullu   count(    (    u)   /tmp/pip-zej_zi-build/pip/commands/zip.pyu   list  sf    !!	u   ZipCommand.listc             C   sP   d } xC t  j | ƒ D]2 \ } } } d d „  | Dƒ } | t | ƒ 7} q W| S(   Ni    c             S   s+   g  |  ]! } | j  ƒ  j d  ƒ s | ‘ q S(   u   .pyc(   u   loweru   endswith(   u   .0u   f(    (    u)   /tmp/pip-zej_zi-build/pip/commands/zip.pyu
   <listcomp>\  s   	 u,   ZipCommand.count_package.<locals>.<listcomp>(   u   osu   walku   len(   u   selfu   pathu   totalu   dirpathu   dirnamesu	   filenames(    (    u)   /tmp/pip-zej_zi-build/pip/commands/zip.pyu   count_packageY  s
    u   ZipCommand.count_package(   u   __name__u
   __module__u   __qualname__u   __doc__u   nameu   usageu   summaryu   __init__u   pathsu   runu   unzip_packageu   zip_packageu   remove_filename_from_pthu   add_filename_to_pthu	   pth_filesu   find_packageu   listu   count_package(   u
   __locals__(    (   u	   __class__u)   /tmp/pip-zej_zi-build/pip/commands/zip.pyu
   ZipCommand   s   *3,;u
   ZipCommand(   u   sysu   reu   fnmatchu   osu   shutilu   zipfileu   pip.utilu   display_pathu
   backup_diru   rmtreeu   pip.logu   loggeru   pip.exceptionsu   InstallationErroru   pip.basecommandu   Commandu
   ZipCommand(    (    (    u)   /tmp/pip-zej_zi-build/pip/commands/zip.pyu   <module>   s   