
    g                     Z   S SK r S SKrS SKrS SKrS SKJrJrJrJrJ	r	  S SK
Jr  SSKJrJrJrJrJr  \(       a	  S SKJrJr  O\r/ SQrS\4S	 jr " S
 S\5      r\R2                  " SS9S\4S j5       rS\4S jrS\\\      S\4S jrS\S\4S jrS\S\S\4S jrS\ S\S\S\4S jr!g)    N)TYPE_CHECKINGListOptionalTypecast)	strtobool   )BaseDistributionBaseEnvironmentFilesystemWheelMemoryWheelWheel)LiteralProtocol)	r
   r   r   r   r   get_default_environmentget_environmentget_wheel_distributionselect_backendreturnc                  2   [         R                  " [        [        5         [	        [        [        R                  S   5      5      sSSS5        $ ! , (       d  f       O= f[        R                  S:  a  gSSK
n [	        [        U R                  SS5      5      $ )aj  Whether to use the ``importlib.metadata`` or ``pkg_resources`` backend.

By default, pip uses ``importlib.metadata`` on Python 3.11+, and
``pkg_resources`` otherwise. This can be overridden by a couple of ways:

* If environment variable ``_PIP_USE_IMPORTLIB_METADATA`` is set, it
  dictates whether ``importlib.metadata`` is used, regardless of Python
  version.
* On Python 3.11+, Python distributors can patch ``importlib.metadata``
  to add a global constant ``_PIP_USE_IMPORTLIB_METADATA = False``. This
  makes pip use ``pkg_resources`` (unless the user set the aforementioned
  environment variable to *True*).
_PIP_USE_IMPORTLIB_METADATAN)      Fr   T)
contextlibsuppressKeyError
ValueErrorboolr   osenvironsysversion_infoimportlib.metadatagetattrmetadata	importlibs    g/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/pip/_internal/metadata/__init__.py_should_use_importlib_metadatar)      sf     
		Xz	2Ibjj)FGHI 
3	2	2
'!	**,I4PQQs   %A
Ac                   @    \ rS rSr% S\S'   \\   \S'   \\   \S'   Srg)Backend4   z%Literal["importlib", "pkg_resources"]NAMEDistributionEnvironment N)	__name__
__module____qualname____firstlineno____annotations__r   r
   r   __static_attributes__r0       r(   r+   r+   4   s    
11'((o&&r7   r+   )maxsizec                  x    [        5       (       a  SSKJn   [        [        U 5      $ SSKJn  [        [        U5      $ )Nr	   r&   )pkg_resources)r)    r'   r   r+   r:   )r'   r:   s     r(   r   r   :   s+    %''GY''''r7   c                  F    [        5       R                  R                  5       $ )zGet the default representation for the current environment.

This returns an Environment instance from the chosen backend. The default
Environment instance should be built from ``sys.path`` and may use caching
to share instance state across calls.
)r   r/   defaultr0   r7   r(   r   r   E   s     ''//11r7   pathsc                 H    [        5       R                  R                  U 5      $ )a  Get a representation of the environment specified by ``paths``.

This returns an Environment instance from the chosen backend based on the
given import paths. The backend must build a fresh instance representing
the state of installed distributions when this function is called.
)r   r/   
from_paths)r>   s    r(   r   r   O   s     ''22599r7   	directoryc                 H    [        5       R                  R                  U 5      $ )zGet the distribution metadata representation in the specified directory.

This returns a Distribution instance from the chosen backend based on
the given on-disk ``.dist-info`` directory.
)r   r.   from_directory)rA   s    r(   get_directory_distributionrD   Y   s     ((77	BBr7   wheelcanonical_namec                 H    [        5       R                  R                  X5      $ )zGet the representation of the specified wheel's distribution metadata.

This returns a Distribution instance from the chosen backend based on
the given wheel's ``.dist-info`` directory.

:param canonical_name: Normalized project name of the given wheel.
)r   r.   
from_wheel)rE   rF   s     r(   r   r   b   s     ((33EJJr7   metadata_contentsfilenamec                 L    [        5       R                  R                  U UU5      $ )a  Get the dist representation of the specified METADATA file contents.

This returns a Distribution instance from the chosen backend sourced from the data
in `metadata_contents`.

:param metadata_contents: Contents of a METADATA file within a dist, or one served
                          via PEP 658.
:param filename: Filename for the dist this metadata represents.
:param canonical_name: Normalized project name of the given dist.
)r   r.   from_metadata_file_contents)rI   rJ   rF   s      r(   get_metadata_distributionrM   m   s)     ((DD r7   )"r   	functoolsr   r!   typingr   r   r   r   r   pip._internal.utils.miscr   baser
   r   r   r   r   r   r   object__all__r   r)   r+   	lru_cacher   r   strr   rD   r   bytesrM   r0   r7   r(   <module>rW      s      	 
 < < . X X((H
R R.'h ' T"( ( #(2 2:8DI. :? :C# C2B CK% K KAQ K  	r7   