
    *,h<                     x   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Zd dlmZ d dl	m
Z
mZmZmZmZmZmZmZ d dlmZ d dlmZ d dlmZ d dlmZ d dlmZ d d	lmZ d d
lmZ d dl m!Z!m"Z" d dl#m$Z$ d dl%m&Z& d dl'm(Z(m)Z)m*Z*m+Z+ d dl,m-Z- d dl.m/Z/ d dl0m1Z1 d dl2m3Z3 d dl4m5Z5 d dl6m3Z7 d dl8m9Z: d dl;m<Z< d dl=m>Z>m?Z? d dl@mAZA d dlBmCZC d dlDmEZE d dlFmGZGmHZHmIZImJZJmKZKmLZL d dlMmNZN d dlOmPZP d dlQmRZRmSZS d dlTmUZU d dlVmWZW  ej                  eY      ZZ G d  d!      Z[d"e[d#e\fd$Z]d%ed&ee[   d'e\d#e^fd(Z_d%ed&ee[   d#dfd)Z`y)*    N)Values)Any
CollectionDictIterableListOptionalSequenceUnion)Marker)Requirement)SpecifierSet)canonicalize_name)Version)parse)BuildBackendHookCaller)BuildEnvironmentNoOpBuildEnvironment)InstallationError)
get_scheme)BaseDistributionget_default_environmentget_directory_distributionget_wheel_distribution)FilesystemWheel)	DirectUrl)Link)generate_metadata)generate_editable_metadata)install_editable)install_wheel)load_pyproject_tomlmake_pyproject_path)UninstallPathSet)
deprecated)Hashes) ConfiguredBuildBackendHookCallerask_path_exists
backup_dirdisplay_pathhide_urlredact_auth_from_url)
safe_extra)runner_with_spinner_message)TempDirectorytempdir_kinds)running_under_virtualenv)vcsc                       e Zd ZdZ	 	 	 	 	 dIdddddddddee   deeed f      ded	ee	   d
ee
   dee   dedeee      deeeee   f      deeeeeee   f   f      dedee   dededdfdZdefdZdefdZdefdZedee   fd       Z ej*                         defd       Zedefd       Zedefd       Zedefd       ZdJdeee      defdZedefd        ZdKd!edefd"Zdee   fd#Z d$ed%ed&edefd'Z!dLd(Z"dLd)Z#d*eddfd+Z$edefd,       Z%edefd-       Z&edefd.       Z'edefd/       Z(edefd0       Z)edefd1       Z*dLd2Z+dLd3Z,dLd4Z-ede.fd5       Z/de0fd6Z1dLd7Z2	 	 dMd8ed%ed&eddfd9Z3dLd:Z4	 dMd;ed<edee5   fd=Z6d>ed?ed@edefdAZ7d$ee   ddfdBZ8	 	 	 	 	 	 	 dNdee9e      dCee   dDee   dEee   dFed*edGeddfdHZ:y)OInstallRequirementz
    Represents something that may be installed later on, may have information
    about where to fetch the relevant requirement and also contains logic for
    installing the said requirement.
    FN )global_optionshash_optionsconfig_settings
constraintextrasuser_suppliedpermit_editable_wheelsreq
comes_fromeditablelinkmarkers
use_pep517isolatedr6   r7   r8   r9   r:   r;   r<   returnc                0   |t        |t              sJ |       || _        || _        || _        || _        || _        d | _        | j
                  r[|sJ |j                  rKt        j                  j                  t        j                  j                  |j                              | _        |#|r!|j                  rt        |j                        }|x| _        | _        d | _        d | _        d | _        | j                   r1| j                   j                  r| j                   j                  | _        |r|| _        n:|r)|j*                  D ch c]  }t-        |       c}| _        nt/               | _        ||r|j0                  }|| _        d | _        d| _        d | _        d | _        |r|ng | _        |	r|	ni | _        |
| _         d| _!        || _"        || _#        tI               | _%        d | _&        d | _'        g | _(        d | _)        || _*        d| _+        y c c}w NF),
isinstancer   r=   r>   r9   r?   r<   
source_diris_fileospathnormpathabspath	file_pathurlr   r@   original_linkcached_wheel_source_linkdownload_infolocal_file_pathr:   r-   setmarkerrA   satisfied_byshould_reinstall_temp_build_dirinstall_succeededr6   r7   r8   preparedr;   rC   r   	build_envmetadata_directorypyproject_requiresrequirements_to_checkpep517_backendrB   needs_more_preparation)selfr=   r>   r?   r@   rA   rB   rC   r6   r7   r8   r9   r:   r;   r<   extras                   _/var/www/html/Resume-Scraper/venv/lib/python3.12/site-packages/pip/_internal/req/req_install.py__init__zInstallRequirement.__init__G   s   $ {jk:?C?$$ &<# *.==K||"$''"2"2277??4>>3R"S <CCGG=D)--	D&
 9=% 37 /399**#'99#6#6D  DK:=**E:e,EDK%DK?sjjG 9= !&8<150>nB,8Lb. + +?+A 26 8< 13" AE % ',#k Fs   
Hc                 h   | j                   rSt        | j                         }| j                  r`|dj                  t	        | j                  j
                              z  }n.| j                  r t	        | j                  j
                        }nd}| j                  @| j                  j                   t        | j                  j                        }nd}|d| z  }| j                  rLt        | j                  t              r| j                  }n| j                  j                         }|r	|d| dz  }|S )Nz from {}z<InstallRequirement>z<memory> in z (from ))r=   strr@   formatr,   rO   rV   locationr*   r>   rG   	from_path)ra   srj   r>   s       rc   __str__zInstallRequirement.__str__   s    88DHHAyyZ&&';DIIMM'JKKYY$TYY]]3A&A(  ))5'(9(9(B(BC%4z""A??$//3/,0OO
!__668
wzl!,,    c                 v    dj                  | j                  j                  t        |       | j                        S )Nz<{} object: {} editable={!r}>)ri   	__class____name__rh   r?   ra   s    rc   __repr__zInstallRequirement.__repr__   s.    .55NN##SY
 	
rn   c                     t        |       t              }fdt        |      D        }dj                  | j                  j                  dj                  |            S )z5An un-tested helper for getting state, for debugging.c              3   H   K   | ]  }d j                  ||           yw)z{}={!r}N)ri   ).0attr
attributess     rc   	<genexpr>z2InstallRequirement.format_debug.<locals>.<genexpr>   s#     Td!!$
4(89Ts   "z<{name} object: {{{state}}}>z, )namestate)varssortedri   rp   rq   join)ra   namesr{   rx   s      @rc   format_debugzInstallRequirement.format_debug   sU    $Z
z"TfUmT-44(())E" 5 
 	
rn   c                 H    | j                   y | j                   j                  S N)r=   rz   rr   s    rc   rz   zInstallRequirement.name   s    88xx}}rn   c                 @   | j                   sy| j                  sJ | j                  5  t        d      }| j                  j	                  |      5  d| j                  j                         v cd d d        cd d d        S # 1 sw Y   nxY w	 d d d        y # 1 sw Y   y xY w)NFz1Checking if build backend supports build_editablebuild_editable)rB   r_   r[   r.   subprocess_runner_supported_features)ra   runners     rc   supports_pyproject_editablez.InstallRequirement.supports_pyproject_editable   s    """^^ 	U0CF $$66v> U'4+>+>+R+R+TTU U		U 	UU U U		U 	U 	Us#   'BA>+	B>B	BBc                 .    | j                   j                  S r   )r=   	specifierrr   s    rc   r   zInstallRequirement.specifier   s    xx!!!rn   c                     | j                   duS )z7Whether this requirement was specified as a direct URL.N)rP   rr   s    rc   	is_directzInstallRequirement.is_direct   s     !!--rn   c                 z    | j                   }t        |      dk(  xr  t        t        |            j                  dv S )zReturn whether I am pinned to an exact version.

        For example, some-package==1.2 is pinned; some-package>1.2 is not.
           >   =====)r   lennextiteroperator)ra   
specifierss     rc   	is_pinnedzInstallRequirement.is_pinned   s6     ^^
:!#XT*-=(>(G(G=(XXrn   extras_requestedc                 N     |sd} j                   t         fd|D              S y)N) c              3   X   K   | ]!  }j                   j                  d |i       # yw)rb   N)rA   evaluate)rv   rb   ra   s     rc   ry   z3InstallRequirement.match_markers.<locals>.<genexpr>  s*      <A%%w&67s   '*T)rA   any)ra   r   s   ` rc   match_markersz InstallRequirement.match_markers  s7      %<<# EU   rn   c                 ,    t        | j                        S )zReturn whether any known-good hashes are specified as options.

        These activate --require-hashes mode; hashes specified as part of a
        URL do not.

        )boolr7   rr   s    rc   has_hash_optionsz#InstallRequirement.has_hash_options  s     D%%&&rn   trust_internetc                 >   | j                   j                         }|r| j                  }n'| j                  r| j                  r| j
                  }nd}|rA|j                  r5|j                  |j                  g       j                  |j                         t        |      S )a  Return a hash-comparer that considers my option- and URL-based
        hashes to be known-good.

        Hashes in URLs--ones embedded in the requirements file, not ones
        downloaded from an index server--are almost peers with ones from
        flags. They satisfy --require-hashes (whether it was implicitly or
        explicitly activated) but do not activate it. md5 and sha224 are not
        allowed in flags, which should nudge people toward good algos. We
        always OR all hashes together, even ones from URLs.

        :param trust_internet: Whether to trust URL-based (#md5=...) hashes
            downloaded from the internet, as by populate_link()

        N)r7   copyr@   r   r;   rP   hash
setdefault	hash_nameappendr&   )ra   r   good_hashesr@   s       rc   hasheszInstallRequirement.hashes  sz     '',,.99D^^ 2 2%%DDDII""4>>26==diiHk""rn   c                     | j                   yt        | j                         }| j                  rKt        | j                  t              r| j                  }n| j                  j	                         }|r|d|z   z  }|S )z8Format a nice indicator to show where this "comes from" Nz->)r=   rh   r>   rG   rk   )ra   rl   r>   s      rc   rk   zInstallRequirement.from_path7  sc    88M??$//3/!__
!__668
TJ&&rn   	build_dir
autodeleteparallel_buildsc                    |J | j                   .| j                   j                  sJ | j                   j                  S | j                  6t        t        j
                  d      | _         | j                   j                  S t        | j                        }|r#| dt        j                         j                   }t        j                  j                  |      s+t        j                  d|       t        j                  |       t        j                  j!                  ||      }|rd nd}t        ||t        j
                  d      j                  S )NT)kindglobally_managed_zCreating directory %sF)rK   deleter   r   )rX   rK   r=   r/   r0   	REQ_BUILDr   rz   uuiduuid4hexrJ   existsloggerdebugmakedirsr~   )ra   r   r   r   dir_nameactual_build_dir
delete_args          rc   ensure_build_locationz(InstallRequirement.ensure_build_locationE  s    $$+'',,,'',,,88 $1",,t$D  '',,, *$))4"1TZZ\%5%5$67H ww~~i(LL0)<KK	"77<<	8< (TU
!((!	

 $	rn   c                 &   | j                   J | j                  J | j                  J t        t	        | j                  d         t
              rd}nd}t        dj                  | j                  d   || j                  d   g            | _         y)z*Set requirement after generating metadata.Nr   r   r   r   Name)r=   metadatarH   rG   parse_versionr   r   r~   )ra   ops     rc   _set_requirementz#InstallRequirement._set_requirementp  s    xx}}((** mDMM)$<=wGBBGGMM&)MM),
rn   c                     t        | j                  d         }t        | j                  j                        |k(  ry t        j                  d| j                  || j                         t        |      | _        y )Nr   zeGenerating metadata for package %s produced metadata for project name %s. Fix your #egg=%s fragments.)r   r   r=   rz   r   warningr   )ra   metadata_names     rc   warn_on_mismatching_namez+InstallRequirement.warn_on_mismatching_name  sa    )$--*?@TXX]]+}< 	! IIII	
 }-rn   use_user_sitec                    | j                   yt               j                  | j                   j                        }|sy| j                   j                  j                  |j                  d      }|sbd| _        |rO|j                  rd| _	        yt               r:|j                  r-t        d|j                   d|j                         d| _	        yyy| j                  rd| _	        d| _        y|| _        y)zFind an installed distribution that satisfies or conflicts
        with this requirement, and set self.satisfied_by or
        self.should_reinstall appropriately.
        NT)prereleaseszNWill not install to the user site because it will lack sys.path precedence to rf   )r=   r   get_distributionrz   r   containsversionrV   in_usersiterW   r1   in_site_packagesr   raw_namerj   r?   )ra   r   existing_distversion_compatibles       rc   check_if_existsz"InstallRequirement.check_if_exists  s    
 88/1BB488==Q!XX//88!! 9 
 " $D ,,,0D)-/M4R4R+77D7M7M6N O+4457  )-% 5S/ }}(,% %)!$1!rn   c                 H    | j                   sy| j                   j                  S rF   )r@   is_wheelrr   s    rc   r   zInstallRequirement.is_wheel  s    yyyy!!!rn   c                     | j                   d uS r   )rQ   rr   s    rc   is_wheel_from_cachez&InstallRequirement.is_wheel_from_cache  s     ,,D88rn   c                     t         j                  j                  | j                  | j                  xr | j                  j
                  xs d      S )Nr   )rJ   rK   r~   rH   r@   subdirectory_fragmentrr   s    rc   unpacked_source_directoryz,InstallRequirement.unpacked_source_directory  s8    ww||OOTYYJ499+J+JPb
 	
rn   c                     | j                   s
J d|         t        j                  j                  | j                  d      }|S )NNo source dir for zsetup.pyrH   rJ   rK   r~   r   )ra   setup_pys     rc   setup_py_pathz InstallRequirement.setup_py_path  s8    ;"4TF ;;77<< > >
Krn   c                     | j                   s
J d|         t        j                  j                  | j                  d      }|S )Nr   z	setup.cfgr   )ra   	setup_cfgs     rc   setup_cfg_pathz!InstallRequirement.setup_cfg_path  s9    ;"4TF ;;GGLL!?!?M	rn   c                 X    | j                   s
J d|         t        | j                        S )Nr   )rH   r#   r   rr   s    rc   pyproject_toml_pathz&InstallRequirement.pyproject_toml_path  s*    ;"4TF ;;"4#A#ABBrn   c                 2   t        | j                  | j                  | j                  t	        |             }|&| j
                  rt        d|  ddd       d| _        yd| _        |\  }}}}|| _        || _        t        | | j                  ||	      | _        y)
aA  Load the pyproject.toml file.

        After calling this routine, all of the attributes related to PEP 517
        processing for this requirement have been set. In particular, the
        use_pep517 attribute can be used to determine whether we should
        follow the PEP 517 or legacy (setup.py) code path.
        Nz(Config settings are ignored for project .z?to use --use-pep517 or add a pyproject.toml file to the project23.3)reasonreplacementgone_inFT)backend_path)r"   rB   r   r   rh   r8   r%   r^   r]   r'   r   r_   )ra   pyproject_toml_datarequiresbackendcheckr   s         rc   r"   z&InstallRequirement.load_pyproject_toml  s     2OOT55t7I7I3t9
 &##EdV1M= # $DO1D.'5,%*""*>**%	
rn   c                    | j                   r| j                  rt| j                         sct        j                  j                  | j                        s9t        j                  j                  | j                        st        d|  d      yyyyy)zCheck that an editable requirement if valid for use with PEP 517/518.

        This verifies that an editable that has a pyproject.toml either supports PEP 660
        or as a setup.py or a setup.cfg
        zProject z has a 'pyproject.toml' and its build backend is missing the 'build_editable' hook. Since it does not have a 'setup.py' nor a 'setup.cfg', it cannot be installed in editable mode. Consider using a build backend that supports PEP 660.N)	r?   rB   r   rJ   rK   isfiler   r   r   rr   s    rc   isolated_editable_sanity_checkz1InstallRequirement.isolated_editable_sanity_check  s     MM446GGNN4#5#56GGNN4#6#67#4& !H I  8 7 7   rn   c                 r   | j                   sJ | j                  xs d| j                   }| j                  r| j                  J | j
                  rD| j                  r8| j                         r(t        | j                  | j                  |      | _
        net        | j                  | j                  |      | _
        n=t        | j                  | j                  | j                  | j                  |      | _
        | j                  s| j!                          n| j#                          | j%                          y)zEnsure that project metadata is available.

        Under PEP 517 and PEP 660, call the backend hook to prepare the metadata.
        Under legacy processing, call setup.py egg-info.
        zfrom N)r[   r   details)r[   r   rH   rC   r   )rH   rz   r@   rB   r_   r?   r<   r   r   r[   r\   r   generate_metadata_legacyr   r   rC   r   r   assert_source_matches_version)ra   r   s     rc   prepare_metadataz#InstallRequirement.prepare_metadata  s     ))2tyyk2??&&22//446*D"nn //#+' +<"nn //#+' '?.."0099'D# yy!!#))+**,rn   c                 p    t        | d      s| j                         j                  | _        | j                  S )N	_metadata)hasattrget_distr   r   rr   s    rc   r   zInstallRequirement.metadataH  s)    t[)!]]_55DN~~rn   c                     | j                   rt        | j                         S | j                  r>| j                  r2t	        t        | j                        t        | j                              S t        d|  d      )NzInstallRequirement zC has no metadata directory and no wheel: can't make a distribution.)	r\   r   rS   r   r   r   r   rz   AssertionErrorrr   s    rc   r   zInstallRequirement.get_distO  sr    ""-d.E.EFF!!dmm) 4 457H7S  !$ () *
 	
rn   c                     | j                   sJ | j                  d   }| j                  j                  r0|| j                  j                  vrt        j                  d| |       y t        j                  dt        | j                         ||        y )Nr   z'Requested %s, but installing version %sz;Source in %s has version %s, which satisfies requirement %s)rH   r   r=   r   r   r   r   r*   )ra   r   s     rc   r   z0InstallRequirement.assert_source_matches_version[  sp    --	*88'1C1C"CNN9 LLMT__-	rn   
parent_dirc                 P    | j                   | j                  |||      | _         yy)aA  Ensure that a source_dir is set.

        This will create a temporary build dir if the name of the requirement
        isn't known yet.

        :param parent_dir: The ideal pip parent_dir for the source_dir.
            Generally src_dir for editables and build_dir for sdists.
        :return: self.source_dir
        N)r   r   )rH   r   )ra   r   r   r   s       rc   ensure_has_source_dirz(InstallRequirement.ensure_has_source_dirm  s3     ??""88% / 9 DO #rn   c                    | j                   s!t        j                  d| j                         y | j                  sJ | j                  sJ | j                   j
                  dk(  ry t        j                  | j                   j
                        }|sJ d| j                   j                          t        | j                   j                        }|j                  | j                  |d       y )Nz>Cannot update repository at %s; repository location is unknownfilezUnsupported VCS URL r   )rO   	verbosity)r@   r   r   rH   r?   schemer2   get_backend_for_schemerO   r+   obtain)ra   vcs_backend
hidden_urls      rc   update_editablez"InstallRequirement.update_editable  s    yyLLP }}99v%001A1AB B2499==/BBdiimm,
4??
aHrn   auto_confirmverbosec                 <   | j                   sJ t               j                  | j                   j                        }|s!t        j                  d| j                         yt        j                  d|       t        j                  |      }|j                  ||       |S )a  
        Uninstall the distribution currently satisfying this requirement.

        Prompts before removing or modifying files unless
        ``auto_confirm`` is True.

        Refuses to delete or modify files outside of ``sys.prefix`` -
        thus uninstallation within a virtual environment can only
        modify that virtual environment, even if the virtualenv is
        linked to global site-packages.

        z#Skipping %s as it is not installed.NzFound existing installation: %s)
r=   r   r   rz   r   r   infor$   	from_distremove)ra   r  r  distuninstalled_pathsets        rc   	uninstallzInstallRequirement.uninstall  sw     xx&(99$((--HNN@$))L5t<.88>""<9""rn   rK   	parentdirrootdirc                     dt         dt         dt         fd}t        j                  j                  ||      } |||      }| j                  dz   |z   S )Nrz   prefixrD   c                     | j                  |t        j                  j                  z         sJ d| d|       | t	        |      dz   d  } | j                  t        j                  j                  d      } | S )Nzname z doesn't start with prefix r   /)
startswithrJ   rK   sepr   replace)rz   r  s     rc   _clean_zip_namez=InstallRequirement._get_archive_name.<locals>._clean_zip_name  so    ??$ Eth9&DE Fa)*D<<S1DKrn   r  )rh   rJ   rK   r~   rz   )ra   rK   r  r  r  rz   s         rc   _get_archive_namez$InstallRequirement._get_archive_name  sQ    	# 	s 	s 	 ww||It,tW-yy3%%rn   c                 V   | j                   sJ |yd}dj                  | j                  | j                  d         }t        j
                  j                  ||      }t        j
                  j                  |      rt        dj                  t        |            d      }|dk(  rd}n|d	k(  r5t        j                  d
t        |             t	        j                  |       nj|dk(  rKt        |      }t        j                  dt        |      t        |             t        j                  ||       n|dk(  rt!        j"                  d       |syt%        j&                  |d	t$        j(                  d      }|5  t        j
                  j+                  t        j
                  j-                  | j.                              }t	        j0                  |      D ]  \  }	}
}|
D ]G  }| j3                  ||	|      }t%        j4                  |dz         }d|_        |j9                  |d       I |D ]H  }| j3                  ||	|      }t        j
                  j                  |	|      }|j;                  ||       J  	 ddd       t        j=                  dt        |             y# 1 sw Y   )xY w)z}Saves archive to provided build_dir.

        Used for saving downloaded VCS requirements as part of `pip download`.
        NTz	{}-{}.zipr   z8The file {} exists. (i)gnore, (w)ipe, (b)ackup, (a)bort )iwbar!  Fr"  zDeleting %sr#  zBacking up %s to %sr$  )
allowZip64)r  r  r  i  r   zSaved %s)rH   ri   rz   r   rJ   rK   r~   r   r(   r*   r   r   r  r)   shutilmovesysexitzipfileZipFileZIP_DEFLATEDnormcaserM   r   walkr  ZipInfoexternal_attrwritestrwriter  )ra   r   create_archivearchive_namearchive_pathresponse	dest_file
zip_outputdirdirpathdirnames	filenamesdirnamedir_arcnamezipdirfilenamefile_arcnames                    rc   archivezInstallRequirement.archive  sO   
 "))$))T]]95MNww||I|<77>>,'&%%+VL,F%G$H
 3!&S}l<.HI		,'S&|4	) . +
 L)4S__  	

  	=''""277??43Q3Q#RSC02 =,9' 4G"&"8"8") # #9 #K
 %__[3->?F+6F(''34 !* =H#'#9#9 ") # $: $L
  "ww||GX>H$$X|<==	=* 	J\ :;+	= 	=s   8C>JJ(roothomer  warn_script_location	pycompilec                     t        | j                  |||| j                  |      }| j                  r^| j                  sRt        ||ng |||| j                  | j                  | j                  | j                  | j                  	       d| _	        y | j                  sJ | j                  sJ t        | j                  | j                  |t        | j                        ||| j                  r| j                  nd | j                          d| _	        y )N)userrE  rD  rC   r  )	r6   r  rE  r   rz   r   rC   r[   r   T)r  req_descriptionrG  rF  
direct_url	requested)r   rz   rC   r?   r   install_editable_legacyr   r[   r   rY   rS   r!   rh   r=   r   rR   r;   )	ra   r6   rD  rE  r  rF  r   rG  r  s	            rc   installzInstallRequirement.install  s     II]]
 ==#1?1K~QS+YY"00..*.*H*H
 &*D"}}###II  M!5-1^^t))((		
 "&rn   )FNNNFr   )T)rD   N)FF)NNNNTFT);rq   
__module____qualname____doc__r	   r   r   rh   r   r   r   r   r   r   rd   rm   rs   r   propertyrz   	functools	lru_cacher   r   r   r   r   r   r   r   r&   r   rk   r   r   r   r   r   r   r   r   r   r   r"   r   r   r   r   r   r   r   r  r  r$   r  r  rC  r
   rN  r5   rn   rc   r4   r4   @   s    #$(%)q, /37;FJ "$#',!q,k"q, U3(<#<=>q, 	q,
 tnq, &!q, TNq, q, !c+q, tCcN34q, "$sE#tCy.,A'A"BCq, q, 3q, q,  !%!q," 
#q,f 0
# 

	
c 	
 hsm  
 Y	UT 	U 	U "< " " .4 . . Y4 Y Y
hx}.E 
QU 
 '$ ' '#T #V #48C= ))*.)AE)	)V
,."#2T #2d #2L "$ " "
 9T 9 9 
3 
 

 s      CS C C"
H**-X #  

* 

* ! %	  	
 
.I* ;@# #37#	"	##4&c &c &C &C &A<# A<4 A<J 37"" $%)#/& #//& sm/& sm	/&
 /& #/& /& /& 
/&rn   r4   r=   rD   c                     d}| j                   sd}n| j                  rd}n| j                  rd}|rt        ddd d       |S )	Nr   z3Unnamed requirements are not allowed as constraintsz4Editable requirements are not allowed as constraintszConstraints cannot have extrasa  Constraints are only allowed to take the form of a package name and a version specifier. Other forms were originally permitted as an accident of the implementation, but were undocumented. The new implementation of the resolver no longer supports these forms.z+replacing the constraint with a requirementi   )r   r   r   issue)rz   r?   r:   r%   )r=   problems     rc   check_invalid_constraint_typerX  4  sN    G88G	H	2/ F	
 Nrn   optionsreqsoptionc                 L    t        | |d       ry|D ]  }t        ||d       s y y)NTF)getattr)rY  rZ  r[  r=   s       rc   _has_optionr^  P  s4    w% 3% rn   c                     t        | |d      }t        | |d      }|s|r?t        dddd       t        j                  d       | j                  j                          y y )	Nbuild_optionsr6   z2--build-option and --global-option are deprecated.iS.  zto use --config-settingsr   )r   rV  r   r   zTImplying --no-binary=:all: due to the presence of --build-option / --global-option. )r^  r%   r   r   format_controldisallow_binaries)rY  rZ  has_build_optionshas_global_optionss       rc   check_legacy_setup_py_optionsre  Y  si     $GT?C$Wd4DE.G2		
 	1	
 	002 /rn   )arS  loggingrJ   r'  r)  r   r+  optparser   typingr   r   r   r   r   r	   r
   r   pip._vendor.packaging.markersr   "pip._vendor.packaging.requirementsr    pip._vendor.packaging.specifiersr   pip._vendor.packaging.utilsr   pip._vendor.packaging.versionr   r   r   pip._vendor.pyproject_hooksr   pip._internal.build_envr   r   pip._internal.exceptionsr   pip._internal.locationsr   pip._internal.metadatar   r   r   r   pip._internal.metadata.baser   pip._internal.models.direct_urlr   pip._internal.models.linkr   'pip._internal.operations.build.metadatar   0pip._internal.operations.build.metadata_editabler   .pip._internal.operations.build.metadata_legacyr   0pip._internal.operations.install.editable_legacyr    rM  &pip._internal.operations.install.wheelr!   pip._internal.pyprojectr"   r#   pip._internal.req.req_uninstallr$   pip._internal.utils.deprecationr%   pip._internal.utils.hashesr&   pip._internal.utils.miscr'   r(   r)   r*   r+   r,   pip._internal.utils.packagingr-   pip._internal.utils.subprocessr.   pip._internal.utils.temp_dirr/   r0   pip._internal.utils.virtualenvr1   pip._internal.vcsr2   	getLoggerrq   r   r4   rh   rX  r   r^  re  r5   rn   rc   <module>r     s     	  
    S S S 0 : 9 9 1 @ > J 6 .  8 5 * E W A L < 6 -  5 F E C !			8	$q& q&h'9 c 8 t,>'?  QU 33
!
"3 
3rn   