OwlCyberSecurity - MANAGER
Edit File: __init__.cpython-313.pyc
� ����D\Lg�����������������������t����S�r�SSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSK r SSK r SSKrSSKrSSK r SSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKJr ��SSKr�\ �SSKJ!r! ��SSKJ"r"J#r#J$r$ �Sr%SSKJ&r' �SS K(J)r)J*r* ��SSK+J,r- �\-R\������������������ �SS K/J0r0J1r1J2r2 �SSK3J4r4 �SSK3J5r5 �\6"�S 5������ �\6"�S5������ �\6"�S5������ �\6"�S5������ �\6"�S5������ �\Rn������������������S:��a��\8"�S5������eSr9Sr:Sr;Sr<Sr=Sr>Sr?Sr@SrASrBSrCSrDSrESrFSrGSrHSrI\ R�������������������"�S\KSS9 �\R�������������������"�S\R�������������������5������rN�"�S�S\O5������rP\5R�������������������R�������������������rS0�rTS�rUS�rVS�rWS�rXS�rYS�rZS �r[S!�=r\r]S"�r^/�S#Qr_�"�S$�S%\`5������ra�"�S&�S'\a5������rb�"�S(�S)\b5������rc�"�S*�S+\a5������rd�"�S,�S-\a5������re0�rfS.R�������������������"�\Rn������������������6�rhS/riSrjS0rkSrlS1rmS2�rnS3�ro/�4S4�jrpS5�rqS6�rr\R�������������������"�S75������rs\R�������������������"�S85������rt\rruS9�rvS:�rw\wrxS;�ryS<�rzS�S=�jr{S>�r|�"�S?�S@5������r}�"�SA�SB\}5������r~�"�SC�SD5������r�"�SE�SF\�5������r��"�SG�SH5������r�\�r��"�SI�SJ\85������r��"�SK�SL5������r�SM�r�SN�r�SO�r�SP�r�SQ�r�SR�r�SS�r�ST�r�S�SU�jr��"�SV�SW5������r�\n"�\�\�5������ �SX�r��"�SY�SZ\�5������r��"�S[�S\\�5������r�\�GR)������������������5������� ��"�S]�S^\�5������r�\�"�5�������r��"�S_�S`\�5������r��"�Sa�Sb\�5������r��"�Sc�Sd\�5������r�\n"�\GR4������������������\�5������ ��"�Se�Sf\�5������r��"�Sg�Sh\�5������r��"�Si�Sj\�5������r�\U"�Sk0�Sl9 �Sm�r�S�Sn�jr�S�So�jr�\�"�\GR4������������������\�5������ �S�Sp�jr�\�"�\�\�5������ �S�Sq�jr�Sr�r��"�Ss�St5������r�Su�r�Sv�r�Sw�r�Sx�r�\�"�\Sy5������(�������a��\�"�\GRT������������������\�5������ �\�"�\-GRV������������������\�5������ �\U"�Sk0�Sz9 �\U"�Sk0�S{9 �S|�r�S}�r�S~�r�S�r�S�S��jr�S��r�\�"�\Sy5������(�������a��\�"�\GRT������������������\�5������ �\�"�\GR4������������������\�5������ �\�"�\-GRV������������������\�5������ �S��r�\�"�\�\�5������ �S��r�S��r�0�4S��jr�S��r�S��r�S��r�S��r�\R�������������������"�S�5������GRt������������������r�\R�������������������"�S�\GRx������������������\GRz������������������-��5������GRt������������������r��"�S��S�5������r�S��r��"�S��S�5������r��"�S��S�\�5������r��"�S��S�\�5������r�\�\�\�S�.r�S��r�S��r��"�S��S�\5GR�������������������GR�������������������5������r��"�S��S�\5GR�������������������GR�������������������5������r�S��r�S��r�S��r�S��r�S��r�S��r�\ GR�������������������"�S�\PSS�9 �S��r�\�\�"�5�������4S��j5�������r��"�S��S�\�5������r�\�S��5�������r�g!�\�a�� �SSKr�GNf�=�f!�\�a�� �\ r�GN'f�=�f!�\�a�� �Sr%�GN#f�=�f!�\�a�� �Sr-�GNf�=�f)�a��� Package resource API -------------------- A resource is a logical file contained within a package, or a logical subdirectory thereof. The package resource API expects resource names to have their path parts separated with ``/``, *not* whatever the local path separator is. Do not use os.path operations to manipulate resource names being passed into the API. The package resource API is designed to work with normal filesystem packages, .egg files, and unpacked .egg files. It can also work in a limited way with .zip files and with custom PEP 302 loaders that support the ``get_data()`` method. This module is deprecated. Users are directed to :mod:`importlib.resources`, :mod:`importlib.metadata` and :pypi:`packaging` instead. �����N)�get_importer)�utime)�mkdir�rename�unlinkTF)�open)�isdir�split)�yield_lines�drop_comment�join_continuation)�platformdirs)� packagingz&pkg_resources.extern.packaging.versionz)pkg_resources.extern.packaging.specifiersz+pkg_resources.extern.packaging.requirementsz&pkg_resources.extern.packaging.markersz$pkg_resources.extern.packaging.utils)��������zPython 3.5 or later is requiredzbpkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html������ stacklevelz,^v?(?P<safe>(?:[0-9]+!)?[0-9]+(?:\.[0-9]+)*)c�������������������������\�rS�rSrSrSrg)� PEP440Warning����zU Used when there is an issue with a version or specifier not complying with PEP 440. ��N��__name__� __module__�__qualname__�__firstlineno__�__doc__�__static_attributes__r��������ڏ/builddir/build/BUILDROOT/alt-python313-setuptools-69.0.2-1.el8.x86_64/opt/alt/python313/lib/python3.13/site-packages/pkg_resources/__init__.pyr���r�������s������r ���r���c�����������������������[��������5�������R������������������U5������ �[��������R������������������[��������R ������������������X5������5������ �g��N)�globals�update�_state_vars�dict�fromkeys)�vartype�kws��� r!����_declare_stater+�������s)�������I���R�����t�}�}�R�1�2r ���c�������������������|�����0�n�[��������5�������n[��������R������������������5��������H��u��p#USU-������"�X���5������X'���M��� �U�$�)N�_sget_)r$���r&����items��state�g�k�vs��� r!����__getstate__r4�������s>�������E�� �A��!�!�#����X��\�?�1�4�(����$��Lr ���c������������������~�����[��������5�������nU�R������������������5��������H��u��p#US[��������U���-������"�X!U���U5������ �M ��� �U�$�)N�_sset_)r$���r.���r&���r/���s��� r!����__setstate__r7�������s<������� �A���� ��� �(�[��^� #�$�Q�!��a�0����Lr ���c������������������"�����U�R������������������5�������$�r#���)�copy��vals��� r!���� _sget_dictr<�������s�������8�8�:�r ���c������������������F�����UR������������������5������� �UR������������������U5������ �g�r#���)�clearr%�����key�obr0���s��� r!���� _sset_dictrB�������s�������H�H�J��I�I�e�r ���c������������������"�����U�R������������������5�������$�r#���)r4���r:���s��� r!����_sget_objectrD�������s����������r ���c������������������&�����UR������������������U5������ �g�r#���)r7���r?���s��� r!����_sset_objectrF�������s�������O�O�E�r ���c������������������������g�r#���r�����argss��� r!����<lambda>rJ�������s������r ���c������������������������[��������5�������n�[��������R������������������U�5������nUbI��[��������R������������������S:X��a5��SSR������������������[ ��������5�������SS�5������<�SUR������������������S5������<�3n�U�$�U�$�!�[���������a�� ��U�$�f�=�f)a-��Return this platform's maximum compatible version. distutils.util.get_platform() normally reports the minimum version of macOS that would be required to *use* extensions produced by distutils. But what we want when checking compatibility is to know the version of macOS that we are *running*. To allow usage of packages that explicitly require a newer version of macOS, we must also know the current version of the OS. If this condition occurs for any other platform with a version in its platform strings, this function should be extended accordingly. N�darwin�macosx-�.r����-r���) �get_build_platform�macosVersionString�match�sys�platform�join�_macos_vers�group� ValueError)�plat�ms��� r!����get_supported_platformr[�������sy���������D�� � ��&�A��}�����1� �%(�X�X�k�m�B�Q�.?�%@�!�'�'�!�*�M�D���K�4�K����� ���K� �s����3A.��. A<�;A<)G�require� run_script�get_provider�get_distribution�load_entry_point� get_entry_map�get_entry_info�iter_entry_points�resource_string�resource_stream�resource_filename�resource_listdir�resource_exists�resource_isdir�declare_namespace�working_set�add_activation_listener�find_distributions�set_extraction_path�cleanup_resources�get_default_cache�Environment� WorkingSet�ResourceManager�Distribution�Requirement� EntryPoint�ResolutionError�VersionConflict�DistributionNotFound�UnknownExtra�ExtractionErrorr����parse_requirements� parse_version� safe_name�safe_version�get_platform�compatible_platformsr����split_sections� safe_extra�to_filename�invalid_marker�evaluate_marker�ensure_directory�normalize_path�EGG_DIST�BINARY_DIST�SOURCE_DIST� CHECKOUT_DIST�DEVELOP_DIST�IMetadataProvider�IResourceProvider�FileMetadata�PathMetadata�EggMetadata� EmptyProvider�empty_provider�NullProvider�EggProvider�DefaultProvider�ZipProvider�register_finder�register_namespace_handler�register_loader_type�fixup_namespace_packagesr����PkgResourcesDeprecationWarning�run_main�AvailableDistributionsc�������������������������\�rS�rSrSrS�rSrg)rw���i$��z.Abstract base for dependency resolution errorsc������������������Z�����U�R�������������������R������������������[��������U�R������������������5������-���$�r#���)� __class__r����reprrI�����selfs��� r!����__repr__�ResolutionError.__repr__'��s�������~�~�&�&��d�i�i��8�8r ���r���N)r���r���r���r���r���r����r���r���r ���r!���rw���rw���$��s ������8�9r ���rw���c��������������������H�����\�rS�rSrSrSr\S�5�������r\S�5�������rS�r S�r Srg ) rx���i+��z� An already-installed version conflicts with the requested version. Should be initialized with the installed Distribution and the requested Requirement. z3{self.dist} is installed but {self.req} is requiredc������������������ �����U�R�������������������S���$��Nr���rH���r����s��� r!����dist�VersionConflict.dist5����������y�y��|�r ���c������������������ �����U�R�������������������S���$��N����rH���r����s��� r!����req�VersionConflict.req9��r����r ���c������������������J�����U�R�������������������R������������������"�S0�[��������5�������D6$��Nr����� _template�format�localsr����s��� r!����report�VersionConflict.report=����������~�~�$�$�0�v�x�0�0r ���c������������������D�����U(�������d��U�$�U�R�������������������U4-���n[��������U6�$�)z\ If required_by is non-empty, return a version of self that is a ContextualVersionConflict. )rI����ContextualVersionConflict)r�����required_byrI���s��� r!����with_context�VersionConflict.with_context@��s'������ ���K��y�y�K�>�)��(�$�/�/r ���r���N)r���r���r���r���r���r�����propertyr����r����r����r����r���r���r ���r!���rx���rx���+��s?��������F�I� �����������1�0r ���rx���c��������������������F�����\�rS�rSrSr\R������������������S-���r\S�5�������rSr g)r����iK��zy A VersionConflict that accepts a third parameter, the set of the requirements that required the installed Distribution. z by {self.required_by}c������������������ �����U�R�������������������S���$�)Nr���rH���r����s��� r!���r�����%ContextualVersionConflict.required_byS��r����r ���r���N) r���r���r���r���r���rx���r����r����r����r���r���r ���r!���r����r����K��s,������� � �)�)�,D�D�I� ����r ���r����c��������������������X�����\�rS�rSrSrSr\S�5�������r\S�5�������r\S�5�������r S�r S�rS rg )ry���iX��z&A requested distribution was not foundzSThe '{self.req}' distribution was not found and is required by {self.requirers_str}c������������������ �����U�R�������������������S���$�r����rH���r����s��� r!���r�����DistributionNotFound.req`��r����r ���c������������������ �����U�R�������������������S���$�r����rH���r����s��� r!���� requirers�DistributionNotFound.requirersd��r����r ���c������������������\�����U�R�������������������(�������d��gSR������������������U�R�������������������5������$�)Nzthe applicationz, )r����rU���r����s��� r!���� requirers_str�"DistributionNotFound.requirers_strh��s�������~�~�$��y�y����(�(r ���c������������������J�����U�R�������������������R������������������"�S0�[��������5�������D6$�r����r����r����s��� r!���r�����DistributionNotFound.reportn��r����r ���c������������������"�����U�R������������������5�������$�r#���)r����r����s��� r!����__str__�DistributionNotFound.__str__q��s�������{�{�}�r ���r���N) r���r���r���r���r���r����r����r����r����r����r����r����r���r���r ���r!���ry���ry���X��sU������0� 2��� ��������������)���)� 1�r ���ry���c�������������������������\�rS�rSrSrSrg)rz���iu��z>Distribution doesn't have an "extra feature" of the given namer���Nr���r���r ���r!���rz���rz���u��s������Hr ���rz���z{}.{}r���r�������c�����������������������U[���������U�'���g)z�Register `provider_factory` to make providers for `loader_type` `loader_type` is the type or class of a PEP 302 ``module.__loader__``, and `provider_factory` is a function that, passed a *module* object, returns an ``IResourceProvider`` for that module. N)�_provider_factories)�loader_type�provider_factorys��� r!���r����r�������s�������(8���$r ���c������������������\����[��������U�[��������5������(�������a3��[��������R������������������U�5������=(�������d�� �[ ��������[��������U�5������5������S���$��[��������R������������������U����n[��������USS5������n[��������[��������U5������"�U5������$�!�[���������a!�� �[��������U�5������ �[��������R������������������U����n�NMf�=�f)z?Return an IResourceProvider for the named module or requirementr���� __loader__N) � isinstanceru���rk����findr\����strrS����modules�KeyError� __import__�getattr� _find_adapterr����)�moduleOrReq�module�loaders��� r!���r^���r^������s��������+�{�+�+�����,�L���K�8H�0I�!�0L�L�*����[�)����V�\�4� 0�F��,�f�5�f�=�=�� ���*��;�����[�)��*�s���� B����(B+�*B+c������������������N����U�(�������d���[���������R������������������"�5�������S���nUS:X��a\��Sn[��������R������������������R ������������������U5������(�������a6��[��������[��������S5������(�������a!��[��������R������������������"�U5������nSU;���a��US���nU�R������������������UR������������������S5������5������ �U�S���$�)Nr�����z0/System/Library/CoreServices/SystemVersion.plist� readPlist�ProductVersionrN���) rT����mac_ver�os�path�exists�hasattr�plistlibr�����appendr ���)�_cache�version�plist� plist_contents��� r!���rV���rV������s���������"�"�$�Q�'���b�=�F�E��w�w�~�~�e�$�$��8�[�1�1�$,�$6�$6�u�$=�M�'�=�8�"/�0@�"A��� � �g�m�m�C�(�)��!�9�r ���c������������������*�����SSS.R������������������X�5������$�)N�ppc)�PowerPC�Power_Macintosh)�get)�machines��� r!����_macos_archr�������s��������7�;�;�G�M�Mr ���c�������������������N����SSK�Jn� �U�"�5�������n[��������R������������������S:X��ar��UR ������������������S5������(�������d\���[��������5�������n[��������R������������������"�5�������S���R������������������SS5������nS[��������US���5������[��������US ���5������[��������U5������4-��$�U$�!�[���������a�� ��U$�f�=�f) z�Return this platform's string for platform-specific distributions XXX Currently this is the same as ``distutils.util.get_platform()``, but it needs some hacks for Linux and macOS. r���)r����rL���rM�������� �_zmacosx-%d.%d-%sr����)� sysconfigr����rS���rT���� startswithrV���r�����uname�replace�intr����rX���)r����rY���r����r����s��� r!���rP���rP������s��������'��>�D� �|�|�x����� �(B�(B� �!�m�G��h�h�j��m�+�+�C��5�G�$��G�A�J���G�A�J���G�$�(���� ���K�� ��� �� ��K� �s����AB�� B$�#B$zmacosx-(\d+)\.(\d+)-(.*)zdarwin-(\d+)\.(\d+)\.(\d+)-(.*)c������������������~����U�b��Ub��X:X��a��g[���������R������������������U5������nU(�������Ga��[���������R������������������U�5������nU(�������dw��[��������R������������������U�5������nU(�������aZ��[��������UR ������������������S5������5������nUR ������������������S5������<�SUR ������������������S5������<�3nUS:X��a��US:���d��US:X��a��US:���a��gg UR ������������������S5������UR ������������������S5������:w��d$��UR ������������������S 5������UR ������������������S 5������:w��a��g [��������UR ������������������S5������5������[��������UR ������������������S5������5������:���a��g gg )z�Can code for the `provided` platform run on the `required` platform? Returns true if either platform is ``None``, or the platforms are equal. XXX Needs compatibility checks for Linux and other unixy OSes. Tr����rN���r�������z10.3����z10.4Fr���)rQ���rR����darwinVersionStringr��rW���)�provided�required�reqMac�provMac� provDarwin�dversion�macosversions��� r!���r����r�������s��������8�+�x�/C��� � %� %�h� /�F� �$�*�*�8�4�����-�2�2�8�<�J���z�/�/��2�3��*0�,�,�q�/�6�<�<��?�K����M�$��.��1�}�$��.�����=�=���v�|�|�A��.�'�-�-��2B�f�l�l�ST�o�2U����w�}�}�Q�� �3�v�|�|�A��#7�7����r ���c�����������������������[���������R������������������"�S5������R������������������nUS���nUR������������������5������� �X2S'���[ ��������U�5������S���R������������������X5������ �g)z@Locate distribution `dist_spec` and run its `script_name` scriptr����r���r���N�rS���� _getframe� f_globalsr>���r\���r]���)� dist_spec�script_name�ns�names��� r!���r]���r]������sG������ ���q� � #� #�B� �j�>�D��H�H�J��z�N��I��q��$�$�[�5r ���c������������������������[��������U�[��������5������(�������a��[��������R������������������U�5������n�[��������U�[��������5������(�������a��[ ��������U�5������n�[��������U�[ ��������5������(�������d��[ ��������SU�5������eU�$�)z@Return a current distribution object for a Requirement or stringz-Expected string, Requirement, or Distribution)r����r����ru����parser^���rt���� TypeError�r����s��� r!���r_���r_�����sV�������$����� � ��&���$��$�$��D�!���d�L�)�)��G��N�N��Kr ���c������������������6�����[��������U�5������R������������������X5������$�)zDReturn `name` entry point of `group` for `dist` or raise ImportError)r_���r`����r����rW���r��s��� r!���r`���r`�����s�������D�!�2�2�5�?�?r ���c������������������6�����[��������U�5������R������������������U5������$�)�=Return the entry point map for `group`, or the full entry map)r_���ra���)r����rW���s��� r!���ra���ra�����s�������D�!�/�/��6�6r ���c������������������6�����[��������U�5������R������������������X5������$��z<Return the EntryPoint object for `group`+`name`, or ``None``)r_���rb���r��s��� r!���rb���rb��� ��s�������D�!�0�0��=�=r ���c��������������������8�����\�rS�rSrS�rS�rS�rS�rS�rS�r Sr g ) r����i%��c�����������������������g)z;Does the package's distribution contain the named metadata?Nr����r��s��� r!����has_metadata�IMetadataProvider.has_metadata&��������r ���c�����������������������g)z'The named metadata resource as a stringNr���r$��s��� r!����get_metadata�IMetadataProvider.get_metadata)��r'��r ���c�����������������������g)z�Yield named metadata resource as list of non-blank non-comment lines Leading and trailing whitespace is stripped from each line, and lines with ``#`` as the first non-blank character are omitted.Nr���r$��s��� r!����get_metadata_lines�$IMetadataProvider.get_metadata_lines,��r'��r ���c�����������������������g)z>Is the named metadata a directory? (like ``os.path.isdir()``)Nr���r$��s��� r!����metadata_isdir� IMetadataProvider.metadata_isdir2��r'��r ���c�����������������������g)z?List of metadata names in the directory (like ``os.listdir()``)Nr���r$��s��� r!����metadata_listdir�"IMetadataProvider.metadata_listdir5��r'��r ���c�����������������������g)z=Execute the named script in the supplied namespace dictionaryNr���)r��� namespaces��� r!���r]����IMetadataProvider.run_script8��r'��r ���r���N)r���r���r���r���r%��r)��r,��r/��r2��r]���r���r���r ���r!���r����r����%��s%������J�6�D�M�N�Lr ���r����c��������������������<�����\�rS�rSrSrS�rS�rS�rS�rS�r S�r S rg )r����i<��z3An object that provides access to package resourcesc�����������������������g)z\Return a true filesystem path for `resource_name` `manager` must be an ``IResourceManager``Nr�����manager� resource_names��� r!����get_resource_filename�'IResourceProvider.get_resource_filename?��r'��r ���c�����������������������g)zaReturn a readable file-like object for `resource_name` `manager` must be an ``IResourceManager``Nr���r9��s��� r!����get_resource_stream�%IResourceProvider.get_resource_streamD��r'��r ���c�����������������������g)zeReturn a string containing the contents of `resource_name` `manager` must be an ``IResourceManager``Nr���r9��s��� r!����get_resource_string�%IResourceProvider.get_resource_stringI��r'��r ���c�����������������������g)z,Does the package contain the named resource?Nr����r;��s��� r!����has_resource�IResourceProvider.has_resourceN��r'��r ���c�����������������������g)z>Is the named resource a directory? (like ``os.path.isdir()``)Nr���rE��s��� r!���ri���� IResourceProvider.resource_isdirQ��r'��r ���c�����������������������g)z?List of resource names in the directory (like ``os.listdir()``)Nr���rE��s��� r!���rg����"IResourceProvider.resource_listdirT��r'��r ���r���N)r���r���r���r���r���r<��r?��rB��rF��ri���rg���r���r���r ���r!���r����r����<��s%������=�5� 5� 5� ;�M�Nr ���r����c�������������������������\�rS�rSrSrSS�jr\S�5�������r\S�5�������rS�r S�r S �rSS �jrS�r S�rSS �jr����SS�jrS�rSS�jrS�rSS�jrS�rS�rS�rSrg)rr���iX��zDA collection of active distributions on sys.path (or a similar list)Nc�����������������������/�U�l���������0�U�l��������0�U�l��������0�U�l��������/�U�l��������Uc��[ ��������R������������������nU�H��nU�R������������������U5������ �M��� �g)z?Create working set from list of path entries (default=sys.path)N)�entries� entry_keys�by_key�normalized_to_canonical_keys� callbacksrS���r����� add_entry)r����rN���entrys��� r!����__init__�WorkingSet.__init__[��sJ���������������,.��)�����?��h�h�G��E��N�N�5�!��r ���c�����������������������U�"�5�������n�SSK�Jn ��UR������������������U5������ �U$�!�[���������a�� �Us�$�f�=�f!�[���������a�� �U�R������������������U5������s�$�f�=�f)z! Prepare the master working set. r���)�__requires__)�__main__rX���ImportErrorr\���rx����_build_from_requirements)�cls�wsrX��s��� r!���� _build_master�WorkingSet._build_masteri��sb������ ��U�� �-� >��J�J�|�$��� ����� ��I� ����� >��/�/��=�=� >�s����#��5��2�2�A�Ac������������������@����U�"�/�5������n[��������U5������nUR������������������U[��������5�������5������nU�H��nUR������������������U5������ �M��� �[��������R �������������������H%��nXbR������������������;��d��M��UR������������������U5������ �M'��� �UR������������������[��������R ������������������SS&�U$�)zA Build a working set from a requirement spec. Rewrites sys.path. N)r|����resolverq����addrS���r����rN��rS��)r\���req_specr]���reqs�distsr����rT��s��� r!���r[���#WorkingSet._build_from_requirements}��s|���������W��!�(�+��� � �4���/���D��F�F�4�L�����X�X�E��J�J�&����U�#��� ��j�j������� r ���c�����������������������U�R�������������������R������������������U/�5������ �U�R������������������R������������������U5������ �[ ��������US5�������H��nU�R������������������X!S5������ �M��� �g)a���Add a path item to ``.entries``, finding any distributions on it ``find_distributions(entry, True)`` is used to find distributions corresponding to the path entry, and they are added. `entry` is always appended to ``.entries``, even if it is already present. (This is because ``sys.path`` can contain the same value more than once, and the ``.entries`` of the ``sys.path`` WorkingSet should always equal ``sys.path``.) TFN)rO��� setdefaultrN��r����rm���rb��)r����rT��r����s��� r!���rS���WorkingSet.add_entry���sI������� ���"�"�5�"�-������E�"�&�u�d�3�D��H�H�T�%�(��4r ���c������������������R�����U�R�������������������R������������������UR������������������5������U:H��$�)z9True if `dist` is the active distribution for its project)rP��r����r@����r����r����s��� r!����__contains__�WorkingSet.__contains__���s�������{�{���t�x�x�(�D�0�0r ���c����������������������U�R�������������������R������������������UR������������������5������nUcI��U�R������������������R������������������UR������������������5������nUb!��X1l��������U�R�������������������R������������������U5������nUb��X!;��a��[ ��������X!5������eU$�)a���Find a distribution matching requirement `req` If there is an active distribution for the requested project, this returns it as long as it meets the version requirement specified by `req`. But, if there is an active distribution for the project and it does *not* meet the `req` requirement, ``VersionConflict`` is raised. If there is no active distribution for the requested project, ``None`` is returned. )rP��r����r@���rQ��rx���)r����r����r����� canonical_keys��� r!���r�����WorkingSet.find���sp��������{�{���s�w�w�'���<� �=�=�A�A�#�'�'�J�M��(�'���{�{���}�5������!�$�,�,��r ���c������������������ ���^^��UU4S�jU��5�������$�)z�Yield entry point objects from `group` matching `name` If `name` is None, yields all entry points in `group` from all distributions in the working set, otherwise only ones matching both `group` and `name` are yielded (in distribution order). c��������������3�������>#� ���U�HB��nUR������������������T5������R������������������5��������H��nTb��TUR������������������:X��d��M��Uv�� �M��� �MD��� �g�7fr#���)ra����valuesr��)�.0r����rT��rW���r��s��� ��r!���� <genexpr>�/WorkingSet.iter_entry_points.<locals>.<genexpr>���sK���������� ����+�+�E�2�9�9�;���|�t�u�z�z�1�� �E�;�� ��s ����8A� Ar����r����rW���r��s��� ``r!���rc����WorkingSet.iter_entry_points���s������� �� �� r ���c�����������������������[���������R������������������"�S5������R������������������nUS���nUR������������������5������� �XCS'���U�R ������������������U5������S���R������������������X#5������ �g)z?Locate distribution for `requires` and run `script_name` scriptr����r���r���Nr��)r�����requiresr��r��r��s��� r!���r]����WorkingSet.run_script���sK������ �]�]�1� � '� '���*�~�� ��� ��:�����X��q�!�,�,�[�=r ���c��������������#�������#� ���0�nU�R��������������������HF��nX R������������������;��a��M��U�R������������������U����H��nX1;��d��M ��SX'���U�R������������������U���v�� �M!��� �MH��� �g7f)z�Yield distributions for non-duplicate projects in the working set The yield order is the order in which the items' path entries were added to the working set. r����N)rN��rO��rP��)r�����seen�itemr@���s��� r!����__iter__�WorkingSet.__iter__���sU������������L�L�D��?�?�*�����t�,���?� !�D�I��+�+�c�*�*��-��!�s ����8A�Ac����������������������U(�������a��UR������������������U�R������������������X$S9 �Uc��UR������������������nU�R������������������R ������������������U/�5������nU�R������������������R ������������������UR������������������/�5������nU(�������d��UR ������������������U�R������������������;���a��gXR������������������UR ������������������'���[��������R������������������R������������������UR ������������������5������nUR ������������������U�R������������������U'���UR ������������������U;��a��UR������������������UR ������������������5������ �UR ������������������U;��a��UR������������������UR ������������������5������ �U�R������������������U5������ �g)a���Add `dist` to working set, associated with `entry` If `entry` is unspecified, it defaults to the ``.location`` of `dist`. On exit from this routine, `entry` is added to the end of the working set's ``.entries`` (if it wasn't already present). `dist` is only added to the working set if it's for a project that doesn't already have a distribution in the set, unless `replace=True`. If it's added, any callbacks registered with the ``subscribe()`` method will be called. �r��N) � insert_onrN���locationrO��rh��r@���rP��r����utils�canonicalize_namerQ��r����� _added_new)r����r����rT���insertr���keys�keys2�normalized_names��� r!���rb���WorkingSet.add���s����������N�N�4�<�<��N�@��=��M�M�E����)�)�%��4�����*�*�4�=�=�"�=���4�8�8�t�{�{�2�� $���D�H�H��#�/�/�;�;�D�H�H�E��=A�X�X��)�)�/�:��8�8�4���K�K����!��8�8�5� ��L�L����"�����r ���c����������� �����������[��������U5������SSS2���n0�n0�n/�n[��������5�������n [��������R������������������"�[��������5������n U(�������a���UR������������������S5������nX�;���a��M��U R ������������������X�5������(�������d��M7��U�R������������������X�XBX:U5������nUR������������������UR������������������5������SSS2���n UR������������������U 5������ �U �H.��nX����R������������������UR������������������5������ �UR������������������X�'���M0��� �SXk'���U(�������a��M���U$�)a6��List all distributions needed to (recursively) meet `requirements` `requirements` must be a sequence of ``Requirement`` objects. `env`, if supplied, should be an ``Environment`` instance. If not supplied, it defaults to all distributions available within any entry or distribution in the working set. `installer`, if supplied, will be invoked with each requirement that cannot be met by an already-installed distribution; it should return a ``Distribution`` or ``None``. Unless `replace_conflicting=True`, raises a VersionConflict exception if any requirements are found on the path that have the correct name but the wrong version. Otherwise, if an `installer` is supplied it will be invoked to obtain the correct version of the requirement and activate it. `extras` is a list of the extras to be used with these requirements. This is important because extra requirements may look like `my_req; extra = "my_extra"`, which would otherwise be interpreted as a purely optional requirement. Instead, we want to be able to assert that these requirements are truly required. Nr����r���T) �list� _ReqExtras�collections�defaultdict�set�pop�markers_pass� _resolve_distrz���extras�extendrb���project_name)r�����requirements�env� installer�replace_conflictingr���� processed�best�to_activate� req_extrasr����r����r�����new_requirements�new_requirements��� r!���ra���WorkingSet.resolve��s�������B��L�)�$�B�$�/��� ������\� ��"�-�-�c�2����"�"�1�%�C�����*�*�3�7�7���%�%��.�Y�[��D� � $�}�}�S�Z�Z�8��2��>����� 0�1��$4���,�0�0��1A�1A�B�.1�j�j� �+��$4��"�I�N�/��l�4��r ���c����������������������UR������������������UR������������������5������nUc���U�R������������������R������������������UR������������������5������nUb��X�;��ay��U(�������ar��U�n Uc/��Uc��[��������U�R������������������5������nO[��������/�5������n[��������/�5������n UR ������������������XXSS9=o�UR������������������'���Uc��UR������������������US�5������n [��������X5������eUR������������������U5������ �X�;��a��Xa���n[��������X�5������R������������������U5������eU$�)N)r���)r����r@���rP��rq���rN��rr���� best_matchry���r����rx���r����)r����r����r���r���r���r���r����r���r����r]��r����� dependent_reqs��� r!���r����WorkingSet._resolve_distO��s���������x�x���� ���<��;�;�?�?�3�7�7�+�D��|���4G����;��|�)�$�,�,�7�� �*�"�o��'��^��'*�~�~��Y��(6��(����C�G�G�}���<� +����T� :�I�.�s�>�>����t�$��?�'�,�M�!�$�,�9�9�-�H�H��r ���c������������������j����[��������U5������nUR������������������5������� �0�n0�nUc��[��������U�R������������������5������nX�- ��nOX!-���nU�R ������������������/�5������n [��������[��������U R������������������U�5������5������ �U�Hv��n X����Hk��nUR������������������5�������/n�U R������������������X�U5������n [��������[��������U R������������������U 5������5������ �UR������������������[��������R������������������U 5������5������ � �Mt��� �Mx��� �[��������U5������nUR������������������5������� �Xv4$�!�[���������a��nX�U'���U(�������a���SnAM����SnA �M���SnAff�=�f)a���Find all activatable distributions in `plugin_env` Example usage:: distributions, errors = working_set.find_plugins( Environment(plugin_dirlist) ) # add plugins+libs to sys.path map(working_set.add, distributions) # display errors print('Could not load', errors) The `plugin_env` should be an ``Environment`` instance that contains only distributions that are in the project's "plugin directory" or directories. The `full_env`, if supplied, should be an ``Environment`` contains all currently-available distributions. If `full_env` is not supplied, one is created automatically from the ``WorkingSet`` this method is called on, which will typically mean that every directory on ``sys.path`` will be scanned for distributions. `installer` is a standard installer callback as used by the ``resolve()`` method. The `fallback` flag indicates whether we should attempt to resolve older versions of a plugin if the newest version cannot be resolved. This method returns a 2-tuple: (`distributions`, `error_info`), where `distributions` is a list of the distributions found in `plugin_env` that were loadable, along with any other distributions that are needed to resolve their dependencies. `error_info` is a dictionary mapping unloadable plugin distributions to an exception instance describing the error that occurred. Usually this will be a ``DistributionNotFound`` or ``VersionConflict`` instance. N) r����sortrq���rN��r�����maprb���as_requirementra��r%���r'���r(���rw���)r����� plugin_env�full_envr����fallback�plugin_projects� error_info� distributionsr���� shadow_setr���r����r����� resolveesr3���s��� r!����find_plugins�WorkingSet.find_pluginsn��s �����F��z�*������� �� ����d�l�l�+�C���C��'�C��^�^�B�'� ��S����� &�'�+�L�"�0���*�*�,�-��� *� 2� 2�3�Y� G�I����Z�^�^�Y�7�8�!�(�(����y�)A�B���+�1��,�0��]�+� ������(�(��)�'���'(�t�$�� �����s����D� D2�D-�-D2c������������������n�����U�R������������������[��������U5������5������nU�H��nU�R������������������U5������ �M��� �U$�)a���Ensure that distributions matching `requirements` are activated `requirements` must be a string or a (possibly-nested) sequence thereof, specifying the distributions and versions required. The return value is a sequence of the distributions that needed to be activated to fulfill the requirements; all relevant distributions are included, even if they were already activated in this working set. )ra��r|���rb��)r����r����neededr����s��� r!���r\����WorkingSet.require���s4����������0��>�?���D��H�H�T�N����� r ���c�����������������������XR�������������������;���a��gU�R�������������������R������������������U5������ �U(�������d��gU��H��nU"�U5������ �M ��� �g)zkInvoke `callback` for all distributions If `existing=True` (default), call on all existing ones, as well. N)rR��r����)r�����callback�existingr����s��� r!���� subscribe�WorkingSet.subscribe���s:��������~�~�%�������h�'����D��T�N��r ���c������������������:�����U�R��������������������H��nU"�U5������ �M ��� �g�r#���)rR��)r����r����r���s��� r!���r����WorkingSet._added_new���s���������H��T�N��'r ���c������������������������U�R�������������������S�S��U�R������������������R������������������5�������U�R������������������R������������������5�������U�R������������������R������������������5�������U�R ������������������S�S��4$�r#���)rN��rO��r9���rP��rQ��rR��r����s��� r!���r4����WorkingSet.__getstate__���sU�������L�L��O��O�O� � �"��K�K�����-�-�2�2�4��N�N�1�� �� r ���c�����������������������Uu��p#pEnUS�S��U�l���������UR������������������5�������U�l��������UR������������������5�������U�l��������UR������������������5�������U�l��������US�S��U�l��������g�r#���)rN��r9���rO��rP��rQ��rR��)r����� e_k_b_n_crN��r���rP��rQ��rR��s��� r!���r7����WorkingSet.__setstate__���sO������IR�F��v�Y��q�z����)�)�+����k�k�m���,H�,M�,M�,O��)�"�1���r ���)rP��rR��rN��rO��rQ��r#���)NTF)NNFN)NNT�T)r���r���r���r���r���rU���classmethodr^��r[��rS��rl��r����rc���r]���r��rb��ra��r���r���r\���r���r���r4���r7���r���r���r ���r!���rr���rr���X��s�������N�"�������&������* )�1��0 �>�+�"�F� ��!�� H�T�>O)�b� �� �&r ���rr���c��������������������"�����\�rS�rSrSrSS�jrSrg)r���i���z6 Map each requirement to the extras that demanded it. Nc���������������������^��U4S�jU�R������������������TS5������U=(�������d�� �S-����5�������nTR������������������(�������+�=(�������d�� �[��������U5������$�)z� Evaluate markers for req against each extra that demanded it. Return False if the req has a marker and fails evaluation. Otherwise, return True. c��������������3����\���>#� ���U�H"��nTR�������������������R������������������S�U05������v�� �M$��� �g7f)�extraN��marker�evaluate)rt��r���r����s��� �r!���ru���*_ReqExtras.markers_pass.<locals>.<genexpr>���s/���������� �@��� �J�J����%� 0�1�1�@�s����),r���r#���)r����r����any)r����r����r����extra_evalss��� ` r!���r����_ReqExtras.markers_pass���s?������� ����#�r�*�f�.?��@� ����:�:�~�1��[�!1�1r ���r���r#���)r���r���r���r���r���r���r���r���r ���r!���r���r������s�������2r ���r���c��������������������z�����\�rS�rSrSrS\"�5�������\4S�jrS�rS�r SS�jr S�rS �rSS �jr SS�jrS�rS �rS�rSrg)rq���i��z5Searchable snapshot of distributions on a search pathNc������������������L�����0�U�l���������X l��������X0l��������U�R������������������U5������ �g)a���Snapshot distributions available on a search path Any distributions found on `search_path` are added to the environment. `search_path` should be a sequence of ``sys.path`` items. If not supplied, ``sys.path`` is used. `platform` is an optional string specifying the name of the platform that platform-specific distributions must be compatible with. If unspecified, it defaults to the current platform. `python` is an optional string naming the desired version of Python (e.g. ``'3.6'``); it defaults to the current version. You may explicitly set `platform` (and/or `python`) to ``None`` if you wish to map *all* distributions, not just those compatible with the running platform or Python version. N)�_distmaprT����python�scan)r�����search_pathrT���r���s��� r!���rU���Environment.__init__ ��s!������&��� � � ���� � �+�r ���c������������������������U�R�������������������SL�=(�������d.�� �UR������������������SL�=(�������d�� �UR������������������U�R�������������������:H��nU=(�������a �� �[��������UR������������������U�R������������������5������$�)z�Is distribution `dist` acceptable for this environment? The distribution must match the platform and python version requirements specified when this environment was created, or False is returned. N)r���� py_versionr����rT���)r����r����� py_compats��� r!����can_add�Environment.can_add"��sX������� �K�K�4��� .����$�&� .����$�+�+�-�� � ��O�1�$�-�-����O�Or ���c������������������T�����U�R�������������������UR���������������������R������������������U5������ �g)z"Remove `dist` from the environmentN)r���r@����removerk��s��� r!���r����Environment.remove0��s������� � �d�h�h��&�&�t�,r ���c�����������������������Uc��[���������R������������������nU�H&��n[��������U5�������H��nU�R������������������U5������ �M��� �M(��� �g)a<��Scan `search_path` for distributions usable in this environment Any distributions found are added to the environment. `search_path` should be a sequence of ``sys.path`` items. If not supplied, ``sys.path`` is used. Only distributions conforming to the platform/python version defined at initialization are added. N)rS���r����rm���rb��)r����r���r~��r����s��� r!���r����Environment.scan4��s7����������(�(�K��D�*�4�0��������1�� r ���c������������������Z�����UR������������������5�������nU�R������������������R������������������U/�5������$�)z�Return a newest-to-oldest list of distributions for `project_name` Uses case-insensitive `project_name` comparison, assuming all the project's distributions use their project's name converted to all lowercase as their key. )�lowerr���r����)r����r����distribution_keys��� r!����__getitem__�Environment.__getitem__C��s+�������(�-�-�/���}�}� � �!1�2�6�6r ���c������������������ ����U�R������������������U5������(�������ax��UR������������������5�������(�������ab��U�R������������������R������������������UR������������������/�5������nX;��a6��UR������������������U5������ �UR ������������������[��������R������������������"�S5������SS9 �gggg)zCAdd `dist` if we ``can_add()`` it and it has not already been added�hashcmpT)r@����reverseN) r����has_versionr���rh��r@���r����r����operator� attrgetter)r����r����re��s��� r!���rb���Environment.addN��ss�������<�<����$�"2�"2�"4�"4��M�M�,�,�T�X�X�r�:�E�� ����T�"�� � �x�2�2�9�=�t� �L��!��#5�r ���c�������������������������UR������������������U5������nUb��U$�XR����������������������H��nXQ;���d��M ��Us �$�� �U�R������������������X5������$�!�[���������a �� �U(�������d��e�Sn�NJf�=�f)ah��Find distribution best matching `req` and usable on `working_set` This calls the ``find(req)`` method of the `working_set` to see if a suitable distribution is already active. (This may raise ``VersionConflict`` if an unsuitable version of the project is already active in the specified `working_set`.) If a suitable distribution isn't active, this method returns the newest distribution in the environment that meets the ``Requirement`` in `req`. If no suitable distribution is found, and `installer` is supplied, then the result of calling the environment's ``obtain(req, installer)`` method will be returned. N)r����rx���r@����obtain)r����r����rk���r���r���r����s��� r!���r����Environment.best_matchV��sk������ ��#�#�C�(�D� ����K����M�D��{����"���{�{�3�*�*����� �&���D� �s����A��A�Ac�����������������������Ub��U"�U5������$�g)a���Obtain a distribution matching `requirement` (e.g. via download) Obtain a distro that matches requirement (e.g. via download). In the base ``Environment`` class, this routine just returns ``installer(requirement)``, unless `installer` is None, in which case None is returned instead. This method is a hook that allows subclasses to attempt other ways of obtaining a distribution before falling back to the `installer` argument.Nr���)r�����requirementr���s��� r!���r����Environment.obtainq��s�������� ��[�)�)��!r ���c��������������#����l���#� ���U�R�������������������R������������������5��������H��nX���(�������d��M��Uv�� �M��� �g7f)z=Yield the unique project names of the available distributionsN)r���r����r����r@���s��� r!���r���Environment.__iter__}��s(���������=�=�%�%�'�C��y�y�� ��(�s����%4� 4c������������������������[��������U[��������5������(�������a��U�R������������������U5������ �U�$�[��������U[��������5������(�������a'��U�H��nX����H��nU�R������������������U5������ �M��� �M!��� �U�$�[ ��������SU<�S35������e)z2In-place addition of a distribution or environmentz Can't add z to environment)r����rt���rb��rq���r��)r�����other�projectr����s��� r!����__iadd__�Environment.__iadd__���sh�������e�\�*�*��H�H�U�O���� ���{� +� +� ��!�N�D��H�H�T�N��+��!� �����U�D�E�Er ���c������������������D�����U�R������������������/�SSS9nX4�H��nX#- ��nM ��� �U$�)z4Add an environment or distribution to an environmentN)rT���r����r����)r����r����newr���s��� r!����__add__�Environment.__add__���s.�������n�n�R�$�t�n�<���;�C��J�C���� r ���)r���rT���r���r#����NF)r���r���r���r���r���r[����PY_MAJORrU��r���r���r���r���rb��r���r���r��r���r���r���r���r ���r!���rq���rq�����sK������?���)?�)A�(��0P�-� � 7�M�+�6 *�� �r ���rq���c�������������������������\�rS�rSrSrSrg)r{���i���a4��An error occurred extracting a resource The following attributes are available from instances of this exception: manager The resource manager that raised this exception cache_path The base directory for resource extraction original_error The exception instance that caused extraction to fail r���Nr���r���r ���r!���r{���r{������s������r ���r{���c��������������������|�����\�rS�rSrSrSrS�rS�rS�rS�r S�r S �rS �rS�r SS�jr\S �5�������rS�rS�rSS�jrSrg)rs���i���z'Manage resource extraction and packagesNc�����������������������0�U�l���������g�r#���)�cached_filesr����s��� r!���rU���ResourceManager.__init__���s ��������r ���c������������������6�����[��������U5������R������������������U5������$�)zDoes the named resource exist?)r^���rF���r�����package_or_requirementr;��s��� r!���rh����ResourceManager.resource_exists���s�������2�3�@�@��O�Or ���c������������������6�����[��������U5������R������������������U5������$�)z,Is the named resource an existing directory?)r^���ri���r ��s��� r!���ri����ResourceManager.resource_isdir���s�������2�3�B�B�=�Q�Qr ���c������������������6�����[��������U5������R������������������X5������$�)z4Return a true filesystem path for specified resource)r^���r<��r ��s��� r!���rf����!ResourceManager.resource_filename���s�������2�3�I�I�� �� r ���c������������������6�����[��������U5������R������������������X5������$�)z9Return a readable file-like object for specified resource)r^���r?��r ��s��� r!���re����ResourceManager.resource_stream�����������2�3�G�G�� �� r ���c������������������6�����[��������U5������R������������������X5������$�)z%Return specified resource as a string)r^���rB��r ��s��� r!���rd����ResourceManager.resource_string���r��r ���c������������������6�����[��������U5������R������������������U5������$�)z1List the contents of the named resource directory)r^���rg���r ��s��� r!���rg���� ResourceManager.resource_listdir���s�������2�3�D�D�]�S�Sr ���c������������������"����[���������R������������������"�5�������S���nU�R������������������=(�������d �� �[��������5�������n[��������R ������������������"�S5������R ������������������5�������n[��������UR������������������"�S0�[��������5�������D65������nXl ��������X$l��������Xl��������Ue)z5Give an error message for problems extracting file(s)r����a�� Can't extract file(s) to egg cache The following error occurred while trying to extract file(s) to the Python egg cache: {old_exc} The Python egg cache directory is currently set to: {cache_path} Perhaps your account does not have write access to this directory? You can change the cache directory by setting the PYTHON_EGG_CACHE environment variable to point to an accessible directory. r���) rS����exc_info�extraction_pathrp����textwrap�dedent�lstripr{���r����r����r:��� cache_path�original_error)r�����old_excr���tmpl�errs��� r!����extraction_error� ResourceManager.extraction_error���sv��������,�,�.��#���)�)�@�->�-@� ���� � �"��&�(�#� �$��d�k�k�5�F�H�5�6����#��$��� r ���c������������������ ����U�R�������������������=(�������d �� �[��������5�������n[��������R������������������R������������������"�X1S-���/UQ76�n�[��������U5������ �U�R������������������U5������ �SU�R������������������U'���U$�!�[���������a�� �U�R������������������5������� ��N>f�=�f)af��Return absolute location in cache for `archive_name` and `names` The parent directory of the resulting path will be created if it does not already exist. `archive_name` should be the base filename of the enclosing egg (which may not be the name of the enclosing zipfile!), including its ".egg" extension. `names`, if provided, should be a sequence of path name parts "under" the egg's extraction location. This method should only be called by resource providers that need to obtain an extraction location, and only for names they intend to extract, as it tracks the generated names for possible cleanup later. z-tmpr����) r��rp���r����r����rU����_bypass_ensure_directory� Exceptionr#���_warn_unsafe_extraction_pathr��)r�����archive_name�names�extract_path�target_paths��� r!����get_cache_path�ResourceManager.get_cache_path���s���������+�+�B�/@�/B���g�g�l�l�<��1F�O��O�� $�$�[�1�� �)�)�,�7�)*����+�&���� ��� $��!�!�#� $�s����A0��0B �B c����������������������[���������R������������������S:X��a(��U�R������������������[���������R������������������S���5������(�������d��g[���������R������������������"�U�5������R ������������������nU[��������R������������������-��(�������d��U[��������R������������������-��(�������a6��SR������������������"�S0�[��������5�������D6n[��������R������������������"�U[��������5������ �gg)a�� If the default extraction path is overridden and set to an insecure location, such as /tmp, it opens up an opportunity for an attacker to replace an extracted file with an unauthorized payload. Warn the user if a known insecure location is used. See Distribute #375 for more details. �nt�windirNz�Extraction path is writable by group/others and vulnerable to attack when used with get_resource_filename ({path}). Consider a more secure location (set with .set_extraction_path or the PYTHON_EGG_CACHE environment variable).r���) r����r��r���environ�stat�st_mode�S_IWOTH�S_IWGRPr����r�����warnings�warn�UserWarning)r�����mode�msgs��� r!���r(���,ResourceManager._warn_unsafe_extraction_path��s���������7�7�d�?�4�?�?�2�:�:�h�3G�#H�#H�� ��w�w�t�}�$�$���$�,�,��$����"5�:���f���!���x�!�C�� �M�M�#�{�+��#6r ���c�����������������������[���������R������������������S:X��a=��[���������R������������������"�U5������R������������������S-��S-��n[���������R������������������"�X5������ �gg)a���Perform any platform-specific postprocessing of `tempname` This is where Mac header rewrites should be done; other platforms don't have anything special they should do. Resource providers should call this method ONLY after successfully extracting a compressed resource. They must NOT call it on resources that are already in the filesystem. `tempname` is the current (temporary) name of the file, and `filename` is the name it will be renamed to by the caller after this routine returns. �posixim��i���N)r����r��r3��r4���chmod)r�����tempname�filenamer:��s��� r!����postprocess�ResourceManager.postprocess#��s?��������7�7�g���W�W�X�&�.�.�%�7�6�A�D��H�H�X�$��r ���c������������������H�����U�R�������������������(�������a��[��������S5������eXl��������g)ab��Set the base path where resources will be extracted to, if needed. If you do not call this routine before any extractions take place, the path defaults to the return value of ``get_default_cache()``. (Which is based on the ``PYTHON_EGG_CACHE`` environment variable, with various platform-specific fallbacks. See that routine's documentation for more details.) Resources are extracted to subdirectories of this path based upon information given by the ``IResourceProvider``. You may set this to a temporary directory, but then you must call ``cleanup_resources()`` to delete the extracted files when done. There is no guarantee that ``cleanup_resources()`` will be able to remove all extracted files. (Note: you may not change the extraction path for a given resource manager once resources have been extracted, unless you first call ``cleanup_resources()``.) z5Can't change extraction path, files already extractedN)r��rX���r���r����r����s��� r!���rn����#ResourceManager.set_extraction_path7��s������&�����T�U�U�#�r ���c�����������������������g)a��� Delete all extracted resource files and directories, returning a list of the file and directory names that could not be successfully removed. This function does not have any concurrency protection, so it should generally only be called when the extraction path is a temporary directory exclusive to a single process. This method is not automatically called; you must call it explicitly or register it as an ``atexit`` function if you wish to ensure cleanup of a temporary directory used for extractions. Nr���)r�����forces��� r!���ro����!ResourceManager.cleanup_resourcesO��r'��r ���)r��r���r����F)r���r���r���r���r���r��rU��rh���ri���rf���re���rd���rg���r#��r-���staticmethodr(��rB��rn���ro���r���r���r ���r!���rs���rs������s]������1��O��P�R� � � �T��<�2��,���,�4%�($�0 r ���rs���c�������������������v�����[���������R������������������R������������������S5������=(�������d�� �[��������R������������������"�SS9$�)z| Return the ``PYTHON_EGG_CACHE`` environment variable or a platform-relevant user cache dir for an app named "Python-Eggs". �PYTHON_EGG_CACHEzPython-Eggs)�appname)r����r2��r����r����user_cache_dirr���r ���r!���rp���rp���]��s/��������:�:�>�>�,�-����1L�1L��2��r ���c������������������2�����[���������R������������������"�SSU�5������$�)z�Convert an arbitrary string to a standard distribution name Any runs of non-alphanumeric/. characters are replaced with a single '-'. �[^A-Za-z0-9.]+rO���)�re�subr$��s��� r!���r~���r~���h��s������ ��6�6�"�C��.�.r ���c�������������������������[��������[��������R������������������R������������������U�5������5������$�!�[��������R������������������R�������������������a-�� �U�R������������������SS5������n�[��������R������������������"�SSU�5������s�$�f�=�f)z: Convert an arbitrary string to a standard version string r����rN���rR��rO���)r����r���r�����Version�InvalidVersionr��rS��rT��)r����s��� r!���r���r���p��sb������6��9�$�$�,�,�W�5�6�6�����+�+��6��/�/�#�s�+���v�v�&��W�5�5�6�s����'*��AA5�4A5c������������������������U�R������������������SS5������n�[��������R������������������U�5������nU(�������a��US���nU�[��������U5������S�nOSnU�nS[ ��������U5�������3R������������������S5������nU�SU�3$�)a���Fallback when ``safe_version`` is not safe enough >>> parse_version(_forgiving_version('0.23ubuntu1')) <Version('0.23.dev0+sanitized.ubuntu1')> >>> parse_version(_forgiving_version('0.23-')) <Version('0.23.dev0+sanitized')> >>> parse_version(_forgiving_version('0.-_')) <Version('0.dev0+sanitized')> >>> parse_version(_forgiving_version('42.+?1')) <Version('42.dev0+sanitized.1')> >>> parse_version(_forgiving_version('hello world')) <Version('0.dev0+sanitized.hello.world')> r����rN����safeN�0z sanitized.z.dev0+)r���_PEP440_FALLBACK�search�len� _safe_segment�strip)r����rR���rY���rest�locals��� r!����_forgiving_versionrb��|��sx��������o�o�c�3�'�G��#�#�G�,�E���V�}���s�4�y�{�#��������t�,�-�.�4�4�S�9�E��V�6�%��!�!r ���c�����������������������[���������R������������������"�SSU�5������n�[���������R������������������"�SSU�5������n�[���������R������������������"�SSU�5������R������������������S5������$�)z/Convert an arbitrary string into a safe segmentrR��rO���z-[^A-Za-z0-9]+z\.[^A-Za-z0-9]+rN���z.-)rS��rT��r_��)�segments��� r!���r^��r^�����sG�������f�f�%�s�G�4�G��f�f�%�s�G�4�G� �6�6�$�c�7�3�9�9�$�?�?r ���c������������������N�����[���������R������������������"�SSU�5������R������������������5�������$�)z�Convert an arbitrary string to a standard 'extra' name Any runs of non-alphanumeric characters are replaced with a single '_', and the result is always lowercased. z[^A-Za-z0-9.-]+r����)rS��rT��r���)r���s��� r!���r����r�������s!��������6�6�#�S�%�0�6�6�8�8r ���c������������������&�����U�R������������������SS5������$�)ztConvert a project or version name to its filename-escaped form Any '-' characters are currently replaced with '_'. rO���r����r���r$��s��� r!���r����r�������s������ ��<�<��S�!�!r ���c������������������j������[��������U�5������ �g!�[���������a��nSUl��������SUl��������Us�SnA$�SnAff�=�f)zc Validate text as a PEP 508 environment marker; return an exception if invalid or False otherwise. NF)r�����SyntaxErrorrA���lineno)�text�es��� r!���r����r�������s9������ ���� ��� ������ ��������s������ 2�-�2�2c�������������������������[���������R������������������R������������������U�5������nUR������������������5�������$�!�[���������R������������������R�������������������a��n[��������U5������UeSnAff�=�f)z� Evaluate a PEP 508 environment marker. Return a boolean indicating the marker result in this environment. Raise SyntaxError if marker is invalid. This implementation uses the 'pyparsing' module. N)r����markers�Markerr���� InvalidMarkerrh��)rj��r���r���rk��s��� r!���r����r�������sR������$��"�"�)�)�$�/����� � �����*�*��$��!�n�!�#��$�s����.1��A �A�A c�������������������������\�rS�rSrSrSrSrSrS�rS�r S�r S�rS�rS �r S �rS�rS�rS �rS�rS�rS�rS�rS�rS�rS�rS�r\S�5�������rS�rSrg)r����i���zETry to implement resources and metadata for arbitrary PEP 302 loadersNc�����������������������[��������USS�5������U�l��������[��������R������������������R ������������������[��������USS5������5������U�l��������g�)Nr�����__file__r����)r����r����r����r�����dirname�module_path)r����r����s��� r!���rU���NullProvider.__init__���s0�������f�l�D�9����7�7�?�?�7�6�:�r�+J�K��r ���c������������������:�����U�R������������������U�R������������������U5������$�r#���)�_fnrt���r����r:��r;��s��� r!���r<���"NullProvider.get_resource_filename���s�������x�x��(�(�-�8�8r ���c������������������L�����[���������R������������������"�U�R������������������X5������5������$�r#���)�io�BytesIOrB��rx��s��� r!���r?��� NullProvider.get_resource_stream���s�������z�z�$�2�2�7�J�K�Kr ���c������������������X�����U�R������������������U�R������������������U�R������������������U5������5������$�r#���)�_getrw��rt��rx��s��� r!���rB��� NullProvider.get_resource_string����"�������y�y����$�"2�"2�M�B�C�Cr ���c������������������X�����U�R������������������U�R������������������U�R������������������U5������5������$�r#���)�_hasrw��rt���r����r;��s��� r!���rF���NullProvider.has_resource���r���r ���c������������������:�����U�R������������������U�R������������������U5������$�r#���)rw���egg_info�r����r��s��� r!����_get_metadata_path�NullProvider._get_metadata_path���s�������x�x�� � �t�,�,r ���c�����������������������U�R�������������������(�������d��U�R�������������������$�U�R������������������U5������nU�R������������������U5������$�r#���)r���r���r����r����r��r����s��� r!���r%���NullProvider.has_metadata���s1�������}�}��=�=� ��&�&�t�,���y�y���r ���c�����������������������U�R�������������������(�������d��gU�R������������������U5������nU�R������������������U5������n�UR������������������S5������$�!�[���������a*��nU=R ������������������SR ������������������X5������- ��sl��������e�S�nAff�=�f)Nr�����utf-8z in {} file at path: {})r���r���r���decode�UnicodeDecodeError�reasonr����)r����r��r�����value�excs��� r!���r)���NullProvider.get_metadata���sl�������}�}���&�&�t�,��� � �$��� ��<�<��(�(��!�� �� �J�J�3�:�:�4�F�F�J��� �s����A�� A;�%A6�6A;c������������������6�����[��������U�R������������������U5������5������$�r#����r���r)��r���s��� r!���r,���NullProvider.get_metadata_lines�����������4�,�,�T�2�3�3r ���c������������������X�����U�R������������������U�R������������������U�R������������������U5������5������$�r#���)�_isdirrw��rt��r���s��� r!���ri����NullProvider.resource_isdir���s"�������{�{�4�8�8�D�$4�$4�m�D�E�Er ���c������������������~�����U�R�������������������=(�������a+�� �U�R������������������U�R������������������U�R�������������������U5������5������$�r#���)r���r���rw��r���s��� r!���r/���NullProvider.metadata_isdir���s)�������}�}�K����T�X�X�d�m�m�T�-J�!K�Kr ���c������������������X�����U�R������������������U�R������������������U�R������������������U5������5������$�r#���)�_listdirrw��rt��r���s��� r!���rg����NullProvider.resource_listdir��s"�������}�}�T�X�X�d�&6�&6� �F�G�Gr ���c������������������~�����U�R�������������������(�������a+��U�R������������������U�R������������������U�R�������������������U5������5������$�/�$�r#���)r���r���rw��r���s��� r!���r2���NullProvider.metadata_listdir��s,�������=�=��=�=����$�-�-��!>�?�?�� r ���c����������������������SU-���nU�R������������������U5������(�������d#��[��������SR������������������"�S 0�[��������5�������D65������eU�R ������������������U5������R������������������SS5������nUR������������������SS5������nU�R ������������������U�R������������������U5������nXRS'���[��������R������������������R������������������U5������(�������a>��[��������U5�������nUR������������������5�������nS�S�S�5������ �[��������WUS5������n[��������X�U5������ �g�SS KJn �[#��������U5������SUR%������������������S5������U4X�'���[��������XES5������n [��������X�U5������ �g�!�,�(�������d��f �� � �Ng=�f)Nzscripts/z<Script {script!r} not found in metadata at {self.egg_info!r}z � � rr���execr���)�cacher���)r%��rw���r����r����r)��r��rw��r���r����r����r����r����read�compiler���� linecacher���r]��r ���)r����r��r5���script�script_text�script_filename�fid�source�coder����script_codes��� r!���r]����NullProvider.run_script ��s ������k�)��� � ��(�(�!�N�U�U����h���� � ��'�'��/�7�7���E��!�)�)�$��5���(�(�4�=�=�&�9�� /�*�� �7�7�>�>�/�*�*��o�&�#�������'��6�?�F�;�D���)�,�'���K� ���!�!�$�'�� &�E�"��"�+��G�K����3��'�&�s����D3�3 Ec�����������������������[��������S5������e�Nz9Can't perform this operation for unregistered loader type��NotImplementedErrorrE��s��� r!���r����NullProvider._has&���������!�G� �� r ���c�����������������������[��������S5������er���r���rE��s��� r!���r����NullProvider._isdir+��r���r ���c�����������������������[��������S5������er���r���rE��s��� r!���r����NullProvider._listdir0��r���r ���c�����������������������U�R������������������U5������ �U(�������a0��[��������R������������������R������������������"�U/UR ������������������S5������Q76�$�U$�)N�/)�_validate_resource_pathr����r����rU���r ���)r�����baser;��s��� r!���rw���NullProvider._fn5��s;�������$�$�]�3���7�7�<�<��@�}�':�':�3�'?�@�@��r ���c����������������������[���������R������������������R������������������U�R������������������[��������R ������������������5������;���=(�������d3�� �[��������R������������������"�U�5������=(�������d�� �[��������R������������������"�U�5������nU(�������d��gSn[��������R������������������"�U�5������(�������a&��[��������R������������������"�U�5������(�������d��[��������U5������e[��������USS�S-���[��������5������ �g)a��� Validate the resource paths according to the docs. https://setuptools.pypa.io/en/latest/pkg_resources.html#basic-resource-access >>> warned = getfixture('recwarn') >>> warnings.simplefilter('always') >>> vrp = NullProvider._validate_resource_path >>> vrp('foo/bar.txt') >>> bool(warned) False >>> vrp('../foo/bar.txt') >>> bool(warned) True >>> warned.clear() >>> vrp('/foo/bar.txt') >>> bool(warned) True >>> vrp('foo/../../bar.txt') >>> bool(warned) True >>> warned.clear() >>> vrp('foo/f../bar.txt') >>> bool(warned) False Windows path separators are straight-up disallowed. >>> vrp(r'\foo/bar.txt') Traceback (most recent call last): ... ValueError: Use of .. or absolute path in a resource path is not allowed. >>> vrp(r'C:\foo/bar.txt') Traceback (most recent call last): ... ValueError: Use of .. or absolute path in a resource path is not allowed. Blank values are allowed >>> vrp('') >>> bool(warned) False Non-string values are not. >>> vrp(None) Traceback (most recent call last): ... AttributeError: ... Nz=Use of .. or absolute path in a resource path is not allowed.r����z/ and will raise exceptions in a future release.)r����r�����pardirr ���� posixpath�sep�isabs�ntpathrX���� issue_warning�DeprecationWarning)r�����invalidr;��s��� r!���r����$NullProvider._validate_resource_path;��s�������l� �G�G�N�N�d�j�j����7�7�� "����t�$� "��|�|�D�!�� � ���M����<�<����i�o�o�d�&;�&;��S�/�!�� ����H�H�H�� r ���c�����������������������[��������U�R������������������S5������(�������a��U�R������������������R������������������U5������$�[��������S5������e)N�get_dataz=Can't perform this operation for loaders without 'get_data()')r����r����r���r���rE��s��� r!���r���NullProvider._get���s8�������4�;�;� �+�+��;�;�'�'��-�-�!�K� �� r ���)r����rt��)r���r���r���r���r����egg_namer���r����rU��r<��r?��rB��rF��r���r%��r)��r,��ri���r/��rg���r2��r]���r���r���r���rw��rL��r���r��r���r���r ���r!���r����r�������s�������O��H��H� �F�L�9�L�D�D�-���4�F�L�H�� 4�: � � � ���G ���G �R r ���r����c��������������#����x���#� ���SnX:w��a/��U�v�� �U�n[���������R������������������R������������������U�5������u��pX:w��a��M.��gg7f)z* yield all parents of path including path N)r����r����r ���)r�����lastr����s��� r!����_parentsr������s6����������D� �,�� ����'�'�-�-��%�����,�s����4:�:c��������������������8���^���\�rS�rSrSrU�4S�jrS�rS�rSrU�=r $�)r����i���z&Provider based on a virtual filesystemc������������������D���>��[���������TU�]��U5������ �U�R������������������5������� �g�r#���)�superrU��� _setup_prefix�r����r����r����s��� �r!���rU���EggProvider.__init__���s������� ���� ����r ���c�����������������������[��������[��������[��������U�R������������������5������5������n[ ��������US�5������nU=(�������a�� �U�R������������������U5������ �g� �g�r#���)�filter�_is_egg_pathr���rt���next�_set_egg)r�����eggs�eggs��� r!���r����EggProvider._setup_prefix���s;��������l�H�T�-=�-=�$>�?���4�����"�� � �c�"�"r ���c�����������������������[���������R������������������R������������������U5������U�l��������[���������R������������������R ������������������US5������U�l��������Xl��������g�)N�EGG-INFO)r����r�����basenamer���rU���r����egg_rootrE��s��� r!���r����EggProvider._set_egg���s3���������(�(��.�� ������T�:�6�� �� r ���)r���r���r���) r���r���r���r���r���rU��r���r���r���� __classcell__r���s���@r!���r����r�������s�������0��#���r ���r����c��������������������F�����\�rS�rSrSrS�rS�rS�rS�rS�r \ S�5�������rS rg )r����i���z6Provides access to package resources in the filesystemc������������������@�����[���������R������������������R������������������U5������$�r#���)r����r����r����rE��s��� r!���r����DefaultProvider._has���s�������w�w�~�~�d�#�#r ���c������������������@�����[���������R������������������R������������������U5������$�r#���)r����r����r ���rE��s��� r!���r����DefaultProvider._isdir���s�������w�w�}�}�T�"�"r ���c������������������.�����[���������R������������������"�U5������$�r#���)r�����listdirrE��s��� r!���r����DefaultProvider._listdir���s�������z�z�$��r ���c������������������N�����[��������U�R������������������U�R������������������U5������S5������$��N�rb)r���rw��rt��rx��s��� r!���r?���#DefaultProvider.get_resource_stream���s �������D�H�H�T�-�-�}�=�t�D�Dr ���c������������������p�����[��������US5�������nUR������������������5�������sS�S�S�5������ �$�!�,�(�������d��f �� � �g�=�fr���)r���r���)r����r�����streams��� r!���r���DefaultProvider._get���s#������ �$�� ���;�;�=��� � �s����'� 5c������������������d�����SnU�H(��n[��������[��������U[��������S�5������5������n[��������X05������ �M*��� �g�)N)�SourceFileLoader�SourcelessFileLoader)r�����importlib_machinery�typer����)r\���loader_namesr��� loader_clss��� r!���� _register�DefaultProvider._register���s0������ ���!�D� �!4�d�D��J�G�J� ��1��!r ���r���N) r���r���r���r���r���r���r���r���r?��r��r���r���r���r���r ���r!���r����r�������s3������@�$�#� �E�!���2���2r ���r����c��������������������8�����\�rS�rSrSrSrS�=rrS�rS�r S�r Srg) r����i���z.Provider that returns nothing for all requestsNc�����������������������gr��r���rE��s��� r!���rJ����EmptyProvider.<lambda>���s������ur ���c�����������������������g�Nr����r���rE��s��� r!���r���EmptyProvider._get���s������r ���c�����������������������/�$�r#���r���rE��s��� r!���r����EmptyProvider._listdir���s������� r ���c�����������������������g�r#���r���r����s��� r!���rU���EmptyProvider.__init__���s������r ���r���)r���r���r���r���r���rt��r���r���r��r���rU��r���r���r ���r!���r����r�������s#������8��K�,�,�F�T��� r ���r����c��������������������,�����\�rS�rSrSr\S�5�������r\rSrg)�ZipManifestsi���z zip manifest builder c���������������������^��[���������R������������������"�U5�������mU4S�jTR������������������5��������5�������n[��������U5������sSSS5������ �$�!�,�(�������d��f �� � �g=�f)z� Build a dictionary similar to the zipimport directory caches, except instead of tuples, store ZipInfo objects. Use a platform-specific path separator (os.sep) for the path keys for compatibility with pypy on Windows. c��������������3�������>#� ���U�H6��nUR������������������S�[��������R������������������5������TR������������������U5������4v�� �M8��� �g7f)r���N)r��r����r����getinfo)rt��r���zfiles��� �r!���ru���%ZipManifests.build.<locals>.<genexpr>���s<����������� �-�D���L�L��b�f�f�-��M�M�$�'���-�s����=A�N)�zipfile�ZipFile�namelistr'���)r\��r����r.���r��s��� @r!����build�ZipManifests.build���s@���������_�_�T� "�e�� �"�N�N�,��E����;��#� "� "�s����%A� Ar���N) r���r���r���r���r���r���r���loadr���r���r ���r!���r��r�����s"�������������$��Dr ���r��c��������������������D�����\�rS�rSrSr\R������������������"�SS5������rS�rSr g)�MemoizedZipManifestsi���z Memoized zipfile manifests. �manifest_modzmanifest mtimec����������������������[���������R������������������R������������������U5������n[���������R������������������"�U5������R������������������nX;��d��X���R ������������������U:w��a$��U�R ������������������U5������nU�R������������������X25������X'���X���R������������������$�)zG Load a manifest at path or return a suitable manifest already loaded. ) r����r�����normpathr3���st_mtime�mtimer��r���manifest)r����r����r��r��s��� r!���r���MemoizedZipManifests.load��sn��������w�w����%������ �&�&����t�z�/�/�5�8��z�z�$�'�H��*�*�8�;�D�J��z�"�"�"r ���r���N) r���r���r���r���r���r���� namedtupler��r��r���r���r ���r!���r��r�����s!���������)�)�.�:J�K�L�#r ���r��c�����������������������^���\�rS�rSrSrSr\"�5�������rU�4S�jrS�r S�r \S�5�������rS�r \S �5�������rS �rS�rS�rS �rS�rS�rS�rS�rS�rSrU�=r$�)r����i��z"Resource support for zips and eggsNc������������������|���>��[���������TU�]��U5������ �U�R������������������R������������������[��������R ������������������-���U�l��������g�r#���)r���rU��r�����archiver����r����zip_prer���s��� �r!���rU���ZipProvider.__init__��s*������� ���� ��{�{�*�*�R�V�V�3��r ���c����������������������UR������������������[��������R������������������5������nXR������������������R������������������:X��a��gUR������������������U�R������������������5������(�������a��U[��������U�R������������������5������S��$�[��������U<�SU�R������������������<�35������e)Nr����� is not a subpath of ) �rstripr����r���r����r#��r��r$��r]���AssertionError�r�����fspaths��� r!���� _zipinfo_name�ZipProvider._zipinfo_name��si����������r�v�v�&���[�[�(�(�(�����T�\�\�*�*��#�d�l�l�+�-�.�.��F�D�L�L�Q�R�Rr ���c������������������*����U�R�������������������U-���nUR������������������U�R������������������[��������R������������������-���5������(�������a8��U[��������U�R������������������5������S-���S��R ������������������[��������R������������������5������$�[��������U<�SU�R������������������<�35������e)Nr����r'��)r$��r��r���r����r���r]��r ���r)��)r�����zip_pathr+��s��� r!����_parts�ZipProvider._parts(��so�����������(�����T�]�]�R�V�V�3�4�4��#�d�m�m�,�q�0�2�3�9�9�"�&�&�A�A��F�D�M�M�R�S�Sr ���c������������������`�����U�R�������������������R������������������U�R������������������R������������������5������$�r#���)�_zip_manifestsr��r����r#��r����s��� r!����zipinfo�ZipProvider.zipinfo0��s#�������"�"�'�'����(;�(;�<�<r ���c������������������8����U�R�������������������(�������d��[��������S5������eU�R������������������U5������nU�R������������������5�������nSR ������������������U�R������������������U5������5������U;���a)��U�H#��nU�R ������������������XR������������������U5������5������ �M%��� �U�R ������������������X5������$�)Nz5resource_filename() only supported for .egg, not .zipr���)r���r����_resource_to_zip�_get_eager_resourcesrU���r0���_extract_resource� _eager_to_zip)r����r:��r;��r/���eagersr��s��� r!���r<���!ZipProvider.get_resource_filename4��s��������}�}�%�G��� ���(�(��7���*�*�,���8�8�D�K�K��)�*�f�4����&�&�w�0B�0B�4�0H�I����%�%�g�8�8r ���c������������������j�����U�R�������������������nU�R������������������S-���n[��������R������������������"�U5������nX14$�)N)r���r���r����)� file_size� date_time�time�mktime)�zip_stat�sizer?��� timestamps��� r!����_get_date_and_size�ZipProvider._get_date_and_sizeA��s3�������!�!���&�&��3� ��K�K� �*� ���r ���c����������������������X R������������������5�������;���ah��U�R������������������5�������U����H2��nU�R������������������U[��������R������������������R ������������������X#5������5������nM4��� �[��������R������������������R������������������W5������$�U�R ������������������U�R������������������U���5������u��pV[��������(�������d��[��������S5������e�UR������������������U�R������������������U�R������������������U5������5������nU�R������������������Xr5������(�������a��U$�[��������S[��������R������������������R������������������U5������S9u��p�[��������R������������������"�X�R ������������������R#������������������U5������5������ �[��������R$������������������"�U5������ �['��������X�U45������ �UR)������������������X�5������ ��[+��������X�5������ �U$�!�[��������R,�������������������an�� �[��������R������������������R/������������������U5������(�������aH��U�R������������������Xr5������(�������a��Us�$�[��������R0������������������S:X��a��[3��������U5������ �[+��������X�5������ �Us�$�e�f�=�f!�[��������R,�������������������a�� �UR5������������������5������� ��W$�f�=�f)Nz>"os.rename" and "os.unlink" are not supported on this platformz .$extract)�dirr0��)�_indexr9��r����r����rU���rs��rE��r4��� WRITE_SUPPORT�OSErrorr-��r���r0���_is_current�_mkstemp�writer����r����closer���rB��r����error�isfiler��r���r#��) r����r:��r/��r��r���rD��rC��� real_path�outf�tmpnams ��� r!���r9���ZipProvider._extract_resourceK��s�������{�{�}�$���� �h�/���-�-�g�r�w�w�|�|�H�7S�T���0���7�7�?�?�4�(�(��1�1�$�,�,�x�2H�I�� ��}��S��� �! '��.�.�t�}�}�d�k�k�(�>S�T�I���� �4�4� � �#���G�G�O�O�I�.��L�D�� �H�H�T�;�;�/�/��9�:��H�H�T�N��&�i�0�1�����2� ��v�)�&����#��8�8�� ��7�7�>�>�)�,�,��'�'� �<�<�� )�(����D���y�)��v�1�(�(�� ����x�x�� '��$�$�&��� '�sE����3AH��6BH��F��AH� H��",H�H��H�H��$H=�<H=c����������������������U�R������������������U�R������������������U���5������u��p4[��������R������������������R ������������������U5������(�������d��g[��������R ������������������"�U5������nUR������������������U:w��d��UR������������������U:w��a��gU�R������������������R������������������U5������n[��������US5�������nUR������������������5�������nSSS5������ �Xh:H��$�!�,�(�������d��f �� � �UW:H��$�=�f)z; Return True if the file_path is current for this zip_path Fr���N)rE��r4��r����r����rQ��r3���st_sizer��r����r���r���r���) r����� file_pathr/��rD��rC��r3���zip_contents�f� file_contentss ��� r!���rL���ZipProvider._is_current}��s���������1�1�$�,�,�x�2H�I�� ��w�w�~�~�i�(�(���w�w�y�!���<�<�4��4�=�=�I�#=���{�{�+�+�H�5�� �)�T� "�a��F�F�H�M��#��,�,��#� "��}�,�,�s����$C� Cc������������������������U�R�������������������cI��/�nS�H;��nU�R������������������U5������(�������d��M��UR������������������U�R������������������U5������5������ �M=��� �Xl���������U�R�������������������$�)N)znative_libs.txtzeager_resources.txt)r;��r%��r���r,��)r����r;��r��s��� r!���r8��� ZipProvider._get_eager_resources���sU�������;�;���F�B���$�$�T�*�*��M�M�$�"9�"9�$�"?�@��C��!�K��{�{�r ���c������������������|�����U�R�������������������$�!�[���������a��� �0�nU�R�������������������H���nUR������������������[��������R ������������������5������nU(�������d��M+��[��������R ������������������R ������������������US�S�5������nXA;���a��X���R������������������US���5������ �Mj��UR������������������5�������/X'���U(�������a��M[��M���� �Xl���������Us�$�f�=�f)Nr����) � _dirindex�AttributeErrorr4��r ���r����r���rU���r����r���)r�����indr�����parts�parents��� r!���rI���ZipProvider._index���s������� ��>�>�!���� ��C������ � �2�6�6�*���e��V�V�[�[��s���4�F��}���*�*�5��9�5��',�y�y�{�m��� ��e��%��!�N��J� �s������?B;�AB;�,B;�:B;c������������������r�����U�R������������������U5������nX R������������������;���=(�������d�� �X R������������������5�������;���$�r#���)r,��r4��rI��)r����r+��r/��s��� r!���r����ZipProvider._has���s-�������%�%�f�-���<�<�'�D�8�{�{�}�+D�Dr ���c������������������F�����U�R������������������U5������U�R������������������5�������;���$�r#���)r,��rI��r*��s��� r!���r����ZipProvider._isdir���s�������!�!�&�)�T�[�[�]�:�:r ���c������������������r�����[��������U�R������������������5�������R������������������U�R������������������U5������S5������5������$�r����)r���rI��r����r,��r*��s��� r!���r����ZipProvider._listdir���s+�������D�K�K�M�%�%�d�&8�&8��&@�"�E�F�Fr ���c������������������X�����U�R������������������U�R������������������U�R������������������U5������5������$�r#���)r,��rw��r���r���s��� r!���r:���ZipProvider._eager_to_zip���s"�������!�!�$�(�(�4�=�=�-�"H�I�Ir ���c������������������X�����U�R������������������U�R������������������U�R������������������U5������5������$�r#���)r,��rw��rt��r���s��� r!���r7���ZipProvider._resource_to_zip���s$�������!�!�$�(�(�4�+;�+;�]�"K�L�Lr ���)r`��r;��r$��)r���r���r���r���r���r;��r��r3��rU��r,��r0��r����r4��r<��rL��rE��r9��rL��r8��rI��r���r���r���r:��r7��r���r���r���s���@r!���r����r������s��������,� �F�)�+�N�4�S�T���=���=�9�������0�d-� ��"E�;�G�J�M��Mr ���r����c��������������������<�����\�rS�rSrSrS�rS�rS�rS�rS�r S�r S rg )r����i���a��Metadata handler for standalone PKG-INFO files Usage:: metadata = FileMetadata("/path/to/PKG-INFO") This provider rejects all data and metadata requests except for PKG-INFO, which is treated as existing, and will be the contents of the file at the provided location. c�����������������������Xl���������g�r#����r����rE��s��� r!���rU���FileMetadata.__init__���s������� r ���c�����������������������U�R�������������������$�r#���rr��r���s��� r!���r����FileMetadata._get_metadata_path���s�������y�y�r ���c������������������l�����US:H��=(�������a)�� �[���������R������������������R������������������U�R������������������5������$�)N�PKG-INFO)r����r����rQ��r���s��� r!���r%���FileMetadata.has_metadata���s#�������z�!�?�b�g�g�n�n�T�Y�Y�&?�?r ���c������������������������US:w��a��[��������S5������e[��������U�R������������������SSS9�nUR������������������5�������nS�S�S�5������ �U�R ������������������W5������ �U$�!�,�(�������d��f �� � �N!=�f)Nrw��z(No metadata except PKG-INFO is availabler���r��)�encoding�errors)r����r���r����r����_warn_on_replacement)r����r��rZ���metadatas��� r!���r)���FileMetadata.get_metadata���sV�������:���E�F�F� �$�)�)�g�i� @�A��v�v�x�H��A��!�!�(�+����A� @�s����A� A!c������������������x�����SnX!;���a3��SnUR�������������������"�S0�[��������5�������D6n[��������R������������������"�U5������ �g�g�)Nu����z2{self.path} could not be properly decoded in UTF-8r���)r����r����r7��r8��)r����r}���replacement_charr!��r;��s��� r!���r|���!FileMetadata._warn_on_replacement���s7������ ���'�G�D��+�+�)���)�C��M�M�#���(r ���c������������������6�����[��������U�R������������������U5������5������$�r#���r���r���s��� r!���r,���FileMetadata.get_metadata_lines���r���r ���rr��N)r���r���r���r���r���rU��r���r%��r)��r|��r,��r���r���r ���r!���r����r�������s&������ ���@���4r ���r����c�������������������������\�rS�rSrSrS�rSrg)r����i���aC��Metadata provider for egg directories Usage:: # Development eggs: egg_info = "/path/to/PackageName.egg-info" base_dir = os.path.dirname(egg_info) metadata = PathMetadata(base_dir, egg_info) dist_name = os.path.splitext(os.path.basename(egg_info))[0] dist = Distribution(basedir, project_name=dist_name, metadata=metadata) # Unpacked egg directories: egg_path = "/path/to/PackageName-ver-pyver-etc.egg" metadata = PathMetadata(egg_path, os.path.join(egg_path,'EGG-INFO')) dist = Distribution.from_filename(egg_path, metadata=metadata) c�����������������������Xl���������X l��������g�r#���)rt��r���)r����r����r���s��� r!���rU���PathMetadata.__init__���s �������� � r ���)r���rt��N�r���r���r���r���r���rU��r���r���r ���r!���r����r�������s�������&!r ���r����c�������������������������\�rS�rSrSrS�rSrg)r����i���z Metadata provider for .egg filesc������������������,����UR�������������������[��������R������������������-���U�l��������Xl��������UR ������������������(�������a:��[��������R������������������R������������������UR�������������������UR ������������������5������U�l��������OUR�������������������U�l��������U�R������������������5������� �g)z-Create a metadata provider from a zipimporterN) r#��r����r���r$��r�����prefixr����rU���rt��r���)r�����importers��� r!���rU���EggMetadata.__init__���sa������� �'�'�"�&�&�0������?�?�!�w�w�|�|�H�,<�,<�h�o�o�N�D��'�/�/�D�����r ���)r����rt��r$��Nr���r���r ���r!���r����r�������s ������*� r ���r����r'�����_distribution_findersc�����������������������U[���������U�'���g)ah��Register `distribution_finder` to find distributions in sys.path items `importer_type` is the type or class of a PEP 302 "Importer" (sys.path item handler), and `distribution_finder` is a callable that, passed a path item and the importer instance, yields ``Distribution`` instances found on that path item. See ``pkg_resources.find_on_path`` for an example.Nr���)� importer_type�distribution_finders��� r!���r����r������s�������,?��-�(r ���c������������������J�����[��������U�5������n[��������[��������U5������nU"�X U5������$�)z.Yield distributions accessible via `path_item`)r���r����r���)� path_item�onlyr����finders��� r!���rm���rm�����s&�������I�&�H� �0�(� ;�F��(�t�,�,r ���c��������������#������#� ���U�R�������������������R������������������S5������(�������a��g[��������U�5������nUR������������������S5������(�������a��[��������R������������������XS9v�� �U(�������a��gUR ������������������S5�������H���n[��������U5������(�������aK��[��������R������������������R������������������X5������n[��������[��������R������������������"�U5������U5������nU�Sh��v�N� �M^��UR������������������5�������R������������������S5������(�������d��M���[��������R������������������R������������������X5������n[��������[��������R������������������"�U5������5������nXWl��������[��������R!������������������XU5������v�� �M���� �g�N�7f)z8 Find eggs in zip files; possibly multiple nested eggs. z.whlNrw���r}��r����)� .dist-info� .egg-info)r#���endswithr����r%��rt���� from_filenamerg���r���r����r����rU����find_eggs_in_zip� zipimport�zipimporterr���r���� from_location)r���r���r���r}���subitem�subpathre���submetas��� r!���r���r��� ��s����������� � ��(�(�� ��8�$�H����Z�(�(��(�(��(�F�F����,�,�R�0���� � ��g�g�l�l�9�6�G�$�Y�%:�%:�7�%C�W�M�E���� �]�]�_� %� %�&A� B� B��g�g�l�l�9�6�G�!�)�"7�"7��"@�A�G�&���,�,�Y��I�I��1�� �s����CE� E�(E�7A"Ec�����������������������gr����r���)r���r���r���s��� r!����find_nothingr���=��s������ r ���c����������� ���#������^#� ���[��������T5������m[��������T5������(�������a?��[��������R������������������T[ ��������T[ ��������R������������������R������������������TS5������5������S9v�� �gU4S�j[��������T5�������5�������n[��������U5�������H?��n[ ��������R������������������R������������������TU5������n[��������TXB5������nU"�U5�������Sh��v�N� �MA��� �g�N 7f)z6Yield distributions accessible on a sys.path directoryr���r���Nc��������������3����b���>#� ���U�H%��n[���������R������������������R������������������TU5������v�� �M'��� �g�7fr#���)r����r����rU���)rt���childr���s��� �r!���ru���find_on_path.<locals>.<genexpr>O��s%���������S�;R�%�r�w�w�|�|�I�u�-�-�;R�s����,/)�_normalize_cached�_is_unpacked_eggrt���r���r����r����r����rU����safe_listdir�sorted�dist_factory)r���r���r���rN��rT���fullpath�factorys��� ` r!����find_on_pathr���D��s����������!�)�,�I�� �"�"��(�(��!�)�R�W�W�\�\�)�Z�-P�Q��)�� �� �� �S�<� �;R�S�G�������7�7�<�<� �5�1���y�%�6���8�$�$�$��!�� %�s����B5C�8C�9 Cc����������������������UR������������������5�������nUR������������������S5������nUR������������������S5������=(�������a<�� �[��������R������������������R ������������������[��������R������������������R������������������X5������5������nU=(�������d�� �UnU(�������a��[��������$�U(�������d��[��������U5������(�������a��[��������$�U(�������d��UR������������������S5������(�������a��[��������$�[��������5�������$�)z*Return a dist_factory for the given entry.r���r���z .egg-link)r���r���r����r����r ���rU����distributions_from_metadatar���rm����resolve_egg_link�NoDists)r���rT��r���r����is_egg_info�is_dist_info�is_metas��� r!���r���r���X��s��������K�K�M�E��.�.��-�K��>�>�,�/���B�G�G�M�M� �����Y�&�5�L���)�\�G���� $�����U�+�+�� �������{�3�3������Y�r ���c��������������������$�����\�rS�rSrSrS�rS�rSrg)r���ik��z? >>> bool(NoDists()) False >>> list(NoDists()('anything')) [] c�����������������������gr��r���r����s��� r!����__bool__�NoDists.__bool__t��s������r ���c�����������������������[��������S5������$�r����)�iter)r����r���s��� r!����__call__�NoDists.__call__w��s�������B�x�r ���r���N)r���r���r���r���r���r���r���r���r���r ���r!���r���r���k��s��������r ���r���c������������������������[���������R������������������"�U�5������$�!�[��������[��������4�a�� ��g[���������aH��nUR ������������������[ ��������R������������������[ ��������R������������������[ ��������R������������������4;��a��e��SnAgSnAff�=�f)zA Attempt to list contents of path, but suppress some exceptions. Nr���) r����r����PermissionError�NotADirectoryErrorrK���errno�ENOTDIR�EACCES�ENOENT)r����rk��s��� r!���r���r���{��sk��������z�z�$�����/�0�� ��������� �7�7�5�=�=�%�,�,����E�E���F� ���s������A;� A;�>A6�6A;c��������������#����~��#� ���[���������R������������������R������������������U�5������n[���������R������������������R������������������U�5������(�������a0��[ ��������[���������R ������������������"�U�5������5������S:X��a��g�[ ��������X5������nO[��������U�5������n[���������R������������������R������������������U�5������n[��������R������������������UUU[��������S9v�� �g�7f)Nr���)� precedence)r����r����rs��r ���r]��r���r����r����r���rt���r���r����)r�����rootr}��rT��s��� r!���r���r������s��������� �7�7�?�?�4� �D� �w�w�}�}�T����r�z�z�$�� �A�%����+����%���G�G���T�"�E� � $� $�� ��� �%�����s����B;B=c��������������#�������#� ���[��������U�5�������nU�H ��nUR������������������5�������nU(�������d��M��Uv�� �M"��� �SSS5������ �g!�,�(�������d��f �� � �g=�f7f)z) Yield non-empty lines from file at path N)r���r_��)r����rZ���lines��� r!����non_empty_linesr������s8��������� �d��q��D��:�:�<�D��t�� ���� ���s����A�>�>� A� A�Ac������������������j���^���[��������T�5������nU�4S�jU�5�������n[��������[��������U5������n[��������US5������$�)zU Given a path to an .egg-link, resolve distributions present in the referenced path. c��������������3�������>#� ���U�HB��n[���������R������������������R������������������[���������R������������������R������������������T5������U5������v�� �MD��� �g�7fr#���)r����r����rU���rs��)rt���refr����s��� �r!���ru���#resolve_egg_link.<locals>.<genexpr>���s4�����������<L�S������R�W�W�_�_�T�*�C�0�0�<L�s����A Ar���)r���r���rm���r���)r�����referenced_paths�resolved_paths�dist_groupss���` r!���r���r������s;������� �'�t�,���<L��N���(�.�9�K���R� � r ����ImpImporter��_namespace_handlers)�_namespace_packagesc�����������������������U[���������U�'���g)ar��Register `namespace_handler` to declare namespace packages `importer_type` is the type or class of a PEP 302 "Importer" (sys.path item handler), and `namespace_handler` is a callable like this:: def namespace_handler(importer, path_entry, moduleName, module): # return a path_entry to use for child packages Namespace handlers are only called if the importer object has already agreed that it can handle the relevant path item, and they should only return a subpath if the module __path__ does not already contain an equivalent subpath. For an example namespace handler, see ``pkg_resources.file_ns_handler``. Nr���)r����namespace_handlers��� r!���r����r�������s�������*;�� �&r ���c����������������������[��������U5������nUc��g�UR������������������U�5������nU(�������a��UR������������������OSnWc��g[��������R������������������R������������������U�5������nUc<��[��������R������������������"�U�5������=n[��������R������������������U�'���/�Ul ��������[��������U�5������ �O[��������US5������(�������d��[!��������SU�5������e[#��������[$��������U5������nU"�X!X5������nUb?��UR������������������nUR'������������������U5������ �[(��������R*������������������"�U�5������ �[-��������X�U5������ �U$�!�[���������a]�� �[��������R ������������������"�5�������� �[��������R������������������"�S5������ �UR������������������U�5������nSSS5������ ��GM/��!�,�(�������d��f �� � ��GN?=�ff�=�f)zEEnsure that named package includes a subpath of path_item (if needed)N�ignore�__path__�Not a package:)r���� find_specr����ra��r7���catch_warnings�simplefilter�find_modulerS���r����r�����types� ModuleTyper����_set_parent_nsr����r��r����r���r����� importlib� import_module�_rebuild_mod_path) �packageNamer���r����specr����r�����handlerr���r����s ��� r!���� _handle_nsr������s=�������I�&�H����/��!�!�+�.���!%����$�� �~�� �[�[�_�_�[� )�F� �~�,1�,<�,<�[�,I�I�����[�)�����{�#� �V�Z� (� (��(�+�6�6��/��:�G��h�;�?�G����������G������,��$�V�4��N��1���7� � $� $� &��!�!�(�+��)�)�+�6�F��'� &� &� &��7�s)����D��E:�2(E&�E:�& E6 �0E:�6E:c������������������8��^^^��[���������R�������������������Vs/�sH��n[��������U5������PM��� �snmU4S�jmUU4S�jn[��������XS9nU�Vs/�sH��n[��������U5������PM��� �nn[ ��������UR ������������������[��������5������(�������a��XRR ������������������SS&�gXRl��������gs �snf�s �snf�)ze Rebuild module.__path__ ensuring that all entries are ordered corresponding to their sys.path order c������������������^���>���TR������������������U�5������$�!�[���������a�� �[��������S5������s�$�f�=�f)z Workaround for #520 and #513. �inf)�indexrX����float)rT���sys_paths��� �r!����safe_sys_path_index�._rebuild_mod_path.<locals>.safe_sys_path_index���s0������� ��>�>�%�(�(���� ���<�� �s������,�,c����������������������>��U�R������������������[��������R������������������5������nTR������������������S5������S-���nUSU*��nT"�[ ��������[��������R������������������R������������������U5������5������5������$�)zB Return the ordinal of the path based on its position in sys.path rN���r����N)r ���r����r����countr���rU���)r����� path_parts�module_partsrc���package_namer���s��� ��r!����position_in_sys_path�/_rebuild_mod_path.<locals>.position_in_sys_path ��sX���������Z�Z����'� �#�)�)�#�.��2���>�\�M�*��"�#4�R�V�V�[�[��5G�#H�I�Ir ���)r@���N)rS���r����r���r���r����r���r���)� orig_pathr���r�����pr����new_pathr���r���s��� ` @@r!���r���r������s�������� �/2�h�h�7�h��!�!�$�h�7�H� �J���i�:�H�.6�7�h��!�!�$�h�H�7��&�/�/�4�(�(�%�����"���5�8��*�8s����B�Bc�����������������������SU�<�S3n[���������R������������������"�U[��������SS9 �[��������R������������������"�5������� ��U�[ ��������;���a���[��������R������������������"�5������� �g[��������R������������������nU�R������������������S5������u��n �nU(�������a>��[��������U5������ �U[ ��������;��a��[��������U5������ ��[��������R������������������U���R������������������n[ ��������R!������������������U=(�������d�� �S/�5������R#������������������U�5������ �[ ��������R!������������������U�/�5������ �U�H��n[%��������X5������ �M��� �[��������R������������������"�5������� �g!�[���������a��n[��������SU5������UeSnAff�=�f!�[��������R������������������"�5������� �f�=�f)z9Declare that package 'packageName' is a namespace packagez4Deprecated call to `pkg_resources.declare_namespace(z�)`. Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packagesr���r���NrN���r���)r7��r8��r����_imp�acquire_lockr����release_lockrS���r����� rpartitionrj���r����r����r���ra��r��rh��r����r���)r���r;��r����rd��r����rk��r���s��� r!���rj���rj��� ��s6������?�{�o��N3�� 3���� �M�M�#�)�a�8�������-�-��2� ����/��x�x��"�-�-�c�2����1���f�%��0�0��6�"� A��{�{�6�*�3�3��� �&�&�v�~��r�:�A�A�+�N��&�&�{�B�7��I�� �{�.���� ������"�� A�� 0�&�9�q�@�� A��� ����s7���� E��AE��&D1��AE��1 E �; E�E � E��E'c����������������������[���������R������������������"�5������� ��[��������R������������������US5�������H"��n[ ��������X 5������nU(�������d��M��[��������X25������ �M$��� �[���������R������������������"�5������� �g!�[���������R������������������"�5������� �f�=�f)zDEnsure that previously-declared namespace packages include path_itemr���N)r���r���r���r����r���r����r��)r���rd���packager���s��� r!���r����r����B ��s\�����������*�.�.�v�r�:�G� ��4�G��w�(��:��;� � ���������s����)A)��A)��)B�c������������������������[���������R������������������R������������������XR������������������S5������S���5������n[ ��������U5������nUR �������������������H��n[ ��������U5������U:X��d��M�� �g� �U$�)zBCompute an ns-package subpath for a filesystem or zipfile importerrN���r����N)r����r����rU���r ���r���r���)r���r���r���r����r���� normalizedr~��s��� r!����file_ns_handlerr��N ��sU��������g�g�l�l�9�&7�&7��&<�R�&@�A�G�"�7�+�J������T�"�j�0��� � ��r ���c�����������������������g�r#���r���)r���r���r���r����s��� r!����null_ns_handlerr ��b ��s������r ���c����������� �������������[���������R������������������R������������������[���������R������������������R������������������[���������R������������������R ������������������[��������U�5������5������5������5������$�)z1Normalize a file/dir name for comparison purposes)r����r�����normcase�realpathr��� _cygwin_patch�rA��s��� r!���r����r����i ��s:������ �7�7���B�G�G�,�,�R�W�W�-=�-=�m�H�>U�-V�W�X�Xr ���c������������������l�����[���������R������������������S:X��a��[��������R������������������R ������������������U�5������$�U�$�)z� Contrary to POSIX 2008, on Cygwin, getcwd (3) contains symlink components. Using os.path.abspath() works around this limitation. A fix in os.getcwd() would probably better, in Cygwin even more so, except that this seems to be by design... �cygwin)rS���rT���r����r�����abspathr��s��� r!���r ��r ��n ��s'�������),����(@�2�7�7�?�?�8�$�N�h�Nr ���c������������������N������X���$�!�[����������a�� �[��������U�5������=X'���nUs�$�f�=�fr#���)r����r����)rA��r�����results��� r!���r���r���y ��s6��������������$2�8�$<�<���6�� ��s������$�$c������������������<�����[��������U�5������=(�������d�� �[��������U�5������$�)z/ Determine if given path appears to be an egg. )�_is_zip_eggr���rr��s��� r!���r���r���� ��s��������t��6� 0�� 6�6r ���c������������������������U�R������������������5�������R������������������S5������=(�������a<�� �[��������R������������������R ������������������U�5������=(�������a�� �[ ��������R������������������"�U�5������$�)N�.egg)r���r���r����r����rQ��r��� is_zipfilerr��s��� r!���r��r��� ��sC������� � ����f�%�� %��G�G�N�N�4� � %����t�$�r ���c������������������������U�R������������������5�������R������������������S5������=(�������a>�� �[��������R������������������R ������������������[��������R������������������R������������������U�SS5������5������$�)z8 Determine if given path appears to be an unpacked egg. r��r���rw��)r���r���r����r����rQ��rU���rr��s��� r!���r���r���� ��sE��������:�:�<� � ��(���R�W�W�^�^� �����T�:�z�2�.��r ���c������������������������U�R������������������S5������nUR������������������5�������nU(�������aA��SR������������������U5������n[��������[��������R ������������������U���U[��������R ������������������U����5������ �g�g�)NrN���)r ���r���rU����setattrrS���r����)r���rc��r��rd��s��� r!���r���r���� ��sP���������c�"�E��9�9�;�D�����%�������F�#�T�3�;�;�{�+C�D�� r ���z\w+(\.\w+)*$z� (?P<name>[^-]+) ( -(?P<ver>[^-]+) ( -py(?P<pyver>[^-]+) ( -(?P<plat>.+) )? )? )? c�������������������������\�rS�rSrSrSS�jrS�rS�rSS�jrS�r SS �jr \R������������������"�S 5������r \SS�j5�������r\S�5�������r\SS �j5�������r\SS�j5�������rSrg)rv���i� ��z3Object representing an advertised importable objectNc�����������������������[��������U5������(�������d��[��������SU5������eXl��������X l��������[ ��������U5������U�l��������[ ��������U5������U�l��������XPl��������g�)NzInvalid module name)�MODULErX���r���module_name�tuple�attrsr���r����)r����r��r��r!��r���r����s��� r!���rU���EntryPoint.__init__� ��sA�������k�"�"��2�K�@�@�� �&���5�\�� ��F�m���� r ���c����������������������U�R�������������������<�SU�R������������������<�3nU�R������������������(�������a!��USSR������������������U�R������������������5������-���- ��nU�R������������������(�������a!��USSR������������������U�R������������������5������-��- ��nU$�)Nz = �:rN���z [%s]�,)r��r��r!��rU���r���)r�����ss��� r!���r�����EntryPoint.__str__� ��sa���������D�$4�$4�5���:�:� ��s�x�x�� � �+�+�+�A��;�;� ��3�8�8�D�K�K�0�0�0�A��r ���c�����������������������S[��������U�5������-��$�)NzEntryPoint.parse(%r)�r����r����s��� r!���r�����EntryPoint.__repr__� ��s������%��D� �1�1r ���c�����������������������U(�������a��U(�������d��U(�������a��[���������R������������������"�S[��������SS9 �U(�������a��U�R������������������"�U0�UD6 �U�R ������������������5�������$�)z8 Require packages for this EntryPoint, then resolve it. zJParameters to load are deprecated. Call .resolve and .require separately.r���r���)r7��r8��r����r\���ra��)r����r\���rI����kwargss��� r!���r���EntryPoint.load� ��sD��������$�&��M�M�'�.�� ����L�L�$�)�&�)��|�|�~�r ���c������������������������[��������U�R������������������S/SS9n�[��������R������������������"�[��������U�R ������������������U5������$�!�[���������a��n[��������[��������U5������5������UeSnAff�=�f)z4 Resolve the entry point from its module and attrs. r���r���)�fromlist�levelN) r����r��� functools�reducer����r!��ra��rZ��r����)r����r����r���s��� r!���ra���EntryPoint.resolve� ��sY��������D�,�,� �|�1�M�� 1��#�#�G�T�Z�Z��@�@���� 1��c�#�h�'�S�0�� 1�s����%>�� A"�A�A"c������������������,����U�R�������������������(�������a��U�R������������������(�������d��[��������SU�5������eU�R������������������R������������������U�R�������������������5������n[��������R������������������X1X R�������������������S9n[ ��������[��������[��������R������������������U5������5������ �g�)Nz&Can't require() without a distribution)r���) r���r����rz���rz��rk���ra��r���r���rb��)r����r���r���rd��r.���s��� r!���r\����EntryPoint.require� ��sc�������;�;�t�y�y��G��N�N���y�y�!�!�$�+�+�.���#�#�D�y���#�M���S����%� (�)r ���z]\s*(?P<name>.+?)\s*=\s*(?P<module>[\w.]+)\s*(:\s*(?P<attr>[\w.]+))?\s*(?P<extras>\[.*\])?\s*$c������������������ ����U�R�������������������R������������������U5������nU(�������d ��Sn[��������XA5������eUR������������������5�������nU�R ������������������US���5������nUS���(�������a��US���R������������������S5������OSnU�"�US���US���XvU5������$�)z�Parse a single entry point from string `src` Entry point syntax follows the form:: name = some.module:some.attr [extra1, extra2] The entry name and module name are required, but the ``:attrs`` and ``[extras]`` parts are optional z9EntryPoint must be in 'name=module:attrs [extras]' formatr����attrrN���r���r��r����)�patternrR���rX���� groupdict� _parse_extrasr ���)r\���srcr����rZ���r;���resr���r!��s��� r!���r���EntryPoint.parse� ��s������� �K�K���c�"���M�C��S�&�&��k�k�m���"�"�3�x�=�1��*-�f�+��F��!�!�#�&�2���3�v�;��H� �u�d�C�Cr ���c�����������������������U(�������d��g[���������R������������������SU-���5������nUR������������������(�������a ��[��������5�������eUR������������������$�)Nr����x)ru���r���specsrX���r���)r\���extras_specr����s��� r!���r:���EntryPoint._parse_extras ��s6������������k� 1�2���9�9��,���z�z�r ���c������������������������[��������U5������(�������d��[��������SU5������e0�n[��������U5�������HH��nU�R������������������XS5������nUR������������������U;���a��[��������SXR������������������5������eXdUR������������������'���MJ��� �U$�)zParse an entry point groupzInvalid group namezDuplicate entry point)r��rX���r���r��r��)r\��rW����linesr�����thisr����eps��� r!����parse_group�EntryPoint.parse_group ��sl��������e�}�}��1�5�9�9�����&�D����4�&�B��w�w�$�� �!8�%���I�I�����M� �'� ��r ���c����������������������[��������U[��������5������(�������a��UR������������������5�������nO[��������U5������n0�nU�HQ��u��pEUc��U(�������d��M��[ ��������S5������eUR������������������5�������nXC;���a��[ ��������SU5������eU�R ������������������XEU5������X4'���MS��� �U$�)z!Parse a map of entry point groupsz%Entry points must be listed in groupszDuplicate group name)r����r'���r.���r����rX���r_��rG��)r\���datar�����mapsrW���rD��s��� r!���� parse_map�EntryPoint.parse_map ��s���������d�D�!�!��:�:�<�D�!�$�'�D��� �L�E��}��� �!H�I�I��K�K�M�E��}� �!7��?�?��/�/�%��=�D�K��!���r ���)r!��r����r���r��r��)r���r���Nr���)NNr#���)r���r���r���r���r���rU��r����r����r��ra��r\���rS��r���r8��r���r��r:��rG��rL��r���r���r ���r!���rv���rv���� ��s�������=���2� �1�*���j�j� #��G���D���D�&�������� ��� ������r ���rv���c�����������������������S�n[��������X5������n[��������[��������U5������S5������nUR������������������S5������u�� �pE[ ��������UR������������������5�������5������=(�������d�� �S$�)zx Given an iterable of lines from a Metadata file, return the value of the Version field, if present, or None otherwise. c������������������@�����U�R������������������5�������R������������������S5������$�)Nzversion:)r���r��)r���s��� r!����is_version_line�+_version_from_file.<locals>.is_version_line: ��s�������z�z�|�&�&�z�2�2r ���r����r$��N)r���r���r���� partitionr���r_��)rD��rP��� version_linesr���r����r���s��� r!����_version_from_filerT��4 ��sL������3���?�2�M���]�#�R�(�D��.�.��%�K�A�q����� �&�.�$�.r ���c����������������������^���\�rS�rSrSrSrSSSS\S\4S�jr\ S,S�j5�������r S�r\S�5�������r S �rS �rS�rS�rS �rS�rS�r\S�5�������r\S�5�������r\S�5�������r\S�5�������r\S�5�������r\S�5�������rS�rS-S�jrS�rS�rS�r S.S�jr!S�r"S�r#S�r$S�r%U�4S �jr&\ S,S!�j5�������r'S"�r(S#�r)S,S$�jr*S%�r+S.S&�jr,S'�r-S(�r.S)�r/\S*�5�������r0S+r1U�=r2$�)/rt���iC ��z5Wrap an actual or potential sys.path entry w/metadatarw��Nc�����������������������[��������U=(�������d�� �S5������U�l��������Ub��[��������U5������U�l��������XPl��������X`l��������Xl��������Xpl��������U=(�������d�� �[��������U�l ��������g�)N�Unknown) r~���r���r����_versionr���rT���r���r���r����� _provider)r����r���r}��r���r����r���rT���r���s��� r!���rU���Distribution.__init__H ��sH�������&�l�&?�i�@�����(��1�D�M�$�� � � � �$��!�3�^��r ���c������������������@����S�/S-��u��pVpx[���������R������������������R������������������U5������u��p)U R������������������5�������[��������;���a@��[��������U R������������������5����������n�[��������U5������n U (�������a��U R ������������������SSSS5������u��pVpxU�"�UU4UUUUS.UD6R������������������5�������$�)Nr����r���ver�pyverrY���)r���r����r���rT���)r����r�����splitextr����_distributionImpl�EGG_NAMErW����_reload_version)r\��r���r���r}��r*���r���r����r���rT����extrR���s��� r!���r����Distribution.from_location[ ��s�������7;�f�q�j�3��z����(�(��2� ���9�9�;�+�+�#�C�I�I�K�0�C��X�&�E��>C�k�k��E�7�F�?�;��z����� ��&��!�� ��� ���/� � r ���c�����������������������U�$�r#���r���r����s��� r!���ra���Distribution._reload_versionq ��s�������r ���c�����������������������U�R�������������������U�R������������������U�R������������������U�R������������������U�R������������������=(�������d�� �SU�R ������������������=(�������d�� �S4$�r��)�_forgiving_parsed_versionr���r@���r���r���rT���r����s��� r!���r����Distribution.hashcmpt ��sD������� �*�*��O�O��H�H��M�M��O�O�!�r��M�M��R� �� r ���c������������������,�����[��������U�R������������������5������$�r#���)�hashr���r����s��� r!����__hash__�Distribution.__hash__ ��s�������D�L�L�!�!r ���c������������������4�����U�R�������������������UR�������������������:��$�r#����r����r����r���s��� r!����__lt__�Distribution.__lt__� ����������|�|�e�m�m�+�+r ���c������������������4�����U�R�������������������UR�������������������:*��$�r#���rn��ro��s��� r!����__le__�Distribution.__le__� ����������|�|�u�}�}�,�,r ���c������������������4�����U�R�������������������UR�������������������:���$�r#���rn��ro��s��� r!����__gt__�Distribution.__gt__� ��rr��r ���c������������������4�����U�R�������������������UR�������������������:���$�r#���rn��ro��s��� r!����__ge__�Distribution.__ge__� ��rv��r ���c������������������j�����[��������XR������������������5������(�������d��gU�R������������������UR������������������:H��$�r��)r����r����r���ro��s��� r!����__eq__�Distribution.__eq__� ��s'�������%���0�0���|�|�u�}�}�,�,r ���c�����������������������X:X��+�$�r#���r���ro��s��� r!����__ne__�Distribution.__ne__� ���������� � r ���c������������������������U�R�������������������$�!�[���������a&�� �U�R������������������R������������������5�������=U�l���������nUs�$�f�=�fr#���)�_keyra��r���r���r���s��� r!���r@����Distribution.key� ��s@������ ��9�9����� �"�/�/�5�5�7�7�D�I���J� �s������->�>c����������������������[��������U�S5������(�������d'���[��������U�R������������������5������U�l��������U�R������������������$�U�R������������������$�!�[��������R������������������R �������������������af��nSU�R�������������������S3n[��������US5������(�������a��UR������������������U5������ �e�[��������R������������������R������������������[��������U5�������SU�35������S�eS�nAff�=�f)N�_parsed_versionz (package: �)�add_noter����) r����r}���r����r���r���rW��r���r���r����)r�����ex�infos��� r!����parsed_version�Distribution.parsed_version� ��s��������t�.�/�/� V�'4�T�\�\�'B��$���#�#�#�t�#�#�#����$�$�3�3�� V�#�D�$5�$5�#6�a�8���2�z�*�*��K�K��%���'�'�6�6�#�b�'��!�D�6�7J�K�QU�U�� V�s����A��C �#A!C�C c����������� ������������U�R�������������������$�!�[��������R������������������R�������������������a���n[ ��������[��������U�R������������������5������5������U�l��������SR������������������[��������US/�5������5������nS[��������U5�������SU�SU�R�������������������SU�R�������������������S3 n[��������R������������������"�U[��������5������ �U�R������������������s�S�nA$�S�nAff�=�f)Nr���� __notes__zg!! ************************************************************************* zl This is a long overdue deprecation. For the time being, `pkg_resources` will use `z�` as a replacement to avoid breaking existing environments, but no future compatibility is guaranteed. If you maintain package z� you should implement the relevant changes to adequate the project to PEP 440 immediately. ************************************************************************* !! )r���r���r����rW��r}���rb��r���rU���r����r����r���r7��r8��r���)r����r����notesr;��s��� r!���rg���&Distribution._forgiving_parsed_version� ��s������� (��&�&�&��� � �/�/�� (�#0�1C�D�L�L�1Q�#R�D� ��I�I�g�b�+�r�:�;�E� � ��W�I�R��w��;��<@�;O�;O�:P��Q%��&*�%6�%6�$7��8 � �C�� �M�M�#�1�2��'�'�'��) (�s������C�BC�=C�Cc������������������������U�R�������������������$�!�[���������ab��nU�R������������������5�������nUcC��U�R������������������U�R������������������5������nSR������������������U�R������������������U5������n[ ��������X@5������UeUs�S�nA$�S�nAff�=�f)Nz4Missing 'Version:' header and/or {} file at path: {})rX��ra���_get_version�_get_metadata_path_for_display�PKG_INFOr����rX���)r����rk��r����r����r;��s��� r!���r�����Distribution.version� ��su������ ��=�=� ���� ��'�'�)�G����:�:�4�=�=�I��M�U�U��M�M�4����!��+��2��N�� �s������ A:�AA5�/A:�5A:c������������������������U�R�������������������$�!�[���������a2�� �U�R������������������U�R������������������5�������5������U�l����������U�R�������������������$�f�=�f)zf A map of extra to its list of (direct) requirements for this distribution, including the null extra. )�_Distribution__dep_mapra���_filter_extras�_build_dep_mapr����s��� r!����_dep_map�Distribution._dep_map� ��sH������ H��>�>�!���� H�!�0�0��1D�1D�1F�G�D�N��~�~�� H�s������.A � A c������������������^����[��������[��������SU�5������5�������H���nUnU�R������������������U5������nUR������������������S5������u��p$nU=(�������a"�� �[ ��������U5������=(�������d�� �[��������U5������(�������+�nU(�������a��/�n[ ��������U5������=(�������d�� �SnU�R������������������U/�5������R������������������U5������ �M���� �U�$�)z� Given a mapping of extras to dependencies, strip off environment markers and filter out any dependencies not matching the markers. Nr$��) r���r���r���rR��r����r����r����rh��r���)�dmr���� new_extrard��r����r����fails_markers��� r!���r����Distribution._filter_extras� ��s���������&��r�*�+�E��I��6�6�%�=�D�#(�?�?�3�#7� �I�&�!����v�&�E�o�f�.E�*E�� �����"�9�-�5��I��M�M�)�R�(�/�/��5��,��� r ���c�����������������������0�nS�HP��n[��������U�R������������������U5������5�������H/��u��p4UR������������������U/�5������R������������������[ ��������U5������5������ �M1��� �MR��� �U$�)N)zrequires.txtzdepends.txt)r����� _get_metadatarh��r���r|���)r����r���r��r���rd��s��� r!���r����Distribution._build_dep_map� ��sT������ ��1�D�-�d�.@�.@��.F�G���� � �e�R�(�/�/�0B�4�0H�I�� H��2��� r ���c�����������������������U�R�������������������n/�nUR������������������UR������������������SS5������5������ �U�H!��n�UR������������������U[��������U5���������5������ �M#��� �U$�!�[���������a��n[��������U�<�SU<�35������UeSnAff�=�f)z@List of Requirements needed for this distro if `extras` are usedNr���z has no such extra feature )r���r���r����r����r����rz���)r����r���r����depsrb��rk��s��� r!���rz���Distribution.requires��s|������ �]�]�������B�F�F�4��$�%��C� ����B�z�#��/�0������� ��� �"�9=�s�C����� �s����A� A;�#A6�6A;c������������������^������U�R�������������������R������������������U5������nU$�!�[���������a�� ��gf�=�f)z; Return the path to the given metadata file, if available. z[could not detect])rY��r���r'��r���s��� r!���r����+Distribution._get_metadata_path_for_display��s8������ (���>�>�4�4�T�:�D�������� (�'� (�s������ ,�,c��������������#����p���#� ���U�R������������������U5������(�������a��U�R������������������U5�������S�h��v�N� �g�g��N7fr#���)r%��r,��r���s��� r!���r����Distribution._get_metadata!��s2�����������T�"�"��.�.�t�4�4�4��#�4�s����+6�4�6c������������������R�����U�R������������������U�R������������������5������n[��������U5������nU$�r#���)r���r���rT��)r����rD��r����s��� r!���r����Distribution._get_version%��s%�������"�"�4�=�=�1��$�U�+���r ���c����������������������Uc��[���������R������������������nU�R������������������XS9 �U[���������R������������������L�aO��[��������U�R������������������5������ �U�R������������������S5�������H$��nU[���������R������������������;���d��M��[��������U5������ �M&��� �gg)z>Ensure distribution is importable on `path` (default=sys.path)Nr����namespace_packages.txt)rS���r����r���r����r���r���r����rj���)r����r����r���pkgs��� r!����activate�Distribution.activate+��sf�������<��8�8�D����t��-��3�8�8��$�T�]�]�3��)�)�*B�C���#�+�+�%�%�c�*��D��r ���c������������������������[��������U�R������������������5������<�S[��������U�R������������������5������<�SU�R������������������=(�������d�� �[��������<�3nU�R ������������������(�������a��USU�R ������������������-���- ��nU$�)z@Return what this distribution's standard .egg filename should berO���z-py)r����r���r����r���r��rT���)r����rA��s��� r!���r����Distribution.egg_name6��sU������� ��)�)�*�����%��O�O�'�x�'� ����=�=���d�m�m�+�+�H��r ���c������������������b�����U�R�������������������(�������a��U�<�SU�R�������������������<�S3$�[��������U�5������$�)Nz (r���)r���r����r����s��� r!���r�����Distribution.__repr__B��s"�������=�=� $�d�m�m�4�4��t�9�r ���c������������������~������[��������U�SS�5������nU=(�������d�� �SnU�R������������������<�SU<�3$�!�[���������a�� �S�n�N,f�=�f)Nr����z[unknown version]r����)r����rX���r���)r����r����s��� r!���r�����Distribution.__str__H��sI������ ��d�I�t�4�G���0�0���+�+�W�5�5����� ��G� �s���� -��<�<c������������������p�����UR������������������S5������(�������a��[��������U5������e[��������U�R������������������U5������$�)zADelegate all unrecognized public attributes to .metadata providerr����)r��ra��r����rY��)r����r7��s��� r!����__getattr__�Distribution.__getattr__P��s-�������?�?�3��� ��&�&��t�~�~�t�,�,r ���c���������������������>��[��������[��������[��������[��������U�]��5�������5������[��������S�U�R ������������������R ������������������5��������5�������5������-��5������$�)Nc��������������3����R���#� ���U�H��oR������������������S�5������(�������a��M��Uv�� �M ��� �g7f�r����N)r��)rt��r7��s��� r!���ru���'Distribution.__dir__.<locals>.<genexpr>Y��s��������X�#;�4�?�?�SV�CW�$�$�#;�s����'� ')r���r���r���rt����__dir__rY��)r����r����s��� �r!���r����Distribution.__dir__V��sC����������l�D�1�3�4��X�4�>�>�#9�#9�#;�X�X� Y� �� r ���c������������������x�����U�R�������������������"�[��������U5������[��������R������������������R ������������������U5������U40�UD6$�r#���)r���r���r����r����r���)r\��rA��r}��r*���s��� r!���r����Distribution.from_filename\��s8������� � ��h�'����)9�)9�(�)C�X� �QS� �� r ���c����������������������[��������U�R������������������[��������R������������������R������������������5������(�������a��U�R ������������������<�SU�R������������������<�3nOU�R ������������������<�SU�R������������������<�3n[��������R������������������U5������$�)z?Return a ``Requirement`` that matches this distribution exactlyz==z===)r����r���r���r����rV��r���ru���r��)r����r���s��� r!���r����Distribution.as_requirementb��s^�������d�)�)�9�+<�+<�+D�+D�E�E�#�0�0�$�2E�2E�F�D� $� 1� 1�4�3F�3F�G�D�� � ��&�&r ���c������������������l�����U�R������������������X5������nUc��[��������SX4<�S35������eUR������������������5�������$�)z=Return the `name` entry point of `group` or raise ImportErrorzEntry point z not found)rb���rZ��r��)r����rW���r��rF��s��� r!���r`����Distribution.load_entry_pointk��s3������ � � �� -�� �:��U�M�K�L�L��w�w�y�r ���c������������������������U�R�������������������nUb��UR������������������U0�5������$�U$�!�[���������a.�� �[��������R������������������U�R ������������������S5������U�5������=o l����������NNf�=�f)r��zentry_points.txt)�_ep_mapra��rv���rL��r���r����)r����rW����ep_maps��� r!���ra����Distribution.get_entry_mapr��sg������ ��\�\�F� ����:�:�e�R�(�(�� �� ��� �$.�$8�$8��"�"�#5�6��%�� �F�\� �s����%��5A�Ac������������������B�����U�R������������������U5������R������������������U5������$�r!��)ra���r����rw��s��� r!���rb����Distribution.get_entry_info~��s�������!�!�%�(�,�,�T�2�2r ���c����������������������U=(�������d�� �U�R�������������������nU(�������d��g[��������U5������n[��������R������������������R ������������������U5������nU�Vs/�sH��of=(�������a�� �[��������U5������=(�������d�� �UPM!��� �nn[��������U5�������H���u��phX�:X��a��U(�������a�� �O� �gX�:X��d��M��U�R������������������[��������:X��d��M2��U(�������d ��XGUS�;���a�� �gU[��������R������������������L�a��U�R������������������5������� �UR������������������Xb5������ �UR������������������Xd5������ � �OQ� �U[��������R������������������L�a��U�R������������������5������� �U(�������a��UR������������������SU5������ �gUR������������������U5������ �g��UR������������������XFS-���5������n Xy �X �U nM��s �snf�!�[���������a�� ��gf�=�f)ad��Ensure self.location is on path If replace=False (default): - If location is already in path anywhere, do nothing. - Else: - If it's an egg and its parent directory is on path, insert just ahead of the parent. - Else: add to the end of path. If replace=True: - If location is already on path anywhere (not eggs) or higher priority than its parent (eggs) do nothing. - Else: - If it's an egg and its parent directory is on path, insert just ahead of the parent, removing any lower-priority entries. - Else: add it to the front of path. Nr���r����)r���r���r����r����rs��� enumerater���r����rS����check_version_conflictr���r����r���rX���) r����r�����locr���nloc�bdirr����npathr~���nps ��� r!���r����Distribution.insert_on���sb�����(��"�T�]�]���� ��%���w�w���t�$��<@�A�D�q�,�)�!�,�1��1�D��A� ��'�G�A��|�������$�/�/�X�"=�� �T�1�2�Y�%6���3�8�8�#��/�/�1����A�#����Q�%��#�(�&��s�x�x���+�+�-�����A�s�#�� �����C� ���� ��[�[��1�u�-����I�t�x������=�B��B��� ��� � �s����%E7�E<��< F �F c����������� �������2����U�R�������������������S:X��a��g�[��������R������������������U�R������������������S5������5������n[ ��������U�R ������������������5������nU�R������������������S5�������H���nU[��������R������������������;��d��X1;���d ��U[��������;���a��M(��US;���a��M0��[��������[��������R������������������U���SS�5������nU(�������aA��[ ��������U5������R������������������U5������(�������d ��UR������������������U�R ������������������5������(�������a��M���[��������SU<�SU<�SU�R ������������������<�S 35������ �M���� �g�) N� setuptoolsr���z top_level.txt)� pkg_resourcesr����siterr��zModule z was already imported from z, but z is being added to sys.path)r@���r'���r(���r���r����r���rS���r����r���r����r��r���)r�����nspr����modname�fns��� r!���r����#Distribution.check_version_conflict���s��������8�8�|�#���m�m�D�.�.�/G�H�I���T�]�]�+���)�)�/�:�G��s�{�{�*��>��1�1���A�A������W�-�z�4�@�B���r�"�-�-�c�2�2�b�m�m�D�M�M�6R�6R���")�2�t�}�}�>� ��;r ���c������������������������U�R������������������� �g!�[���������a�� �[��������S[��������U�5������-���5������ ��g[���������a�� ��gf�=�f)NzUnbuilt egg for FT)r����rX���r���r�����SystemErrorr����s��� r!���r����Distribution.has_version���sD������ ��L�L���� ��� ��,�t�D�z�9�:���� �� �s������!>� >�>c����������� �������������SnUR������������������5��������H��nUR������������������U[��������XS5������5������ �M!��� �UR������������������SU�R������������������5������ �U�R������������������"�S0�UD6$�)z@Copy this distribution, substituting in any changed keyword argsz<project_name version py_version platform location precedenceNr}��r���)r ���rh��r����rY��r����)r����r*���r*��r7��s��� r!����clone�Distribution.clone���sP������N���K�K�M�D��M�M�$���D� 9�:��"� � � �j�$�.�.�1��~�~�#��#�#r ���c������������������T�����U�R��������������������Vs/�sH ��o(�������d��M��UPM��� �sn$�s �snf�r#���)r���)r�����deps��� r!���r����Distribution.extras���s ������#�}�}�4�}����}�4�4��4s���� %�%)� __dep_mapr���r���r���rY��rX��r���rT���r���r���r���r#���rJ��r��)3r���r���r���r���r���r���r��r����rU��r���r���ra��r����r���rk��rp��rt��rx��r{��r~��r���r@���r���rg��r����r���rL��r���r���rz��r���r���r���r���r���r����r����r���r���r���r���r`���ra���rb���r���r���r���r���r���r���r���r���s���@r!���rt���rt���C ��sx������?��H���������4�&������*��� ��� �"�,�-�,�-�-�!���������$���$���(���(�2�������� ��� �������(���"5�� +� ��6�-� ��� ��� � '�� �3� B�H�4 �$���5���5r ���rt���c�������������������������\�rS�rSrS�rSrg)�EggInfoDistributioni���c������������������@�����U�R������������������5�������nU(�������a��Xl��������U�$�)a��� Packages installed by distutils (e.g. numpy or scipy), which uses an old safe_version, and so their version numbers can get mangled when converted to filenames (e.g., 1.11.0.dev0+2329eae to 1.11.0.dev0_2329eae). These distributions will not be parsed properly downstream by Distribution and safe_version, so take an extra step and try to get the version number from the metadata file itself instead of the filename. )r���rX��)r����� md_versions��� r!���ra���#EggInfoDistribution._reload_version���s��������&�&�(� ��&�M��r ���)rX��N)r���r���r���r���ra��r���r���r ���r!���r���r������s������r ���r���c��������������������f�����\�rS�rSrSrSr\R������������������"�S5������r\ S�5�������r \ S�5�������rS�rSr g ) �DistInfoDistributioni��zJ Wrap an actual or potential sys.path entry w/metadata, .dist-info style. �METADATAz([\(,])\s*(\d.*?)\s*([,\)])c�������������������������U�R�������������������$�!�[���������a\�� �U�R������������������U�R������������������5������n[��������R ������������������R ������������������5�������R������������������U5������U�l���������U�R�������������������s�$�f�=�f)zParse and cache metadata)� _pkg_infora��r)��r����email�parser�Parser�parsestr)r����r}��s��� r!����_parsed_pkg_info�%DistInfoDistribution._parsed_pkg_info��s]������ "��>�>�!���� "��(�(����7�H�"�\�\�0�0�2�;�;�H�E�D�N��>�>�!� "�s������A#A4�3A4c������������������~������U�R�������������������$�!�[���������a$�� �U�R������������������5�������U�l���������U�R�������������������s�$�f�=�fr#���)�_DistInfoDistribution__dep_mapra���_compute_dependenciesr����s��� r!���r����DistInfoDistribution._dep_map��s:������ "��>�>�!���� "�!�7�7�9�D�N��>�>�!� "�s������+<�<c��������������������^��S/�0=ol���������/�mU�R������������������R������������������S5������=(�������d�� �/��H��nTR������������������[ ��������U5������5������ �M��� �U4S�jn[ ��������R������������������"�[��������R������������������U"�S5������5������5������nUS���R������������������U5������ �U�R������������������R������������������S5������=(�������d�� �/��H=��n[��������UR������������������5�������5������nU"�U5�������Vs/�sH��owU;��d��M ��UPM��� �snX'���M?��� �U$�s �snf�)z+Recompute this distribution's dependencies.Nz Requires-Distc��������������3�������>#� ���T�H<��nUR�������������������(�������a$��UR�������������������R������������������SU�05������(�������d��M8��Uv�� �M>��� �g�7f)Nr���r���)r���r����rd��s��� �r!����reqs_for_extra�BDistInfoDistribution._compute_dependencies.<locals>.reqs_for_extra0��s5������������z�z�S�Z�Z�%8�%8�'�5�9I�%J�%J��I���s ����7A� AzProvides-Extra)r���r����get_allr���r|���r����MappingProxyTyper'���r(���r����r_��) r����r���r����r����commonr����s_extra�rrd��s ��� @r!���r����*DistInfoDistribution._compute_dependencies'��s��������#�R�j�(��^����(�(�0�0��A�G�R�G�C��K�K�*�3�/�0��H� � ��'�'�� � �n�T�6J�(K�L�� �4�������*�*�2�2�3C�D�J��J�E� �����/�G�&4�U�&;�O�&;����1�&;�O�B�K��K��� ���Ps����&D�2D)r���r���N)r���r���r���r���r���r���rS��r����EQEQr����r���r���r���r���r���r ���r!���r���r�����sH������� ��H� �:�:�4�5�D� �"���"���"���"�r ���r���)r��r���r���c�����������������������Sn[��������5�������n�[��������R������������������"�U5������R������������������UL�a*��US- ��n[��������R������������������"�U5������R������������������UL�a��M*��[ ��������R������������������"�U�SUS-���0UD6 �g�!�[���������a�� ��N(f�=�f)Nr����r���)r$���rS���r��r��rX���r7��r8��)rI���r*���r0��r1���s��� r!���r���r���F��s~������ �E�� �A� ���m�m�E�"�,�,��1��Q�J�E���m�m�E�"�,�,��1�� �M�M��4�U�Q�Y�4��4����� �� �s����AA7��7 B�Bc������������������b�����[��������[��������[��������[��������[��������[ ��������U�5������5������5������5������$�)z� Yield ``Requirement`` objects for each specification in `strs`. `strs` must be a string, or a (possibly-nested) iterable thereof. )r���ru���r ���r���r���)�strss��� r!���r|���r|���S��s#��������{�-�c�,��D�@Q�.R�S�T�Tr ���c�������������������������\�rS�rSrSrSrg)�RequirementParseErrori\��z,Compatibility wrapper for InvalidRequirementr���Nr���r���r ���r!���r ��r ��\��s������2r ���r ��c��������������������V���^���\�rS�rSrU�4S�jrS�rS�rS�rS�rS�r \ S�5�������rS rU�=r $�) ru���i`��c������������������p��>��[���������[��������U�]��U5������ �U�R������������������U�l��������[��������U�R������������������5������nX"R ������������������5�������sU�l��������U�l��������U�R�������������������Vs/�sH��o3R������������������UR������������������4PM��� �snU�l��������[��������[��������[��������U�R ������������������5������5������U�l��������U�R������������������U�R"������������������U�R������������������[%��������U�R ������������������5������U�R&������������������(�������a��[)��������U�R&������������������5������OS4U�l��������[-��������U�R*������������������5������U�l��������gs �snf�)z>DO NOT CALL THIS UNDOCUMENTED METHOD; use Requirement.parse()!N)r���ru���rU��r���unsafe_namer~���r���r���r@���� specifierr���r����r@��r ��r���r����r����url� frozensetr���r�����hashCmprj���_Requirement__hash)r�����requirement_stringr���r���r����s��� �r!���rU���Requirement.__init__a��s�������� �k�4�)�*<�=��9�9��� ����+��&2�4F�4F�4H�#���4�8�@D���O���}�}�d�l�l�3��O�� ��C� �D�K�K�8�9����H�H��H�H��N�N��d�k�k�"� $���C������ �����4�<�<�(�����Ps����% D3c������������������b�����[��������U[��������5������=(�������a�� �U�R������������������UR������������������:H��$�r#���)r����ru���r��ro��s��� r!���r~���Requirement.__eq__r��s!�������%��-�O�$�,�,�%�-�-�2O�Or ���c�����������������������X:X��+�$�r#���r���ro��s��� r!���r����Requirement.__ne__u��r���r ���c�����������������������[��������U[��������5������(�������a'��UR������������������U�R������������������:w��a��gUR������������������nU�R������������������R������������������USS9$�)NFT)�prereleases)r����rt���r@���r����r���contains)r����r~��s��� r!���rl���Requirement.__contains__x��sG�������d�L�)�)��x�x�4�8�8�#���<�<�D� ��~�~�&�&�t��&�>�>r ���c�����������������������U�R�������������������$�r#���)r��r����s��� r!���rk���Requirement.__hash__���s�������{�{�r ���c�����������������������S[��������U�5������-��$�)NzRequirement.parse(%r)r)��r����s��� r!���r�����Requirement.__repr__���s������&��T��2�2r ���c������������������ �����[��������U�5������u��nU$�r#���)r|���)r&��r����s��� r!���r���Requirement.parse���s������#�A�&���� r ���)�__hashr���r��r@���r���r@��r��)r���r���r���r���rU��r~��r���rl��rk��r����rL��r��r���r���r���s���@r!���ru���ru���`��s6�������)�"P�!� ?��3������r ���ru���c������������������.�����[���������U�;��a ��U�[���������4-���$�U�$�)z> Ensure object appears in the mro even for old-style classes. )�object)�classess��� r!����_always_objectr*�����s������ ��W���&��"�"��Nr ���c�����������������������[��������[��������R������������������"�[��������US[ ��������U5������5������5������5������nU�H��nX0;���d��M ��X���s �$�� �g)z2Return an adapter factory for `ob` from `registry`r����N)r*���inspect�getmror����r���)�registryrA���r����ts��� r!���r����r�������s9�������7�>�>�'�"�k�4��8�*L�M�N�E� ���=��;���r ���c������������������l�����[���������R������������������R������������������U�5������n[���������R������������������"�USS9 �g)z1Ensure that the parent directory of `path` existsT)�exist_okN)r����r����rs���makedirs)r����rs��s��� r!���r����r�������s"�������g�g�o�o�d�#�G��K�K��$�'r ���c������������������������[���������(�������d��[��������S5������e[��������U�5������u��pU(�������a2��U(�������a*��[��������U5������(�������d��[ ��������U5������ ��[��������US5������ �gggg!�[���������a�� ��gf�=�f)z/Sandbox-bypassing version of ensure_directory()z*"os.mkdir" not supported on this platform.i���N)rJ��rK��r ���r ���r&��r����FileExistsError)r����rs��rA��s��� r!���r&��r&�����s`�������=��B�C�C��d���G��8�E�'�N�N� ��)� ��'�5�!��%3�8�w����� �� �s����A�� A+�*A+c��������������#����(��#� ���Sn/�n[��������U�5�������Hv��nUR������������������S5������(�������aL��UR������������������S5������(�������a*��U(�������d��U(�������a��X4v�� �USS�R������������������5�������n/�nMY��[ ��������SU5������eUR������������������U5������ �Mx��� �X4v�� �g7f)a_��Split a string or iterable thereof into (section, content) pairs Each ``section`` is a stripped version of the section header ("[section]") and each ``content`` is a list of stripped lines excluding blank lines and comment-only lines. If there are any such lines before the first section header, they're returned in a first ``section`` of ``None``. N�[�]r����r����zInvalid section heading)r���r��r���r_��rX���r����)r&���section�contentr���s��� r!���r����r�������s�����������G��G��A����?�?�3����}�}�S�!�!��g�!�*�*��q��*�*�*�,���� �!:�D�A�A��N�N�4� ����� ��s����BBc������������������������[���������R������������������n�[��������[���������l��������[��������R������������������"�U�0�UD6U[���������l��������$�!�U[���������l��������f�=�fr#���)r����r����os_open�tempfile�mkstemp)rI���r*����old_opens��� r!���rM��rM�����s;�������w�w�H���������,��,������(���s����$A�� Ar���)�categoryr����c�����������������������U�"�U0�UD6 �U�$�r#���r���)rZ��rI���r,��s��� r!����_call_asiderA�����s�������t��v���Hr ���c������������������l���^��[��������5�������mTU�S'���U�R������������������U4S�j[��������T5�������5�������5������ �g)z=Set up global resource manager (deliberately not state-saved)�_managerc��������������3����n���>#� ���U�H+��nUR������������������S�5������(�������a��M��U[��������TU5������4v�� �M-��� �g7fr���)r��r����)rt��r��r:��s��� �r!���ru���_initialize.<locals>.<genexpr>���s2���������� � �D����s�#�� '��w�w��%�&� �s����5�5N)rs���r%���rH��)r1���r:��s��� @r!����_initializerF�����s3����������G��A�j�M��H�H�� ���L� ��r ���c�������������������������\�rS�rSrSrSrg)r����i���z� Base class for warning about deprecations in ``pkg_resources`` This class is not derived from ``DeprecationWarning``, and as such is visible by default. r���Nr���r���r ���r!���r����r�������s������r ���r����c�����������������������[���������R������������������5�������n�[��������SU�S9 �U�R������������������nU�R������������������nU�R ������������������nU�R������������������nUn[��������S�U��5�������5������ �U"�S�SS9 �/�U�l��������[��������[��������U�R������������������[��������R������������������5������5������ �[��������5�������R������������������[!��������5�������5������ �g)a%�� Prepare the master working set and make the ``require()`` API available. This function has explicit effects on the global state of pkg_resources. It is intended to be invoked once at the initialization of this module. Invocation by other packages is unsupported and done at their own risk. r(��)rk���c��������������3����<���#� ���U�H��oR������������������S�S9v�� �M��� �g7f)Fr���N�r���)rt��r����s��� r!���ru���1_initialize_master_working_set.<locals>.<genexpr> ��s�������� ?�;�4�-�-��-� &�;�s����c������������������ �����U�R������������������SS9$�)NTr���rJ��r��s��� r!���rJ����0_initialize_master_working_set.<locals>.<lambda> ��s������T�]�]�4�]�0r ���F)r���N)rr���r^��r+���r\���rc���r���r]���r ��rN��r���r���rS��rS���r����r$���r%���r����)rk���r\���rc���rl���r]���r����s��� r!����_initialize_master_working_setrN�����s���������*�*�,�K��8��5��!�!�G�#�5�5��)�3�3���'�'�J��H� � � ?�;� ?�?��0�����K����[� "� "�C�H�H� -�.��I���V�X�r ���r#���rK��)�r���rS���r����r{��r@��rS��r���r��r���r7��r3��r1���pkgutilr���rT���r���r�����email.parserr���r���r<��r��r,��r���r���r���r���r���rZ���impr4��� NameErrorrK��r���r���r���r���rJ��r���r;���os.pathr ���r ����importlib.machinery� machineryr���r���� pkg_resources.extern.jaraco.textr���r���r ����pkg_resources.externr���r���r�����version_info�RuntimeErrorr\���rk���rl����resources_streamro����resource_dirre���rn���ri���rd���rc���rg���rf���rh���r���r���r���r8��r���r����Ir[���RuntimeWarningr���r����rV��r}���r&���r+���r4���r7���r<���rB���rD���rF���� _sget_none� _sset_noner[����__all__r'��rw���rx���r����ry���rz���r����r����r��r����r����r����r����r����r����r^���rV���r����rP���rQ���r��r����r����r]���r����r_���r`���ra���rb���r����r����rr���r'���r���rq���r����r{���rs���rp���r~���r���rb��r^��r����r����r����r����r����r(��r���r����r����r���r����r����r��r��r����r���r����r����r����r����rm���r���r���r���r���r���r���r���r���r���r����r���� FileFinderr����r���r���rj���r����r��r ��r����r ��r���r���r��r���r���rR���r���VERBOSE� IGNORECASEr`��rv���rT��rt���r���r���r_��r���r|���r����InvalidRequirementr ��ru���r*��r����r����r&��r����rM���filterwarningsrA��r$���rF���Warningr����rN��r���r ���r!����<module>rg�����s������&��� �� ���� ���������������������������������� ������ ��� �� ���(�(��M� ��� ��5��� � �����.��*�� �3��4�� �6��7�� �8��9�� �3��4�� �1��2����f�� �8� 9�9����������������������������������������������� � � �B��� ���:�:�M�r�t�t�T����N�����!�!�)�)� ����3� ���� ���-��,� �Z��0S��l9�i��9�0�o��0�@ ��� ��?���:I�?��I������>�>�3�+�+�,��������� ���8� >���� � N��2��Z�Z� ;�<����j�j�!C�D���!��.�b6�����@� 7� >� L��L�.N�)��N�8X&��X&�v2���2�(M��M�b�%��� �l�� � n��n�d�/� 6�"�2@�9�"��$�@ ��@ �F��V�\��*�&��,���(2�k��2�<�������� �L�� �"�����4���6#�<��#�*aM�+��aM�H��Y�*�*�K��8�&4�=��&4�R!�?��!�2�+�����v�R��0�?�-�J�4�� �%�%�'7��8�������%�%�(�& �� � � �$� !���7�M�"�"��G�'�'��6���#�.�.���=���v�2��.���v�2��.�;�$"�J#�D(�V � ���7�M�"�"��w�2�2�O�D���9�0�0�/��B���.�9�9�?��K����6�?��3�Y� O��(*���7���E�� ���O� $� *� *�� �:�:����J�J��������%�� �A��A�H/�s5��s5�l �,���&0�<��0�h� �$�&���� 5�U�3�I�2�2�E�E��3�-�)�(�(�4�4��-�`��(� ��4�� ������=���F� � � ��)���� ���W���� �!�� �!��[f������������O��������M����������sH����*U<��/V ��8V��V+��< V � V � V�V�V(�'V(�+V7�6V7