Re LddlmZmZmZddlmZddlmZGddZdS)) FrozenSetOptionalSet)canonicalize_name) CommandErrorc eZdZdZddgZ ddeeedeeeddfdZde de fdZ defd Z e d ed eedeeddfd Zd edeefdZddZdS) FormatControlzBHelper for managing formats from which a package can be installed. no_binary only_binaryNreturncb|t}|t}||_||_dSN)setr r )selfr r s /builddir/build/BUILDROOT/alt-python311-pip-21.3.1-3.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/pip/_internal/models/format_control.py__init__zFormatControl.__init__ s7  I  %%K"&otherctjstSjjkrdSt fdjDS)NFc3\K|]&}t|t|kV'dSr)getattr).0krrs r z'FormatControl.__eq__..!s<QQQ74##wua'8'88QQQQQQr) isinstance __class__NotImplemented __slots__all)rrs``r__eq__zFormatControl.__eq__sZ%00 "! ! >U_ , ,5QQQQQ$.QQQQQQrcXd|jj|j|jS)Nz {}({}, {}))formatr__name__r r rs r__repr__zFormatControl.__repr__#s+"" N #T^T5E   rvaluetargetc|drtd|d}d|vrb|||d|d|ddz=d|vrdSd|vb|D]V}|dkr|t |}||||WdS)N-z7--no-binary / --only-binary option requires 1 argument.,:all:z:none:) startswithrsplitclearaddindexrdiscard)r&r'rnewnames rhandle_mutual_excludesz$FormatControl.handle_mutual_excludes(s   C  I kk#nn KKMMM LLNNN JJw   ,cii((1,,-s""nn  Dx $T**D MM$    JJt       rcanonical_namecddh}||jvr|dn\||jvr|dn=d|jvr|dnd|jvr|dt|S)Nbinarysourcer+)r r2r frozenset)rr6results rget_allowed_formatsz!FormatControl.get_allowed_formats?sH% T- - - NN8 $ $ $ $ t~ - - NN8 $ $ $ $ ( ( ( NN8 $ $ $ $  & & NN8 $ $ $   rcH|d|j|jdS)Nr+)r5r r r$s rdisallow_binarieszFormatControl.disallow_binariesKs2 ##  N       r)NN)r N)r# __module__ __qualname____doc__rrrstrrobjectboolr r% staticmethodr5rr<r>rrr r s5LLm,I)-*. ' 'CH% 'c#h' '  ' ' ' 'RFRtRRRR #    c3s8CHQU\, !# !)C. ! ! ! !      rr N) typingrrrpip._vendor.packaging.utilsrpip._internal.exceptionsrr rFrrrJs++++++++++999999111111H H H H H H H H H H r