2biTJSrSSKrSSKrSSKrSSKrSSKJrJrJrJ r J r J r J r SSK Jr SSKJrJr SSKJr SSKJr SSKJrJr SS KJr SS KJr SS KJr SS KJ r SS K!J"r" SSK#J$r$ SSK%J&r& SSK'J(r( SSK)J*r*J+r+ /SQr,\RZ"\.5r/\R`Rc5r2S\3S\ \3\ \344Sjr4S\ \3S\ \34Sjr5S\S\ \3S\4Sjr6S\3S\ \ \3\3\ \344Sjr7S\3SS4Sjr8S\3S\34Sjr9"S S!5r:S\3S\:4S"jr;S?SS#SSS#S#S#SS$.S\3S%\ \ \ \34S&\ \<S'\S\3S/\3S\ \34S1jr?S/\3S2\ \3S\:4S3jr@S?SS#SSS#SS#SS4.S/\3S%\ \ \3\ 4S&\ \<S'\jrFg)Ba~Backing implementation for InstallRequirement's various constructors The idea here is that these formed a major chunk of InstallRequirement's size so, moving them and support code dedicated to them outside of that class helps creates for better understandability for the rest of the code. These are meant to be used elsewhere within pip to create instances of InstallRequirement. N) CollectionDictListOptionalSetTupleUnion)Marker)InvalidRequirement Requirement) Specifier)InstallationError)PyPITestPyPI)Link)Wheel)ParsedRequirement)InstallRequirement)is_archive_file)is_installable_dir)get_requirement) path_to_url)is_urlvcs)install_req_from_editableinstall_req_from_lineparse_editablepathreturnc[R"SU5nSnU(a%URS5nURS5nX24$UnX24$)Nz^(.+)(\[[^\]]+\])$)rematchgroup)rmextraspath_no_extrass ڐ/builddir/build/BUILDROOT/alt-python313-pip-23.3.1-3.el8.x86_64/opt/alt/python313/lib/python3.13/site-packages/pip/_internal/req/constructors.py _strip_extrasr*+sP &-A F  !!  !!r'cpU(d [5$[SUR5-5R$)N placeholder)setrlowerr')r's r)convert_extrasr07s( u =6<<>9 : A AAr+req new_extrascL[R"S[U5[RS9nUc SUS35eUR S5nUR S5nUbUc SUS35eU(aSS R [ U55-OS n[UUU35$) z Returns a new requirement based on the given one, with the supplied extras. If the given requirement already has extras those are replaced (or dropped if no new extras are given). z([\w\t .-]+)(\[[^\]]*\])?(.*))flagszregex match on requirement z! failed, this should never happenr!z®ex group selection for requirement z[%s],)r# fullmatchstrASCIIr%joinsortedr )r1r2r$prepostr's r)_set_requirement_extrasr?=s &(\\( Chh &E L $SE)JKLQC++a.D D,W /u4UVW,;E&388F:$6772F #vhtf- ..r+ editable_reqcUn[U5up#[RRU5(a [ U5nUR 5R S5(aQ[U5RnU(a)UU[SUR 5-5R4$XB[54$[H3nUR 5R US35(dM,USU3n O [U5nUR(d0SR[R5n[!USUS35eURnU(d[!SR#U55eXA[54$) zParses an editable requirement into: - a requirement name - an URL - extras - editable options Accepted requirements: svn+http://blahblah@rev#egg=Foobar[baz]&subdirectory=version_subdir .[some_extra] zfile:r-:+z, zq is not a valid editable requirement. It should either be a path to a local project or a VCS URL (beginning with z).zZCould not detect requirement name for '{}', please specify one with #egg=your_package_name)r*osrisdirrr/ startswithr egg_fragmentrr'r.ris_vcsr; all_schemesrformat)r@url url_no_extrasr' package_nameversion_controllinkbackendss r)rrVsY C*#.M ww}}]###M2 ''00M*77    >?FF   5 5 99; ! !_$5Q"7 8 8$%Qse,C  9D ;;99S__-n'j ,  $$L  **0&*>   ce ##r+filenamecF[USSS9nSSU55nUHfnSU;aUSURS5nURS5(a USS R5[ US 5-n[ U5 SSS5 g SSS5 g!,(df  g=f) a Check if file is parsable as a requirements file. This is heavily based on ``pkg_resources.parse_requirements``, but simplified to just check the first meaningful line. :raises InvalidRequirement: If the first meaningful line cannot be parsed as an requirement. zutf-8ignore)encodingerrorsc3h# UH(nU(dM URS5(aM$Uv M* g7f)#N)rF.0lines r) 2check_first_requirement_in_file..s- 4  OOC0 D4s 22 2c3@# UHoR5v M g7fN)striprXs r)r[r\s4!$!sz #N\r7)openfindendswithr_nextr )rQflinesrZs r)check_first_requirement_in_filerhs h :a 4!4  Dt|-diio.}}T""CRy(4r?:   ! ; : ; : :sA2BB B c[RRU5(dSUS3$Sn[U5 USUS3- nU$![a [ R SU5 U$f=f)zxReturns helpful msg in case requirements file does not exist, or cannot be parsed. :params req: Requirements file path z File 'z' does not exist.z The path does exist. zThe argument you provided (zx) appears to be a requirements file. If that is the case, use the '-r' flag to install the packages specified within it.z&Cannot parse '%s' as requirements file)rDrexistsrhr loggerdebug)r1msgs r)deduce_helpful_msgrns 77>>#  .// "C  ', u1 2  J D =sC JDs A A('A(c F\rSrSrS\\S\\S\\S\\ 4Sjr Sr g) RequirementParts requirementrOmarkersr'c4XlX lX0lX@lgr^)rrrOrsr')selfrrrOrsr's r)__init__RequirementParts.__init__s'   r+)r'rOrsrrN) __name__ __module__ __qualname____firstlineno__rr rr rr9rv__static_attributes__r+r)rprps? k* tn &!  C r+rpc[U5upnUb [U5nOSn[ U5n[ XESU5$![a [SUS35ef=f)NInvalid requirement: '')rr r rrrp)r@namerKextras_overrider1rOs r)parse_req_from_editablersn!/ !=D  F)4T):C 9D Ct_ ==" F#&T(dU$USTS3$)Nz (from )r})rrs r) with_source(parse_req_from_line..with_sourcehsKw{m1--r+ req_as_stringc>^[T5nURH5n[U5nURS5(dM&SUS3n[ U5e U$![ a [ RRT;aSnU[T5- nO)ST;a![U4Sj[55(dSnOSnT"S T<35nU(aUS U3- n[ U5ef=f) N]zExtras after version 'z'.zIt looks like a path.=c3,># UH oT;v M g7fr^r})rYoprs r)r[Aparse_req_from_line.._parse_req_string..ts2.7m#isz,= is not a valid operator. Did you mean == ?r7zInvalid requirement: z Hint: ) r specifierr9rdrr rDrrrnany operators)rr1specspec_strrmadd_msgrs` r)_parse_req_string.parse_req_from_line.._parse_req_stringms 1!-0C( t9$$S))28*B?C+C00 &  1" )ww{{m+1-m<< %c2.72//I 5m5FGHC'++#C( ( )s AB C)rrr_r rDrnormpathabspathrr*rschemer#searchrKris_wheelrrQrversionrGr0r9r rp)rr marker_sepmarkers_as_stringrsrrrOextras_as_stringprKwheelr'rr1rs ` @r)parse_req_from_liner8s d||  "&**Z";-335 G./G ::rsr  FFF0N665*,8<9790)    8 $  % % '  " "c8C=&8 9 "B8C=BSXB //#c(/{/24$4$x}c3s8/K)L4$ncd8CC2   ># >2B >*<@"&*.37#(BF13678    T#Y' 4T#Y/0!d3c49n(=#=>?@34&S DW8cW8 W8BRW8x<@""&*.37!%BF" "s$6678" "  " T#Y' "4T#Y/0""#""d3c49n(=#=>?""N04!% ##+,## #  #  #P!%BF %!%%% % d3c49n(=#=>? %  %P ($"49K4  sOr+