403Webshell
Server IP : 74.208.236.16  /  Your IP : 216.73.216.220
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : u102440577 ( 7172810)
PHP Version : 8.4.26
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /kunden/lib/python3/dist-packages/setuptools/command/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /kunden/lib/python3/dist-packages/setuptools/command/__pycache__/easy_install.cpython-313.pyc
�

�5hu`��x�SrSSKJr SSKrSSKrSSKrSSKrSSKrSSKrSSK	r	SSK
r
SSKrSSKrSSK
r
SSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKJr SSKJr SSKJr SSKJrJrJr SSKJr SSK r SS	K J!r!J"r"J#r#J$r$J%r%J&r&J'r'J(r(J)r)J*r*J+r+J,r,J-r- SS
K.J/r/ SSK0J1r1 SSK2J3r3J4r4J5r5 SS
K6J7r7J8r8J9r9 SSK:J;r; SSK<J=r=J>r> SSK?J@r@ SSKAJBrB SSKCJDrEJFrG SSKHJIrIJJrJ SSKKJLrLJMrM SSKNJOrO SSKPJQrQ SSKRJSrSJTrTJUrUJVrV SSKWJXrXJYrYJZrZ \(aSSK[J\r\ \R�"S\ R�S9 /SQr_Sr`SraS rbS!rc"S"S#\/5rdS$reS%rfS&rgS'rhS(ri"S)S*\%5rj"S+S,\j5rk\R�R�S-S.5S/:Xa\krjS0rnS1roS2rpSQS3jrqS4rrS5rsS6\R�;a\sruOS7ruSRS8jrvS9rwS:rxS;ry"S<S=\S>S?9rz"S@SA\{5r|\|R�5r~"SBSC\|5r"SDSE5r�"SFSG\�5r�"SHSI\�5r�SJr�SKr�SLr�SMr�SSSNjr�"SOSP\=5r�g)Ta)
Easy Install
------------

A tool for doing automatic download/extract/build of distutils-based Python
packages.  For detailed documentation, see the accompanying EasyInstall.txt
file, or visit the `EasyInstall home page`__.

__ https://setuptools.pypa.io/en/latest/deprecated/easy_install.html

�)�annotationsN)�Iterable)�glob)�get_path)�
TYPE_CHECKING�NoReturn�	TypedDict)�yield_lines)
�DEVELOP_DIST�Distribution�DistributionNotFound�EggMetadata�Environment�PathMetadata�Requirement�VersionConflict�
WorkingSet�find_distributions�get_distribution�normalize_path�resource_string)�Command)�unpack_archive)�	bdist_egg�egg_info�setopt)�
URL_SCHEME�PackageIndex�parse_requirement_arg)�	run_setup)�SetuptoolsDeprecationWarning�SetuptoolsWarning)�Wheel�)�ensure_directory)�attempt_chmod_verbose�rmtree)�py39�py312)�dir_util�log)�install)�
first_line_re)�DistutilsArgError�DistutilsError�DistutilsOptionError�DistutilsPlatformError)�convert_path�get_platform�
subst_vars)�Self�default)�category)�easy_install�PthDistributions�extract_wininst_cfg�get_exe_prefixesc�4�[R"S5S:H$)N�P�)�struct�calcsize���A/usr/lib/python3/dist-packages/setuptools/command/easy_install.py�is_64bitrD^s���?�?�3��1�$�$rBc�$�URS5$)N�utf8)�encode��ss rC�	_to_bytesrJbs���8�8�F��rBc�H�URS5 g![a gf=f)N�asciiFT)rG�UnicodeErrorrHs rC�isasciirNfs,���	�����������s��
!�!c�j�[R"U5R5RSS5$)N�
z; )�textwrap�dedent�strip�replace)�texts rC�
_one_linerrVns'���?�?�4� �&�&�(�0�0��t�<�<rBc���\rSrSrSrSrSrSSSSS	S
SSS
SSSSSSSSSSSSSSSSS\RS34/r	/S Qr
S!S"0r\r
S#rSjS$jrS%r\S&5rSjS'jr\S(5r\S)5rS*rS+rSjS,jrSjS-jrSkSlS.jjrS/rSjS0jrSjS1jr\R>"S25RA5r!\R>"S35RA5r"\R>"S45RA5r#SmS5jr$S6r%SjS7jr&SjS8jr'SjS9jr(SjS:jr)\*RVS;5r,SnSoS<jjr-SnSpS=jjr.S>r/SkSqS?jjr0SrS@jr1SAr2SjSBjr3SsSjSCjjr4\SD5r5StSuSEjjr6SvSFjr7SGr8SHr9SIr:SjSJjr;SKr<\R>"SL5RA5r=\R>"SM5r>SwSxSNjjr?\R>"SO5RA5r@SPrASjSQjrBSRrCSSrDSjSTjrESUrFSjSVjrGSjSWjrH\R>"SX5R�5rJSjSYjrK\LR�SSZS[;dS\\LR�;aS]rOOS^rO\P"\P"S_S`Sa9\P"Sb\O-ScSa9\P"Sb\O-ScSa9\P"Sd\O-S`Sa9Se9rQ\P"SfSgSa9rRShrSSirTg)yr8�rz'Manage a download/build/install processz Find/get/install Python packagesT)zprefix=Nzinstallation prefix)�zip-ok�zzinstall package as a zipfile)�
multi-version�mz%make apps have to require() a version)�upgrade�Uz1force upgrade (searches PyPI for latest versions))zinstall-dir=�dzinstall package to DIR)zscript-dir=rIzinstall scripts to DIR)�exclude-scripts�xzDon't install scripts)�always-copy�az'Copy all needed packages to install dir)z
index-url=�iz base URL of Python Package Index)zfind-links=�fz(additional URL(s) to search for packages)zbuild-directory=�bz/download/extract/build in DIR; keep the results)z	optimize=�Ozlalso compile with optimization: -O1 for "python -O", -O2 for "python -OO", and -O0 to disable [default: -O0])zrecord=Nz3filename in which to record list of installed files)�always-unzip�Zz*don't install as a zipfile, no matter what)z
site-dirs=�Sz)list of directories where .pth files work)�editable�ez+Install specified packages in editable form)�no-deps�Nzdon't install dependencies)zallow-hosts=�Hz$pattern(s) that hostnames must match)�local-snapshots-ok�lz(allow building eggs from local checkouts)�versionNz"print version information and exit)zinstall-layout=Nz1installation layout to choose (known values: deb))z"force-installation-into-system-dir�0zforce installation into /usr)z
no-find-linksNz9Don't load find-links defined in packages being installed�userNzinstall in user site-package '�')rYr[r`r]rbrkrmrpz4force-installation-into-system-dirlocal-snapshots-okrrrtrhrYc�N�[R5 SUlS=UlUlS=Ul=UlUlSUlSUl	SUl
SUlS=UlUl
S=Ul=UlUlS=Ul=UlUlS=Ul=UlUlSUlSUlSUlSUlSUlSUlSUlSUlSUl[@RBUl"[@RFUl$SUl%SUl&S=Ul'Ul(SUl)0Ul*SUl+SUl,SUl-SUl.UR^R`Ul0UR^RcXR^ReS55 g)NFr8)3�EasyInstallDeprecationWarning�emitrt�zip_ok�local_snapshots_ok�install_dir�
script_dir�exclude_scripts�	index_url�
find_links�build_directory�args�optimize�recordr]�always_copy�
multi_versionrk�no_deps�allow_hosts�root�prefix�	no_reportrr�install_purelib�install_platlib�install_headers�install_lib�install_scripts�install_data�install_base�install_platbase�site�	USER_BASE�install_userbase�	USER_SITE�install_usersite�
no_find_links�
package_index�pth_file�always_copy_from�	site_dirs�installed_projects�install_layout�"force_installation_into_system_dir�	multiarch�_dry_run�distribution�verbose�_set_command_options�get_option_dict��selfs rC�initialize_options�easy_install.initialize_options�s���%�*�*�,���	�04�4���d�-�DH�H���H�4�?�T�-A�������#�����	�&*�*��
���?C�C���C�t�'�$�*<�:>�>��
�>���t�'7�37�7��	�7�D�K�$�.����#���#���#������#��� ��� ��� $��� $����� $�����!���"���04�4��
��-����"$���"���26��/������
��(�(�0�0������.�.��#�#�3�3�N�C�	
rBc�T�SU5n[[URU55 g)Nc3�# �UHQn[RRU5(d&[RRU5(dMMUv� MS g7f�N)�os�path�exists�islink)�.0�filenames  rC�	<genexpr>�/easy_install.delete_blockers.<locals>.<genexpr>�s;���
�$���w�w�~�~�h�'�'�2�7�7�>�>�(�+C�
�H�$�s�AA�	A)�list�map�_delete_path)r��blockers�extant_blockerss   rC�delete_blockers�easy_install.delete_blockers�s(��
�$�
��
	
�S��"�"�O�
4�5rBc�4�[R"SU5 UR(ag[RRU5=(a$ [RR
U5(+nU(a[O[RnU"U5 g)NzDeleting %s)	r+�info�dry_runr�r��isdirr��_rmtree�unlink)r�r��is_tree�removers    rCr��easy_install._delete_path�sU�������%��<�<���'�'�-�-��%�B�b�g�g�n�n�T�.B�*B��$�'�"�)�)����
rBc	���[RRS[RR3n[	S5n[SURSURSUS35 [e)zD
Render the Setuptools version and installation details, then exit.
�.�
setuptoolszsetuptools z from z	 (Python �))	�sys�version_info�major�minorr�printrr�location�
SystemExit)�ver�dists  rC�_render_version�easy_install._render_version�sc��
�!�!�'�'�(��#�*:�*:�*@�*@�)A�B����-��
��D�L�L�>���
�
��i��u�A�N�O��rBc��UR=(a UR5 [RR5Sn[	[
R"55UlURRURR5URR5URR5U[RRS[RR3[RR[RR3URSURS[![SS5[![SS5S	.
5 ["R$"[&5 URR[(R*"5R-5[(R*"5S
.5 SSS5 URR/S[![SS5R1SS55 UR2URS
'UR4URS'UR6(a+[8R:(d[<R>"S5 URA5 URC5 URE5 URF(azURFR-5S;a[IS5eURFR-5Ul#[RSSS:�a[
RJ"S5Ul&UROSSSS5 URPcURRUl(URTcSUl*URWSS5 URWSS5 UR6(a3URX(a"URXUl)URZUl(UR\S:XaUR^(d[IS5eURWS S!5 [a5Ul1URbReURgURh55 URj(dURm5 [nRp"S"S#5nURr=(d UUl9URbSSUl:URR[wURP54H0nX0Rt;dMURtRySU5 M2 URzb9URzRS$5Vs/sHoDR}5PM nnOS%/nUR~c*UR�URrURtUS&9Ul?[�URt[R�-5UlCUR�b?[�UR�[�5(aUR�R5UlDO/UlDUR�(a6UR~R�URt[R�-5 URT(d%UR~R�UR�5 URWSS'5 UR�UR�5UlKURj(aUR�(d[�S(5eUR�(d[�S)5e/UlOg!,(df   GN[=fs snf)*Nrr�r��exec_prefix�abiflags��
platlibdir�lib)
�	dist_name�dist_version�
dist_fullname�
py_version�py_version_short�py_version_nodot�
sys_prefix�sys_exec_prefixr�r�)�implementation_lower�implementation�py_version_nodot_plat�windir�userbase�usersitez6WARNING: The user site-packages directory is disabled.��debz"unknown value for --install-layoutr$)�r��	MULTIARCHr{r|r�r�Fr�)r{r{r��r{r|�/usrz�installation into /usr

Trying to install into the system managed parts of the file system. Please
consider to install to another location, or use the option
--force-installation-into-system-dir to overwrite this warning.
r,)r�r��__EASYINSTALL_INDEXzhttps://pypi.org/simple/�,�*)�search_path�hosts)r�r�z9Must specify a build directory (-b) when using --editablez:No urls, filenames, or requirements specified (see --help))Prrr�r��split�dict�	sysconfig�get_config_vars�config_vars�updater��get_name�get_version�get_fullnamer�r�r��getattr�
contextlib�suppress�AttributeErrorr,�_get_implementation�lower�
setdefaultrTr�r�rtr��ENABLE_USER_SITEr+�warn�_fix_install_dir_for_user_site�expand_basedirs�expand_dirsr�r0�get_config_varr��_expandr|r{r��set_undefined_optionsr�r�r�r��
get_site_dirs�
all_site_dirs�extend�_process_site_dirsr�rk�check_site_dirr��getenvr~�shadow_pathr�insertr�rSr��create_indexrr��local_indexr�
isinstance�strrz�scan_egg_links�add_find_links�_validate_optimizer�r�r.r��outputs)r�r��
default_index�	path_itemrIr�s      rC�finalize_options�easy_install.finalize_options�s������/��-�-�/���[�[�&�&�(��+�
��	� 9� 9� ;�<���������*�*�3�3�5� �-�-�9�9�;�!�.�.�;�;�=�$�#&�#3�#3�#9�#9�":�!�C�<L�<L�<R�<R�;S� T�#&�#3�#3�#9�#9�":�3�;K�;K�;Q�;Q�:R� S��*�*�8�4�#�/�/�
�>���Z��4�!�#�|�U�;�
!
�
	��
 �
 ��
0����#�#�(/�(C�(C�(E�(K�(K�(M�")�"=�"=�"?�%�
�1�	
���#�#�#��C��2�&�.�.�s�B�7�	
�
(,�'<�'<�����$�'+�'<�'<�����$��9�9�T�2�2��H�H�M�N��+�+�-�������������&�&�,�,�.�'�9�*�+O�P�P�"&�"5�"5�";�";�"=�D�������#�v�-�!*�!9�!9�+�!F����������		
��?�?�"�"�.�.�D�O����%�!&�D��
	
�"�"�=�2P�Q��"�"�#4�6S�T��9�9��-�-�#�3�3�D��"�2�2�D�O��;�;�&� ��)P�)P�&�(��
�	
�"�"�9�.B�C�*�_������!�!�$�"9�"9�$�.�.�"I�J��}�}����!��	�	�"7�9S�T�
����8�=����-�-�a�0����)�)�>�$�/�/�+J�J�I�� 0� 0�0�� � �'�'��9�5�K����'�(,�(8�(8�(>�(>�s�(C�D�(C�1�W�W�Y�(C�E�D�E��E�E����%�!%�!2�!2���� �,�,��"3�"�D��
'�t�'7�'7�#�(�(�'B�C����?�?�&��$�/�/�3�/�/�"&�/�/�"7�"7�"9���� �D�O��"�"����-�-�d�.>�.>����.I�J��!�!����-�-�d�o�o�>��"�"�=�2J�K��/�/��
�
�>��
��=�=��!5�!5�#�K��
��y�y�#�L��
�#%���a1�
0��`Es�A\8�$]
�8
]c#��# �Ucg[[[R5nUR	S5Vs/sH0n[
RR
UR55PM2 nnUHjn[
RRU5(d[R"SU5 M@[U5U;a[US-5e[U5v� Ml gs snf7f)Nr�z"%s (in --site-dirs) does not existz$ (in --site-dirs) is not on sys.path)r�rr�r�r�r��
expanduserrSr�r+rr0)r��normpathrIr_s    rCr�easy_install._process_site_dirss��������~�s�x�x�0��<E�O�O�C�<P�Q�<P�q�R�W�W�'�'����	�2�<P�	�Q��A��7�7�=�=��#�#����=�q�A���"�(�2�*�1�/U�+U�V�V�$�Q�'�'�
��R�s�6C'�7C"�/A8C'c��[U5nU[S5;a[eU$![an[S5UeSnAff=f)Nr�z--optimize must be 0, 1, or 2)�int�range�
ValueErrorr0)�valuerls  rCr�easy_install._validate_optimize�sQ��	O���J�E��E�!�H�$� � �%�
����	O�&�'F�G�Q�N��	O�s� %�
A�;�Ac���UR(dgUR5 URc
Sn[U5eUR=UlUl[RS3nURU5 g)z+
Fix the install_dir if "--user" was used.
Nz$User base directory is not specified�_user)	rt�create_home_pathr�r1r�r�r��name�
select_scheme)r��msg�scheme_names   rCr�+easy_install._fix_install_dir_for_user_site�sj���y�y������� � �(�8�C�(��-�-�48�4I�4I�I���D�1����	��'�����;�'rBc��UH{n[X5nUcM[RS:Xd[RS:Xa[RR	U5n[X0R5n[XU5 M} g)N�posix�nt)r�r�r,r�r r4r��setattr)r��attrs�attr�vals    rC�
_expand_attrs�easy_install._expand_attrs�s_���D��$�%�C����7�7�g�%����D���'�'�,�,�S�1�C� ��&6�&6�7����C�(�
rBc�*�UR/SQ5 g)zFCalls `os.path.expanduser` on install_base, install_platbase and
root.)r�r�r�N�r8r�s rCr�easy_install.expand_basedirs�s��	
���G�HrBc�.�/SQnURU5 g)z+Calls `os.path.expanduser` on install dirs.)r�r�r�r�r�r�Nr;)r��dirss  rCr�easy_install.expand_dirs�s��
��	
���4� rBc��U(a URS[R5 URURR:wa [R
"UR5 URH#nURX R(+5 M% UR(a�[[UR55nUR(a9[UR5n[[U55HnX5USX5'M SSKJn UR%UR&URU4SURS35 UR)5 [R
"URR5 g![R
"URR5 f=f)NzXWARNING: The easy_install command is deprecated and will be removed in a future version.r)�	file_utilz$writing list of installed files to 'ru)�announcer+�WARNr�r��
set_verbosityr�r8r�r�r��sortedrr��lenr%�	distutilsrA�execute�
write_file�warn_deprecated_options)r��show_deprecation�specr�root_len�counterrAs       rC�run�easy_install.run�s;����M�M�;����
�
�<�<�4�,�,�4�4�4����d�l�l�+�	9��	�	���!�!�$�L�L�(8�9�"��{�{��v�d�l�l�3�4���9�9�"�4�9�9�~�H�#(��W��#6��+2�+;�H�I�+F��(�$7�/�����(�(��[�[�'�*�:�4�;�;�-�q�I��

�(�(�*����d�/�/�7�7�8��C���d�/�/�7�7�8�s
�-C9F�,F=c���[R"5n[RRURSU35$![a( [R"S[
R5nN^f=f)z�Return a pseudo-tempname base in the install directory.
This code is intentionally naive; if a malicious party can write to
the target directory you're already in deep doodoo.
rztest-easy-install-)
r��getpid�	Exception�random�randintr��maxsizer��joinr{)r��pids  rC�pseudo_tempname�easy_install.pseudo_tempname�s\��
	1��)�)�+�C��w�w�|�|�D�,�,�0B�3�%�.H�I�I���	1��.�.��C�K�K�0�C�	1�s�A�/A6�5A6c��gr�rAr�s rCrJ�$easy_install.warn_deprecated_options�s��rBc��[UR5n[RR	US5n[RRU5(d[R"U5 XR;nU(d"UR(dUR5nO�UR5S-n[RRU5nU(a[R"U5 [US5R5 [R"U5 U(d]UR(dL[R R#SS5n[$R&"UR(URU5 U(a(UR*c[-X R5UlOSUlUR(a+[RRU5(dSUlXlg![a UR5 GN�f=f![a UR5 GNf=f)z;Verify that self.install_dir is .pth-capable dir, if needed�easy-install.pthz.write-test�wb�
PYTHONPATHr�N)rr{r�r�rWr��makedirs�OSError�cant_write_to_targetrr��check_pth_processingrYr��open�close�environ�getr+r�_easy_install__no_default_msgr�r9)r��instdirr��is_site_dir�testfile�test_exists�
pythonpaths       rCr�easy_install.check_site_dir�s���!��!1�!1�2���7�7�<�<��);�<���w�w�~�~�g�&�&�
,����G�$�
�!3�!3�3���4�#5�#5��3�3�5�K��+�+�-�
�=�H��'�'�.�.��2�K�
,���I�I�h�'��X�t�$�*�*�,��	�	�(�#��4�#5�#5�������b�9�J��H�H�T�*�*�D�,<�,<�j�I���}�}�$� 0��;M�;M� N��
�� �D�M����b�g�g�n�n�X�&>�&>� �D�M�"���E�
,��)�)�+�
,��$�
,��)�)�+�
,�s%�H�A
H&�H#�"H#�&I�IaS
        can't create or remove files in install directory

        The following error occurred while trying to add or remove files in the
        installation directory:

            %s

        The installation directory you specified (via --install-dir, --prefix, or
        the distutils default setting) was:

            %s
        z�
        This directory does not currently exist.  Please create it and try again, or
        choose a different installation directory (using the -d or --install-dir
        option).
        a�
        Perhaps your account does not have write access to this directory?  If the
        installation directory is a system-owned directory, you may need to sign in
        as the administrator or "root" account.  If you do not have administrative
        access to this machine, you may wish to choose a different installation
        directory, preferably one that is listed in your PYTHONPATH environment
        variable.

        For information on other options, you may wish to consult the
        documentation at:

          https://setuptools.pypa.io/en/latest/deprecated/easy_install.html

        Please make the appropriate changes for your system and try again.
        c� �UR[R"5SUR4-n[R
R
UR5(dUSUR--
nOUSUR--
n[U5e)N�rP)
�_easy_install__cant_write_msgr��exc_infor{r�r�r��_easy_install__not_exists_id�_easy_install__access_msgr/)r�r.s  rCrc�!easy_install.cant_write_to_targetDs~���#�#��L�L�N�1�����'
�
��
�w�w�~�~�d�.�.�/�/��4�$�.�.�.�.�C��4�$�+�+�+�+�C��S�!�!rBc���URn[R"SU5 UR5S-nUS-n[R
R
U5n[S5S-nU(a[R"U5 [R
RU5n[R"USS9 [US[RS	9nURUR"S0[!5D65 UR#5 S
n[$R&n[R(S:Xa�[R
R+U5upi[R
R-US5n
U	R/5S
:H=(a [R
R
U
5nU(aU
nSSKJn U"USSS/S5 [R
R
U5(a�[R"SU5 U(aUR#5 [R
R
U5(a[R"U5 [R
R
U5(a[R"U5 ggU(aUR#5 [R
R
U5(a[R"U5 [R
R
U5(a[R"U5 UR8(d[R:"SU5 g!U(aUR#5 [R
R
U5(a[R"U5 [R
R
U5(a[R"U5 ff=f![4a UR75 N�f=f)z@Empirically verify whether .pth files are supported in inst. dirz Checking .pth file support in %s�.pthz.okz�
            import os
            f = open({ok_file!r}, 'w', encoding="utf-8")
            f.write('OK')
            f.close()
            rPT)�exist_ok�w��encodingNr3�pythonw.exe�
python.exer)�spawnz-Ez-c�passz-TEST PASSED: %s appears to support .pth filesz+TEST FAILED: %s does NOT support .pth filesFrA)r{r+r�rYr�r�r�rVr��dirnamerarer)�PTH_ENCODING�write�format�localsrfr��
executabler,r�rWr�distutils.spawnrrbrcr�r)
r�rjr��ok_file�	ok_exists�tmplr�rer��basename�alt�use_altrs
             rCrd�!easy_install.check_pth_processingPs����"�"�����3�W�=��'�'�)�F�2���U�"���G�G�N�N�7�+�	���
��
�	
�%	(���	�	�'�"��g�g�o�o�g�.�G��K�K��$�/��X�s�U�-?�-?�@�A�
(�������/�f�h�/�0����	��� �^�^�
��7�7�d�?�(*���
�
�j�(A�%�G��'�'�,�,�w�
�>�C�&�n�n�.�,�>�V�2�7�7�>�>�RU�CV�G��%(�
�1��z�4��v�6��:��7�7�>�>�'�*�*��H�H�L�g�V����G�G�I��7�7�>�>�'�*�*��I�I�g�&��7�7�>�>�(�+�+��I�I�h�'�,�+���G�G�I��7�7�>�>�'�*�*��I�I�g�&��7�7�>�>�(�+�+��I�I�h�'��!�!��H�H�B�G�L�����G�G�I��7�7�>�>�'�*�*��I�I�g�&��7�7�>�>�(�+�+��I�I�h�'�,��9�	(��%�%�'�	(�s!�*A*O�D0M�BO�O6�5O6c	�"�UR(dmURS5(aWURS5HBnURSU-5(aMURXUR	SU-55 MD URU5 g)z=Write all the scripts for `dist`, unless scripts are excluded�scriptszscripts/N)r}�metadata_isdir�metadata_listdir�install_script�get_metadata�install_wrapper_scripts)r�r��script_names   rC�install_egg_scripts� easy_install.install_egg_scripts�s���#�#��(;�(;�I�(F�(F�#�4�4�Y�?���&�&�z�K�'?�@�@���#�#��t�'8�'8��k�9Q�'R�� @�	
�$�$�T�*rBc�F�[RRU5(ab[R"U5HGup#nUH;nURR[RR
X%55 M= MI gURRU5 gr�)r�r�r��walkr�appendrW)r�r��baser>�filesr�s      rC�
add_output�easy_install.add_output�si��
�7�7�=�=����%'�W�W�T�]�!��E� %�H��L�L�'�'������T�(D�E�!&�&3�
�L�L����%rBc�F�UR(a[SU<S35eg)NzInvalid argument zW: you can't use filenames or URLs with --editable (except via the --find-links option).)rkr.�r�rLs  rC�not_editable�easy_install.not_editable�s.���=�=�#�#�D�8�,H�H��
�rBc� �UR(dg[RR[RR	UR
UR55(a&[UR<SUR
S35eg)Nz already exists in z; can't do a checkout there)rkr�r�r�rWr��keyr.r�s  rC�check_editable�easy_install.check_editable�sh���}�}��
�7�7�>�>�"�'�'�,�,�t�';�';�T�X�X�F�G�G�#��8�8�,�1�$�2F�2F�1G�Gb�c��
�HrBc#�&# �[R"SS9n[U5v� [RRU5=(a
 [
U5 g g![RRU5=(a
 [
U5 f f=f7f)Nz
easy_install-)r�)�tempfile�mkdtemprr�r�r�r�)r��tmpdirs  rC�_tmpdir�easy_install._tmpdir�s\����!�!��9��	7��f�+���G�G�N�N�6�"�6�w�v��6��B�G�G�N�N�6�"�6�w�v��6�s�B�
A�4B�5B�Bc	��UR5n[U[5(d�[U5(aIUR	U5 UR
R
X5nURSXCUS5sSSS5 $[RRU5(a.UR	U5 URSXUS5sSSS5 $[U5nURU5 UR
RUUURURUR (+UR"5nUc'SU<3nUR (aUS-
n[%U5eUR&[(:XaUR+XUS5 UsSSS5 $URXR,X25sSSS5 $!,(df   g=f)NTz)Could not find suitable distribution for z2 (--always-copy skips system and development eggs)�Using)r�rrrr�r��download�install_itemr�r�r�rr��fetch_distributionr]rkr�rr/�
precedencer�process_distributionr�)r�rL�depsr��dlr�r.s       rCr8�easy_install.easy_install�sx��
�\�\�^�v��d�K�0�0��d�#�#��%�%�d�+��+�+�4�4�T�B�B��,�,�T�2�t�T�J�
�^��W�W�^�^�D�)�)��%�%�d�+��,�,�T�4��t�L��^�1��6�D�����%��%�%�8�8�������
�
��$�$�$�� � �
�D��|�A�$��J���#�#��O�O�C�$�S�)�)����L�0��)�)�$�d�G�D��A�^�D�(�(��}�}�f�K�E�^�^�s �A%F<�AF<�B;F<�F<�<
G
c�\�U=(d [UR5nU=(d" [RR	U5U:HnU=(d URS5(+nU=(dS URSL=(a> [RR	[U55[UR5:HnU(a;U(d4URURHnURU:XdM O Sn[R"S[RRU55 U(a.URXU5nUHnURXU5 M O(UR!U5/nURXSUS5 UbUHnXa;dM
Us $ g)N�.eggTz
Processing %srr�)�boolr�r�r�r��endswithr�rr�project_namer�r+r�r��install_eggsr��egg_distribution)r�rLr�r�r��install_neededr��distss        rCr��easy_install.install_item�se��(�A�4��0@�0@�+A��'�N�2�7�7�?�?�8�+D��+N��'�H�x�/@�/@��/H�+H��'�
��!�!��-�
5�������x� 8�9��d�3�3�4�5�	����(�(��):�):�;���=�=�H�,��<�"&������"�'�'�"2�"2�8�"<�=���%�%�d�f�=�E����)�)�$�d�;���*�*�8�4�5�E��%�%�d�!�H�d�G�D������<��K��rBc��[R"X5 g![a2 [RRXR	SS55 gf=f)Nr2�unix)r,�_select_schemer�r-rT)r�r,s  rCr-�easy_install.select_schemesD��	O��"�"�4�.���	O��O�O�)�)�$���W�f�0M�N�	O�s��9A�Ac�^�URU5 URRU5 X RUR;aURRU5 URRU5 UR
U5 X RUR'[R"UR"X/UQ765 URS5(a;UR(d*URRURS55 U(dUR(dgUb2URUR:wa[R "SU5 gUbX!;a$UR#5n[%['U55n[R"SU5 [)/5R+U/URUR,5nUR(dUR6(aDUH>nURUR;dMUR-UR#55 M@ [R"SU5 g![.an[1['U55UeSnAf[2an[1UR555UeSnAff=f)Nzdependency_links.txtzSkipping dependencies for %szProcessing dependencies for %sz'Finished processing dependencies for %s)�
update_pthr��addrr��remover�r�r+r��installation_report�has_metadatar�r�get_metadata_linesr�r�as_requirementrrr�resolver8r
r/r�reportr�)r��requirementr�r�r��distreq�distrosrls        rCr��!easy_install.process_distribution
s��	
����������t�$��#�#�D�H�H�-�-����#�#�D�)������T�"�� � ��&�,0������)�����)�)�+�C�d�C�D����3�4�4�T�=O�=O����-�-��'�'�(>�?�
��D�,�,��
�
$����[�_�_�)D��H�H�3�T�:��
�
 �D�$;��)�)�+�G�%�c�'�l�3�K����1�;�?�	4� ��n�,�,��
�t�/�/��1B�1B��G����t�4�4����8�8�4�#:�#:�:��%�%�d�&9�&9�&;�<� �	���:�K�H��$�	0� ��Q��(�a�/���	4� �����,�!�3��	4�s$�21I!�!
J,�+J�
J,�
J'�'J,c��URbUR(+$URS5(agURS5(dgg)Nznot-zip-safeTzzip-safeF)ryr�)r�r�s  rC�should_unzip�easy_install.should_unzip9sC���;�;�"��{�{�?�"����^�,�,��� � ��,�,��rBc���[RRURUR5n[RRU5(a0Sn[R"XQRURU5 U$[RRU5(aUnO�[RRU5U:Xa[R"U5 [R"U5n[U5S:XaH[RRX6S5n[RRU5(aUn[U5 [R"X45 U$)Nz<%r already exists in %s; build directory %s will not be keptrqr)r�r�rWr�r�r�r+rr�r�r��listdirrFr%�shutil�move)r�rL�
dist_filename�
setup_base�dstr.�contentss       rC�
maybe_move�easy_install.maybe_moveBs����g�g�l�l�4�/�/����:��
�7�7�>�>�#���P�C��H�H�S�(�(�D�$8�$8�*�E���
�7�7�=�=��'�'�&�J��w�w���}�-��;��	�	�-�(��z�z�*�-�H��8�}��!� "�����Z�!�� E�
��7�7�=�=��/�/�!.�J�������J�$��
rBc��UR(ag[R5RU5HnUR"U6 M gr�)r}�ScriptWriter�best�get_args�write_script)r�r�r�s   rCr��$easy_install.install_wrapper_scriptsWs:������ �%�%�'�0�0��6�D����t�$�7rBc��[UR55n[X25nU(a4URU5[	5-n[
R
U5U-nURU[U5S5 g)z/Generate a legacy script wrapper and install itrfN)	rr��is_python_script�_load_templater�r��
get_headerr�rJ)r�r�r��script_text�dev_pathrL�	is_script�bodys        rCr��easy_install.install_script]se���4�&�&�(�)��$�[�>�	���&�&�x�0�6�8�;�D�&�1�1�+�>��E�K����+�y��'=�s�CrBc�r�SnU(aURSS5n[SU5nURS5$)zq
There are a couple of template scripts in the package. This
function loads one of them and prepares it for use.
zscript.tmplz.tmplz (dev).tmplr��utf-8)rTr�decode)r�r,�	raw_bytess   rCr��easy_install._load_templategs9������<�<���7�D�#�L�$�7�	�����(�(rBc	��URUVs/sH-n[RRURU5PM/ sn5 [
R"SXR5 [RRURU5nURU5 UR(ag[5n[U5 [RRU5(a[R"U5 SU;aSOSn[USU-US9n	U	RU5 SSS5 [USU-
5 gs snf!,(df   N#=f)z1Write an executable file to the scripts directoryzInstalling %s script to %sNrfr�rzr{i�)r�r�r�rWr|r+r�r�r��
current_umaskr%r�r�rer��chmod)
r�r�r��moder�ra�target�maskr|res
          rCr��easy_install.write_scriptvs������7?�@�x�!�R�W�W�\�\�$�/�/�1�
-�x�@�	
�	���-�{�O�O�L������d�o�o�{�;��������<�<������� �
�7�7�>�>�&�!�!��I�I�f���$�;�4�G��
�&�#��*�x�
8�A�
�G�G�H��9�
�f�e�d�l�#��#
A�9�
8�s�4E
� E�
Ec��URURURS.nXBR5SSnU"X#5/$![a Of=fUn[
RRU5(a-URS5(d[X#UR5 OC[
RRU5(a[
RRU5nURU5(a&UR(aUbURXU5n[
RR!US5n[
RR#U5(d�[%[
RR!USS55nU(d+['S[
RRU535e[)U5S:�a+['S[
RRU535eUS	nUR*(a'[,R."UR1X55 /$UR3Xv5$)
N)r��.exez.whl����.pyzsetup.pyr�z Couldn't find a setup script in rqzMultiple setup scripts in r)�install_egg�install_exe�
install_wheelr�KeyErrorr�r��isfiler�r�unpack_progressr��abspath�
startswithr�r�rWr�rr/rFrkr+r��report_editable�build_and_install)	r�rLr�r��
installer_map�install_distr��setup_script�setupss	         rCr��easy_install.install_eggs�s����$�$��$�$��&�&�
�
�
	9�(�)<�)<�)>�r�s�)C�D�L�!��7�8�8���	��	���
�
�7�7�>�>�-�(�(��1G�1G��1N�1N��=�$�2F�2F�G�
�W�W�]�]�=�
)�
)�������7�J�
�!�!�&�)�)��$�$�� �����j�I�J��w�w�|�|�J�
�;���w�w�~�~�l�+�+��"�'�'�,�,�z�3�
�C�D�F��$�6�r�w�w���}�7U�6V�W����6�{�Q��$�0�������1O�0P�Q���"�!�9�L��=�=��H�H�T�)�)�$�=�>��I��)�)�,�C�Cs�A�
A�Ac��[RRU5(a+[U[RR	US55nO[[R"U55n[R"XS9$)N�EGG-INFO)�metadata)
r�r�r�rrWr�	zipimport�zipimporterr�
from_filename)r��egg_pathrs   rCr��easy_install.egg_distribution�sV��
�7�7�=�=��"�"�#�H�b�g�g�l�l�8�Z�.P�Q�H�"�9�#8�#8��#B�C�H��)�)�(�F�FrBc	���[RRUR[RR	U55n[RRU5nUR(d[U5 URU5n[RRU5(a%[RRX5(Gd�[RRU5(aC[RRU5(d[R"X0RS9 OI[RRU5(a%UR[R U4SU-5 Sn[RRU5(a:UR#U5(a[$R&SpvO�[$R(SpvOpUR+U5(aUR-U5 UR.SpvO;SnUR#U5(a[$R&SpvO[$R0SpvURUX4US-[RR	U5[RR3U54-5 [5UUS	9 UR9U5 URU5$![6a [5USS	9 ef=f)
N�r��	Removing F�Moving�Copying�
ExtractingTz	 %s to %s��fix_zipimporter_caches)r�r�rWr{r�rr�r%r�r��samefiler�r�r*�remove_treerHr�rr�r��copytreer��mkpath�unpack_and_compile�copy2r��update_dist_cachesrSr�)r�rr��destinationr��new_dist_is_zippedrer\s        rCr�easy_install.install_egg�s"���g�g�l�l�����G�G���X�&�
���g�g�o�o�k�2���|�|��[�)��$�$�X�.���G�G�N�N�;�'�'�B�G�G�,<�,<�X�,S�,S��w�w�}�}�[�)�)�"�'�'�.�.��2M�2M��$�$�[�,�,�G�������,�,�����I�I� �N��+�-��

�%*�"��7�7�=�=��*�*��*�*�6�2�2�%�{�{�H�1�%���	�1��&�&�t�,�,��K�K��,��2�2�L�q�)-�&��*�*�6�2�2�%�{�{�H�1�%�|�|�Y�1������+���_��w�w�'�'��1�2�7�7�?�?�;�3O�P�Q��#��+=��	
����$��$�$�[�1�1���
�"�;�u�M��
�s
�D0K � K6c
���[U5nUc[US35e[SURSS5URSS5[	5S9n[
RRX$R5S-5nXTl	US-n[
RRUS5n[
RRUS	5n[U5 [Xg5UlURX5 [
RRU5(d~[US
SS9n	U	R!S
5 UR#S5HDup�U
S:wdM
U
R%SS5R'5n
U	R!U
SUS35 MF SSS5 [
RRUS5nUR)[*R-U5V
s/sH%n
[
RRX�S5PM' sn
5 [.R0"UUUR2UR4S9 UR7XR5$!,(df   N�=fs sn
f)Nz& is not a valid distutils Windows .exerr,rr)r�rr�platformr�z.tmpr�PKG-INFOrzr�r{zMetadata-Version: 1.0
�target_version�_�-z: rPr�r)r�r�)r:r/rrhr3r�r�rW�egg_namer�r%r�	_provider�
exe_to_eggr�rer��itemsrT�titler�r�r�r�make_zipfiler�r�r)r�r�r��cfgr�r�egg_tmp�	_egg_info�pkg_infre�k�vr|r�s              rCr�easy_install.install_exe�s���!�-�0���;� � �/�!G�H��
�������V�4��G�G�J�	�2�!�^�	
���7�7�<�<��
�
��&�(@�A�� �
��V�#���G�G�L�L��*�5�	��'�'�,�,�y�*�5����!�%�g�9������
�/��w�w�~�~�g�&�&��g�s�W�5�����1�2��I�I�j�1�D�A��,�,��I�I�c�3�/�5�5�7�����1�#�R��s�"�
�.�2�6��W�W�\�\�)�Y�7�
����:F�:O�:O�PT�:U�
�:U�$�B�G�G�L�L��!�W�-�:U�
�	�	������L�L��L�L�		
�����1�1�'6�5��
s�',I�;I�,I�
Ic�^^^
^^�[U5m
/m/m[5mUUU
UU4Sjn[UTU5 /nTH�nUR5R	S5(dM)URS5nUSn[R"US5S-US'[RR"T/UQ76nTRU5 URU5 [R"Xx5 M� URT5 [R"[RRTS5[R"TU55 SH�n	[!5U	(dM[RRTSU	S-5n
[RR#U
5(aMa[%U
S	S
S9nUR'SR[!5U	5S-5 S
S
S
5 M� g
!,(df   M�=f)z;Extract a bdist_wininst to the directories an egg would usec�X>�UR5nT	GHeup4URU5(dMX@[U5S-nURS5n[R
R"T/UQ76nUR5nURS5(dURS5(af[R"US5US'TR[R
RUS5S/5 TRU5 Us $URS5(aLUS:waFTR[R
RUS5S/5 T
RU5 Us $ URS5(d[R"S	U5 g)
N�/�.pyd�.dll���rr��SCRIPTS/rxzWARNING: can't process %s)rrrFr�r�r�rWr�r�strip_moduler��splitextr�r+r)�srcr�rI�old�new�partsr�r6�native_libs�prefixes�
to_compile�	top_levels       �����rC�process�(easy_install.exe_to_egg.<locals>.process5sP����	�	��A�$����<�<��$�$��C��H�J��/�C��I�I�c�N�E��'�'�,�,�w�7��7�C�����B��{�{�6�*�*�b�k�k�&�.A�.A�$-�$:�$:�5��9�$E��b�	�!�
�
�r�w�w�'7�'7��a��'A�!�'D�&E�F�#�*�*�3�/��J����U�+�+��z�0A�!�
�
�r�w�w�'7�'7��a��'A�!�'D�&E�F�"�)�)�#�.��J�%��<�<��'�'����4�c�:�rBr?r>rAr�r)rLrIz.txtrzr�r{rPN)r;�setrrr�r�rrCr�r�rWr��
write_stub�byte_compile�write_safety_flag�analyze_eggr�r�rer�)r�r�r6rM�stubs�resrH�resource�pyfiler,�txtrerIrJrKrLs  `         @@@@rCr1�easy_install.exe_to_egg-s����$�M�2���
����E�	�	�	�*	�}�g�w�7����C��y�y�{�#�#�F�+�+��	�	�#��� ��9��%�2�2�5��9�=��E��b�	������g�6��6���!�!�&�)����V�$��$�$�X�6��	
���*�%��#�#��G�G�L�L��*�-�y�/D�/D�W�e�/T�	
�/�D��x��~�~��g�g�l�l�7�J��v�
�F���w�w�~�~�c�*�*��c�3��9�Q�����	�	�&�(�4�.� 9�D� @�A�:�9�	/�:�9�s�>/G:�:
H		c
��[U5nUR5(de[RR	UR
UR
55n[RRU5nUR(d[U5 [RRU5(aC[RRU5(d[R"X@RS9 OI[RRU5(a%UR[R U4SU-5 URUR"U4S[RR%U5S[RR'U535 [)USS9 UR+U5 UR-U5$![)USS9 f=f)NrrzInstalling z to Fr)r#�
is_compatibler�r�rWr{r/rr�r%r�r�r*r r�rHr��install_as_eggr�r�r%r�r�)r��
wheel_pathr��wheelr&s     rCr�easy_install.install_wheelasS���j�!���"�"�$�$�$�$��g�g�l�l�4�#3�#3�U�^�^�5E�F���g�g�o�o�k�2���|�|��[�)�
�7�7�=�=��%�%�b�g�g�n�n�[�.I�.I�� � ��l�l�C�
�W�W�^�^�K�
(�
(��L�L��	�	����k�)�
�
		J��L�L��$�$���!�"�'�'�"2�"2�:�">�!?�t�B�G�G�O�O�T_�D`�Ca�b�	
�
�{�5�I�����$��$�$�[�1�1��
�{�5�I�s
�AG�Ga(
        Because this distribution was installed --multi-version, before you can
        import modules from this package in an application, you will need to
        'import pkg_resources' and then use a 'require()' call similar to one of
        these examples, in order to select the desired version:

            pkg_resources.require("%(name)s")  # latest installed version
            pkg_resources.require("%(name)s==%(version)s")  # this exact version
            pkg_resources.require("%(name)s>=%(version)s")  # this version or higher
        z�
        Note also that the installation directory must be on sys.path at runtime for
        this to work.  (e.g. by being the application's script directory, by being on
        PYTHONPATH, or by being added to sys.path by your code.)
        c�P�SnUR(aaUR(dPUSUR--
nUR[	[
[R5;aUSUR--
nURnURnURnSnU[5-$)z9Helpful installation message for display to package usersz
%(what)s %(eggloc)s%(extras)srPr�)
r�r��_easy_install__mv_warningr{r�rr�r��_easy_install__id_warningr�r�rrr�)	r��reqr��whatr.�egglocr,rr�extrass	         rCr�� easy_install.installation_report�s���/�����d�n�n��4�$�+�+�+�+�C����s�>�3�8�8�'D�D��t�d�/�/�/�/������� � ���,�,�����V�X�~�rBaR
        Extracted editable version of %(spec)s to %(dirname)s

        If it uses setuptools in its setup script, you can activate it in
        "development" mode by going to that directory and running::

            %(python)s setup.py develop

        See the setuptools documentation for the "develop" command for more info.
        c��[RRU5n[RnSUR
[
5--$)NrP)r�r�r�r�r��_easy_install__editable_msgr�)r�rLrr��pythons     rCr�easy_install.report_editable�s5���'�'�/�/�,�/�������d�)�)�F�H�4�4�4rBc��[RRS[5 [RRS[5 [U5nURS:�a(SURS-
-nURSSU-5 O"URS:aURSS5 UR(aURSS	5 [R"S
U[U5S-SSRU55 [X5 g![a!n[SUR S35UeSnAff=f)
Nzdistutils.command.bdist_eggzdistutils.command.egg_infor$r:rqrr.z-qz-nz
Running %s %s� zSetup script exited with )r��modulesrrrr�r�rr�r+r�rFrWr r�r/r�)r�rr�r�r:s     rCr �easy_install.run_setup�s��������<�i�H������;�X�F��D�z���<�<�!���t�|�|�a�'�(�A��K�K��3��7�#�
�\�\�A�
��K�K��4� ��<�<��K�K��4� �����,�s�:���/B�/D�"E�s�x�x�PT�~�V�	Q��l�)���	Q� �#<�Q�V�V�A�Y�K�!H�I�q�P��	Q�s�D�
D?�D:�:D?c	���SS/n[R"S[RR	U5S9nUR[RR	U55 UR
U5 URXU5 [U/5nUVVs/sH+nXVHnURURU5PM! M- nnnU(d(UR(d[R"SU5 U[U5 [R"UR 5 $s snnf![U5 [R"UR 5 f=f)Nrz
--dist-dirz
egg-dist-tmp-)r��dirz+No eggs found in %s (setup script problem?))r�r�r�r�r��_set_fetcher_optionsr�r rrr�r�r+rr�rDr�)	r�rr�r��dist_dir�all_eggsr�r��eggss	         rCr	�easy_install.build_and_install�s���\�*���#�#�"�������(E�
��	,��%�%�b�g�g�o�o�l�&C�D��K�K��!��N�N�<�T�:�"�H�:�.�H�$��#�C�$�M�D�� � ����
�;�)�<�#�
��
�������F��Q���H�����d�l�l�+����
�H�����d�l�l�+�s�A"D1�2D+�3D1�+D1�1-Ec�*�URRS5R5nSn0nUR5HupVXS;aMUSXE'M [	US9n[
RRUS5n[R"X�5 g)z�
When easy_install is about to run bdist_egg on a source dist, that
source dist might have 'setup_requires' directives, requiring
additional fetching. Ensure the fetcher options given to easy_install
are available to that command as well.
r8)rr�r~r�r�rq)r8z	setup.cfgN)
r�r��copyr2r�r�r�rWr�edit_config)	r�r��ei_opts�fetch_directives�
fetch_optionsr�r7�settings�cfg_filenames	         rCrr�!easy_install._set_fetcher_options�s����#�#�3�3�N�C�H�H�J��
���
��
�
��H�C��*��!$�Q��M��(�
�]�3���w�w�|�|�D�+�6�����<�2rBc�2�URcgURURH�nUR(dURUR:XaM0[R
"SU5 URR
U5 URUR;dM~URR
UR5 M� UR(d�URURR;a[R
"SU5 Oq[R
"SU5 URRU5 URUR;a%URRUR5 UR(agURR5 URS:wag[RRUR S5n[RR#U5(a[R$"U5 ['US[(R*S9nUR-URR/UR5S-5 SSS5 g!,(df   g=f)	Nz&Removing %s from easy-install.pth filez4%s is already the active version in easy-install.pthz"Adding %s to easy-install.pth filer��setuptools.pth�wtr{rP)r�r�r�r�r+r�r�r�pathsr�r�r��saver�r�rWr{r�r�rer)r�r��
make_relative)r�r�r_r�res     rCr��easy_install.update_pth�s����=�=� �����t�x�x�(�A��%�%�!�*�*��
�
�*E���H�H�=�q�A��M�M� � ��#��z�z�T�-�-�-�� � �'�'��
�
�3�)��!�!��}�}��
�
� 3� 3�3����J���
���=�t�D��
�
�!�!�$�'��=�=��(8�(8�8��$�$�+�+�D�M�M�:��<�<���
�
�����8�8�|�#���7�7�<�<�� 0� 0�2B�C��
�7�7�>�>�(�#�#��I�I�h��
�(�D�5�+=�+=�
>�!�
�G�G�D�M�M�/�/��
�
�>��E�F�?�
>�
>�s�8J�
Jc�4�[R"SX5 U$)NzUnpacking %s to %s)r+�debug)r�rEr�s   rCr�easy_install.unpack_progress#s���	�	�&��1��
rBc�^^^�/m/mUUU4Sjn[XU5 TRT5 TR(dBTH;n[R"U5[R
S-S-n[
XE5 M= gg)Nc�b>�URS5(a(URS5(dTRU5 O=URS5(dURS5(aTRU5 TRX5 TR(+=(a U=(d S$)Nr��	EGG-INFO/r@z.so)r�rr�rr�)rEr�r��to_chmodrKs  ���rC�pf�+easy_install.unpack_and_compile.<locals>.pf,s|����|�|�E�"�"�3�>�>�+�+F�+F��!�!�#�&����f�%�%����e�)<�)<�����$�� � ��*��|�|�#�+��3�t�3rBimi�)rrQr�r��stat�ST_MODEr�)r�rr&r�rer�r�rKs`     @@rCr#�easy_install.unpack_and_compile(si����
���	4�	�x�b�1����*�%��|�|��������D�L�L�1�U�:�f�D���a���rBc��[R(agSSKJn [R
"URS-
5 U"USSURS9 UR(aU"UURSURS9 [R
"UR5 g![R
"UR5 f=f)Nr)rQrqT)r��forcer�)	r��dont_write_bytecode�distutils.utilrQr+rDr�r�r�)r�rKrQs   rCrQ�easy_install.byte_compile;s����"�"��/�
	,����d�l�l�Q�.�/���a�t�T�\�\�R��}�}���!�]�]�� �L�L�	�
���d�l�l�+��C���d�l�l�+�s�A$B#�#"Ca�
        bad install directory or PYTHONPATH

        You are attempting to install a package to a directory that is not
        on PYTHONPATH and which Python does not read ".pth" files from.  The
        installation directory you specified (via --install-dir, --prefix, or
        the distutils default setting) was:

            %s

        and your PYTHONPATH environment variable currently contains:

            %r

        Here are some of your options for correcting the problem:

        * You can choose a different installation directory, i.e., one that is
          on PYTHONPATH or supports .pth files

        * You can add the installation directory to the PYTHONPATH environment
          variable.  (It must then also be on PYTHONPATH whenever you run
          Python and want to use the package(s) you are installing.)

        * You can set up the installation directory to support ".pth" files by
          using one of the approaches described here:

          https://setuptools.pypa.io/en/latest/deprecated/easy_install.html#custom-installation-locations


        Please make the appropriate changes for your system and try again.
        c��UR(dg[[RR	S55n[URR55HmnURU5(dM[RRU5(aMAURSUS35 [R"US5 Mo g)zCreate directories under ~.N�~z
os.makedirs('z	', 0o700)i�)rtr2r�r�r �	only_strsr��valuesrr��debug_printra)r��homer�s   rCr+�easy_install.create_home_pathrs����y�y���B�G�G�.�.�s�3�4���d�.�.�5�5�7�8�D����t�$�$�R�W�W�]�]�4�-@�-@�� � �=���i�!@�A����D�%�(�9rBr�)z2.3z2.4z2.5�real_prefix�
site-packages�
dist-packagesz/$base/lib/python$py_version_short/site-packagesz	$base/binr�z*$base/local/lib/python$py_version_short/%sz$base/local/binz$base/lib/python3/%s)r2�
unix_local�posix_local�
deb_systemz$base/Lib/site-packagesz
$base/Scriptsc��URS5RnUR(dUR(a�UR(aURS;a
SnSUlO8UR(dS[R
;a[RnOSn[U5nURUS'URRX0R5nUR5H upV[XS5bM[XU5 M" SS	KJn UHZn[X5nUcMU"Xb5n[RS
:Xa[R"R%U5n[XU5 M\ g)Nr,r�r�r�r�r�r�r)r4r2)�get_finalized_commandr�r�r�r��__dict__r�r,r��INSTALL_SCHEMESrh�DEFAULT_SCHEMEr2r�r4r�r4r�r )r�r5r�r/�schemer6r7r4s        rCr	�easy_install._expand�s���0�0��;�G�G���;�;�$�-�-��"�"�t�':�':�g�'E�".�K�"(�D�K����
���� =� �g�g��+���{�+�K�"&�+�+�K����)�)�-�-�k�:M�:M�N�F�#�\�\�^�	���4�t�,�4��D��,�,�	.��D��$�%�C��� ��2���7�7�g�%��'�'�,�,�S�1�C���C�(�
rB)0r�rr�r�r�r�r�r�rkr}rr�r~r�r�r{r�r�r�r�r�r�r�r�r�r�rrzr�r�r�r�r�r�rr�r�r�r�r�r|rr�r]rtr�rrry��return�None)T)rKr�r�r�)r�r)F)r�r�r��Distribution | None)r�r�r�r�)r�r�r�r�)r�r�r�)�trA)r�rr�r�)r�zlist[Distribution])�	Installed)rdrr�r)U�__name__�
__module__�__qualname__�__firstlineno__�__doc__�description�command_consumes_argumentsr�r��user_options�boolean_options�negative_optrrr�r�r��staticmethodr�rrrrr8rrrOrYrJrrQrR�lstriprrrtrurcrdr�r�r�r�r��contextmanagerr�r8r�r-r�r�r�r�r�r�r�r�r�rrr1rrarbr�rirr r	rrr�rr#rQrSrir+r�rrr��sitedir_namer�r�r�r	�__static_attributes__rArBrCr8r8rs���1�4�K�!%��	1�7�G�M�7�6�9�G�?�H�T�	
�	Q�K�H�H�6�E�O�?�V�S�	
�

��7����7G�q�I�J�C"�L�F�O�#�H�-�L��L�0
�d6������E%�N�(��(�����
(�)�I�

!�9�:	J�
�+#�Z ���	��
�f�h�� �o�o�	��
�f�h�
��?�?�	�� 
�f�h�!�$
"�:�x+�&������7��7�#L�LDI�$�<@�$�	�$�LO��	*I��	*I�
�
*I�X��*%�D��)��)�$�,0D�dG�42�l.2�b2B�h2�8�?�?�		��
�f�h���?�?�	��L���_�_�		��
�f�h��5�
Q�$,�03�6*G�X�
�&,�* ���	� �@�e�g�A�D)��{�{�2�A��/�/�=�C�L�L�3P�&��&����I�"�
��F��U�+�
��F��U�+�
��0�<�?�%�
��O�&�-�"��N�
)rBr8c��[RRSS5R[R5n[SU5$)Nr`r�)r�rgrhr��pathsep�filter)r2s rC�_pythonpathr��s2���J�J�N�N�<��,�2�2�2�:�:�>�E��$���rBc��^�/mTR[55 [R/n[R[R:waUR[R5 UGH+nU(dM
[RS;a2TR[RRUSS55 GO&[RS:Xa�TR[RRUSS[RRS[RR3S5[RRUS	S[RRS[RR3S5[RRUS	S
5/5 O2TRU[RRUS	S5/5 [RS:waGM�SU;aGM�[RRS
5nU(dGM�[RRUSS[RRS[RR3S5nTRU5 GM. [!S5[!S54nTRU4SjU55 ["R$(aTR["R&5 [(R*"[,5 TR["R."55 SSS5 [1[3[4T55$!,(df   N'=f)z
Return a list of 'site' dirs
)�os2emx�riscos�Libr�r>z	local/librjr�r�r�zsite-python�darwinzPython.framework�HOME�Library�Python�purelib�platlibc3�6># �UHoT;dM
Uv� M g7fr�rA)r�rI�sitedirss  �rCr�� get_site_dirs.<locals>.<genexpr>�s����>�y�!�X�,=�A�A�y�s�	�	N)r
r�r�r�r�r�r*r�r�rW�sepr�r�r�rgrhrr�rr�r�r�r��getsitepackagesr�r�r)rJr�r��home_sp�	lib_pathsr�s     @rCrr�su���
�H�
�O�O�K�M�"��
�
�|�H�
���#�*�*�$�������(������<�<�/�/��O�O�B�G�G�L�L����H�I�
�V�V�s�]��O�O���������S�-�-�3�3�4�A�c�6F�6F�6L�6L�5M�N�#�	���������S�-�-�3�3�4�A�c�6F�6F�6L�6L�5M�N�#�	������V�U�M�:��
� 
�O�O�������V�U�O�<��
��<�<�8�#��
�V�+���z�z�~�~�f�%�����'�'�,�,�������%�%�&�a��(8�(8�(>�(>�'?�@��
��	���� �_�`��#�X�i�%8�8�I��O�O�>�y�>�>����������'�	�	�	�^�	,�����,�,�.�/�
-���N�H�-�.�.�
-�	,�s� %M&�&
M4c#��# �[5nUGH_n[U5nX!;aMURU5 [RRU5(dMM[R"U5nX#4v� UH�nURS5(dMUS;aM#[[RRX$55n[[U55nUH�nURS5(aM[UR55nXq;aM;URU5 [RRU5(dMrU[R"U54v� M� M� GMb g7f)zBYield sys.path directories that might contain "old-style" packagesrx)r^r��importN)rOrr�r�r�r�r�r��	_read_pthrWr�r
r�rstrip)�inputs�seenr�r�r,�content�lines�lines        rC�expand_pathsr�s����5�D��� ��)���?��������w�w�}�}�W�%�%���
�
�7�#���n���D��=�=��(�(���=�=�� ������W� ;�<�G���W�-�.�E����?�?�8�,�,��%�d�k�k�m�4���<��������w�w�}�}�T�*�*���B�J�J�t�,�,�,����s�E2E4c���[US5n[R"U5nUcUR5 gUSUS-
US-
nUS:aUR5 gUR	US-
5 [
R"SURS55upEnUS;aUR5 gUR	USU--
5 S	S	S
.n[R"U5nURU5n	U	RSS5S
n
U
R[R"55n
UR[R "U
55 UR%S5(aUR%S5(dUR5 gUUR5 $![R"a UR5 gf=f!UR5 f=f)zfExtract configuration data from a bdist_wininst .exe

Returns a configparser.RawConfigParser, or None
�rbN�	���z<iii)izV4i{V4r�)rrr,�rqrr�Setup)re�zipfile�_EndRecDatarf�seekr?�unpack�read�configparser�RawConfigParserr�r�r��getfilesystemencoding�	read_file�io�StringIO�Error�has_section)r�re�endrec�	prepended�tag�cfglen�_bmlen�initr5�part�configs           rCr:r:3s���
	
�]�D�!�A� ��$�$�Q�'���>��:	
���	�7�A�Y����*�f�Q�i�7�	��r�>��2	
���	�1	
���y�2�~��$�m�m�F�A�F�F�2�J�?���V��.�.��(	
���	�%	
���y�B��K�(�)���4���*�*�4�0��		��6�6�&�>�D��Z�Z��q�)�!�,�F��]�]�3�#<�#<�#>�?�F��M�M�"�+�+�f�-�.����z�*�*�#�/�/�'�2J�2J��	
���	��	
���	���!�!�	��	
���	�	��	
���	�sH�G�G�"AG�72G�*A/F)�,G�G�)G�=G�G�G�G%c	��/SQn[R"U5nUR5GHWnURnUR	S5n[U5S:XaJUSS:XaAUSR
S5(a(URSSRUS	S5S
45  O�[U5S:wdUR
S5(dM�UR
S5(aM�USR5S
;dM�URU5R5n[U5HWnUR5RSS5nURS5(aM;UR!USSUS3S45 MY GMZ UR#5 UVV	s/sHup�UR%5U	4PM nnn	UR'5 UR)5 U$!UR#5 f=fs sn	nf)z4Get exe->egg path translations for a given .exe file))zPURELIB/r�)zPLATLIB/pywin32_system32r�)zPLATLIB/r�)rBzEGG-INFO/scripts/)zDATA/lib/site-packagesr�r>r�r$r+rqz	.egg-inforNr�rxz
-nspkg.pth)�PURELIB�PLATLIB�\r�r�)r��ZipFile�infolistr�r�rFr�rrW�upperr�r�r
rSrTrr�rfr�sort�reverse)
�exe_filenamerJrZr�r,rHr��pthra�ys
          rCr;r;\s����H�	����%�A���J�J�L�D��=�=�D��J�J�s�O�E��5�z�Q��5��8�z�#9���8�$�$�[�1�1��O�O�A�����r���(;�[�'I�J���5�z�Q��d�m�m�F�&;�&;���}�}�\�*�*���Q�x�~�~��#9�9��6�6�$�<�.�.�0��&�x�0�C��)�)�+�-�-�d�C�8�C��>�>�(�3�3� ���U�1�X�J�a��u�A�*>��(D�E�1�!�$	
���	�+3�4�8�4�1�����A��8�H�4��M�M�O������O��		
���	��4s�CG �>A!G �#%G �G5� G2c�^�\rSrSrSrSS
U4SjjjrSrSrS
Sjr\	S5r
S
U4SjjrS
U4S	jjrS
r
SrU=r$)r9i�z)A .pth file with Distribution paths in itc
��>�Xl[[[U55Ul[[
RRUR55UlUR5uUl
UlURSSUl[TU]9/SS5 [UR5H,n[[UR [#US555 M. g)NT)r�r�r�rr�r�r�r��basedir�_loadr��dirty�_init_paths�super�__init__r
r�r)r�r�r�r��	__class__s    �rCr�PthDistributions.__init__�s���� �
��S���:�;��
�%�b�g�g�o�o�d�m�m�&D�E���!%������
�D�J��:�:�a�=���
����T�4�(���
�
�+�D���T�X�X�1�$��=�>�?�,rBc�d�/nS=p#[UR5n[UR5nUR	5GHnUR5nUR
U5 URS5(aSnM?UR5nU(aURS5(aMn[[RRURU55n	X�;d$[RRU	5(d+[R "SU5 SnUR#5 M�UR%U	5 GM	 U(aKUSR5(d3UR#5 SnU(aUSR5(dM3X=(d U=(a U4$)NF)�import �from T�#z!cleaned up dirty or duplicated %rrA)rOr�r�r��
splitlinesr�r�rrSrr�r�rWrr�r+r��popr�)
r�r�r
�
saw_importr�r�r�r��
stripped_path�normalized_paths
          rC�	_load_raw�PthDistributions._load_raw�s>����"�"���4�=�=�!���D�M�M�*���&�&�(�D��;�;�=�D��L�L������3�4�4�!�
�� �J�J�L�M� �M�$<�$<�S�$A�$A��-�R�W�W�\�\�$�,�,��-M�N�O��&�b�g�g�n�n�_�.M�.M��	�	�=�t�D����	�	����H�H�_�%�%)�(�E�"�I�O�O�-�-��I�I�K��E��E�"�I�O�O�-�-��5�� 4�*�5�5rBc��[RRUR5(aUR	5$/S4$)NF)r�r�rr�rr�s rCr�PthDistributions._load�s0��
�7�7�>�>�$�-�-�(�(��>�>�#�#��5�y�rBc�6�UR5upUSSHYnX0R;a6URRU5 [R"SU5 SnMHURU5 M[ URSSH�nX1;dM
UR
S5(aM"[RRURU5n[RRU5(aMrURRU5 [R"SU5 SnM� U=RU=(d URUR:g-slUR(dg[[UR UR55nU(a�[R""SUR$5 UR'U5nSRU5S-n[RR)UR$5(a [R*"UR$5 [-UR$S[.R0S	9nUR3U5 SSS5 Oo[RRUR$5(aA[R""S
UR$5 [R*"UR$5 SUlURSSURSS&g!,(df   N2=f)z$Write changed .pth file back to diskNzdetected new path %rT)rrrz!removing now non-existent path %rz	Saving %srPr�r{zDeleting empty %sF)rr�r�r+r�r�rr�r�rWrr�r
rr�r�r�r�r��_wrap_linesr�r�rer)r�r�)	r��
last_paths�
last_dirtyr��
absolute_path�	rel_pathsr��datares	         rCr��PthDistributions.save�s��"&�����
�
�q�M�D��:�:�%��
�
�!�!�$�'����/��6�!�
��!�!�$�'�
"��J�J�q�M�D��%�d�o�o�?�/�/�
!#�����T�\�\�4� @�
��w�w�~�~�m�4�4��J�J�%�%�d�+��H�H�@�$�G�!%�J�"�	
�
�
�j�B�D�J�J�$�2B�2B�$B�B�
��z�z����T�/�/����<�=�	���I�I�k�4�=�=�1��$�$�Y�/�E��9�9�U�#�d�*�D��w�w�~�~�d�m�m�,�,��	�	�$�-�-�(��d�m�m�T�E�4F�4F�G�1�����
�H�G��W�W�^�^�D�M�M�
*�
*��I�I�)�4�=�=�9��I�I�d�m�m�$���
�"�j�j��m������H�G�s�L
�

Lc��U$r�rA)r�s rCr!�PthDistributions._wrap_lines�s���rBc�N>�URUR;=(aB URUR;=(d" UR[R"5:HnU(a,URRUR5 SUl[TU]!U5 g)z"Add `dist` to the distribution mapTN)	r�r�r�r��getcwdr�r
rr�)r�r��new_pathrs   �rCr��PthDistributions.add�st����=�=��
�
�2�
��M�M����.�
)�
�M�M�R�Y�Y�[�(�		���J�J���d�m�m�,��D�J�
���D�rBc��>�URUR;aHURRUR5 SUlURUR;aMH[TU]	U5 g)z'Remove `dist` from the distribution mapTN)r�r�r�r
r)r�r�rs  �rCr��PthDistributions.remove�sP����m�m�t�z�z�)��J�J���d�m�m�,��D�J��m�m�t�z�z�)�	���t�rBc�2�[RR[U55up#[	UR
5nU/n[RS:H=(a S=(d [Rn[	U5U:�a�X R
:Xa@UR[R5 UR5 URU5$[RRU5up#URU5 [	U5U:�aM�U$)Nr>)r�r�r�rrFr�altsepr�r��curdirrrW)r�r��npath�last�baselenrHr�s       rCr��PthDistributions.make_relative�s����g�g�m�m�N�4�$8�9����d�l�l�#������i�i�3��&�3�0�"�&�&���%�j�G�#����$����R�Y�Y�'��
�
���x�x���&��'�'�-�-��.�K�E��L�L���
�%�j�G�#��KrB)rrr
r�r�r�)rAr�)r�r�r�r�r�rrrr�r�r!r�r�r�r��
__classcell__)rs@rCr9r9�sJ���3�	@�	@�6�<�
0,�d������
�
rBr9c�D�\rSrSr\S5r\"S5r\"S5rSr	g)�RewritePthDistributionsic#�\# �URv� UShv�N URv� gN7fr�)�prelude�postlude)�clsr�s  rCr!�#RewritePthDistributions._wrap_lines
s'����k�k������l�l��	�s�,�*�,z?
        import sys
        sys.__plen = len(sys.path)
        z�
        import sys
        new = sys.path[sys.__plen:]
        del sys.path[sys.__plen:]
        p = getattr(sys, '__egginsert', 0)
        sys.path[p:p] = new
        sys.__egginsert = p + len(new)
        rAN)
r�r�r�r��classmethodr!rVr;r<r�rArBrCr9r9s6������
�	��G��	�	�HrBr9�SETUPTOOLS_SYS_PATH_TECHNIQUE�raw�rewritec��[[R[5(a[$[R
"[RR
55$)zS
Return a regular expression based on first_line_re suitable for matching
strings.
)rr-�patternr�re�compiler�rArBrC�_first_line_rerG)s=��
�-�'�'��-�-����:�:�m�+�+�2�2�4�5�5rBc��[U5n[U[R5 U(a[	U5 g[U5 g)a�	
Fix any globally cached `dist_path` related data

`dist_path` should be a path of a newly installed egg distribution (zipped
or unzipped).

sys.path_importer_cache contains finder objects that have been cached when
importing data from the original distribution. Any such finders need to be
cleared since the replacement distribution might be packaged differently,
e.g. a zipped egg distribution might get replaced with an unzipped egg
folder or vice versa. Having the old finders cached may then cause Python
to attempt loading modules from the replacement distribution using an
incorrect loader.

zipimport.zipimporter objects are Python loaders charged with importing
data packaged inside zip archives. If stale loaders referencing the
original distribution, are left behind, they can fail to load modules from
the replacement distribution. E.g. if an old zipimport.zipimporter instance
is used to load data from a new zipped egg archive, it may cause the
operation to attempt to locate the requested data in the wrong location -
one indicated by the original distribution's zip archive directory
information. Such an operation may then fail outright, e.g. report having
read a 'bad local file header', or even worse, it may fail silently &
return invalid data.

zipimport._zip_directory_cache contains cached zip archive directory
information for all existing zipimport.zipimporter instances and all such
instances connected to the same archive share the same cached directory
information.

If asked, and the underlying Python implementation allows it, we can fix
all existing zipimport.zipimporter instances instead of having to track
them down and remove them one by one, by updating their shared cached zip
archive directory information. This, of course, assumes that the
replacement distribution is packaged as a zipped egg.

If not asked to fix existing zipimport.zipimporter instances, we still do
our best to clear any remaining zipimport.zipimporter related cached data
that might somehow later get used when attempting to load data from the new
distribution and thus cause such load operations to fail. Note that when
tracking down such remaining stale data, we can not catch every conceivable
usage from here, and we clear only those that we know of and have found to
cause problems if left alive. Any remaining caches should be updated by
whomever is in charge of maintaining them, i.e. they should be ready to
handle us replacing their zip archives with new distributions at runtime.

N)r�_uncacher��path_importer_cache�!_replace_zip_directory_cache_data�*_remove_and_clear_zip_directory_cache_data)�	dist_pathrrs   rCr%r%5s4��x%�Y�/�O��_�c�5�5�6��)�/�:� 	3�?�CrBc���/n[U5nUHTn[U5nURU5(dM&XSUS-[RS4;dMCURU5 MV U$)aX
Return zipimporter cache entry keys related to a given normalized path.

Alternative path spellings (e.g. those using different character case or
those using alternative path separators) related to the same path are
included. Any sub-path entries are included as well, i.e. those
corresponding to zip archives embedded in other zip archives.

rqr�)rFrrr�r�r�)r�cache�result�
prefix_len�p�nps      rC�"_collect_zipimporter_cache_entriesrT�sk���F��_�%�J�
��
�A�
��
�=�=��)�)�b�j�1�n�.M��F�F��R
�/
�
�M�M�!��
��MrBc�h�[X5H#nXnX	U=(a U"X45nUcMXQU'M% g)ao
Update zipimporter cache data for a given normalized path.

Any sub-path entries are processed as well, i.e. those corresponding to zip
archives embedded in other zip archives.

Given updater is a callable taking a cache entry key and the original entry
(after already removing the entry from the cache), and expected to update
the entry and possibly return a new one to be inserted in its place.
Returning None indicates that the entry should not be replaced with a new
one. If no updater is given, the cache entries are simply removed without
any additional processing, the same as if the updater simply returned None.

N)rT)rrO�updaterrR�	old_entry�	new_entrys      rC�_update_zipimporter_cacherY�s>��0��
G���H�	��H��5��� 5�	�� � �!�H�HrBc��[X5 gr�)rY)rrOs  rCrIrI�s
���o�5rBc�<�Sn[U[RUS9 g)Nc�$�UR5 gr�)�clear�r�rWs  rC�2clear_and_remove_cached_zip_archive_directory_data�f_remove_and_clear_zip_directory_cache_data.<locals>.clear_and_remove_cached_zip_archive_directory_data�s�����rB�rV�rYr�_zip_directory_cache)rr_s  rCrLrL�s ������&�&�B�rB�__pypy__c�<�Sn[U[RUS9 g)Nc��UR5 [R"U5 UR[RU5 U$r�)r]rrr�rcr^s  rC�)replace_cached_zip_archive_directory_data�T_replace_zip_directory_cache_data.<locals>.replace_cached_zip_archive_directory_data�s;��
�O�O���!�!�$�'����Y�;�;�D�A�B��rBrarb)rrgs  rCrKrK�s ��	�	"���*�*�=�	
rBc�J�[XS5 g![[4a gf=f)z%Is this string a valid Python script?�execTF)rF�SyntaxError�	TypeError)rUr�s  rC�	is_pythonrm�s/������'���
��#����s��"�"c��[USS9nURS5nSSS5 US:H$!,(df   WS:H$=f![a Us$f=f)zCDetermine if the specified executable is a .sh (contains a #! line)zlatin-1r{r$N�#!)rer�rb)r��fp�magics   rC�is_shrr�s\���
�*�y�
1�R��G�G�A�J�E�2��D�=��	2�
1��D�=��������s(�
A�+�A�
=�A�A�A�Ac�0�[R"U/5$)z@Quote a command line argument according to Windows parsing rules��
subprocess�list2cmdline)�args rC�nt_quote_argrxs���"�"�C�5�)�)rBc���URS5(dURS5(ag[X5(agURS5(a$SUR5SR	5;$g)zHIs this text, as a whole, a Python script? (as opposed to shell/bat/etc.r��.pywTrorjrF)r�rmrrr)r�r�s  rCr�r�sj��������8�#4�#4�V�#<�#<����'�'�����d�#�#��;�1�1�3�A�6�<�<�>�>�>�rBc�*�\rSrSr%S\S'S\S'Srg)�
_SplitArgsir��commentsr2rAN)r�r�r�r��__annotations__r�rArBrCr|r|s���N��KrBr|F)�totalc���\rSrSr%Sr/rS\S'\"5r\	S5r
\	S5r\	SSj5r\	S5r
\	SS	j5rSS
jr\S5rSr\S
5r\S5rSrg)�CommandSpeciza
A command spec for a #! header, specified as a list of arguments akin to
those passed to Popen.
z	list[str]�optionsc��U$)zF
Choose the best CommandSpec class based on environmental conditions.
rA�r=s rCr��CommandSpec.best!s	��
�
rBc��[RR[R5n[R
R
SU5$)N�__PYVENV_LAUNCHER__)r�r�r!r�r�rgrh)r=�_defaults  rC�_sys_executable�CommandSpec._sys_executable(s0���7�7�#�#�C�N�N�3���z�z�~�~�3�X�>�>rBc��[X5(aU$[U[5(aURU5$[U[5(aU"U5$UcUR	5$[S[
U535e)zO
Construct a CommandSpec from a parameter to build_scripts, which may
be None.
z!Argument has an unsupported type )rr�from_stringr�from_environmentrl�type)r=�params  rC�
from_param�CommandSpec.from_param-sr���e�!�!��L��e�S�!�!��?�?�5�)�)��e�X�&�&��u�:���=��'�'�)�)��;�D��K�=�I�J�JrBc�0�U"UR5/5$r�)r�r�s rCr��CommandSpec.from_environment=s���C�'�'�)�*�+�+rBc�T�[R"U40URD6nU"U5$)ze
Construct a command spec from a simple string representing a command
line parseable by shlex.split.
)�shlexr��
split_args)r=�stringr2s   rCr��CommandSpec.from_stringAs%�����F�5�c�n�n�5���5�z�rBc���[R"URU55Ul[R
"U5n[
U5(dS/URSS&gg)Nz-xr)r�r��_extract_optionsr�rurvrN)r�r��cmdlines   rC�install_options�CommandSpec.install_optionsJsO���{�{�4�#8�#8��#E�F����)�)�$�/���w��� $�v�D�L�L��!�� rBc���US-R5Sn[5RU5nU(aURS5=(d SOSnUR	5$)z8
Extract any options from the first line of the script.
rPrrqr�)rrG�match�grouprS)�orig_script�firstr�r�s    rCr��CommandSpec._extract_optionsPsR��
�t�#�/�/�1�!�4��� �&�&�u�-��*/�%�+�+�a�.�&�B��R���}�}��rBc�P�URU[UR5-5$r�)�_renderr�r�r�s rC�	as_header�CommandSpec.as_headerZs���|�|�D�4����#5�5�6�6rBc��SnUH8nURU5(dMURU5(dM3USSs $ U$)Nz"'rqrA)rr�)�item�_QUOTES�qs   rC�
_strip_quotes�CommandSpec._strip_quotes]sA�����A����q�!�!�d�m�m�A�&6�&6��A�b�z�!���rBc�L�[R"SU55nSU-S-$)Nc3�h# �UH(n[RUR55v� M* g7fr�)r�r�rS)r�r�s  rCr��&CommandSpec._render.<locals>.<genexpr>gs'���*
�@E��K�%�%�d�j�j�l�3�3��s�02rorPrt)r2r�s  rCr��CommandSpec._renderes0���)�)�*
�@E�*
�
���g�~��$�$rB)r�N)r�z!Self | str | Iterable[str] | Noner�r5)r�rr�r5)r�r)r�r�r�r�r�r�r~r|r�r?r�r�r�r�r�r�r�r�r�r�r�r�rArBrCr�r�s����
�G�Y����J������?��?��
K��
K��,��,�����&�����7������%��%rBr�c� �\rSrSr\"SS9rSrg)�WindowsCommandSpeciqF)r2rAN)r�r�r�r�r|r�r�rArBrCr�r�qs���%�(�JrBr�c���\rSrSrSr\R"S5R5r\	r
\SSj5r\
S5r\S5r\S5r\SS
S	jj5rS
rg)r�iuzT
Encapsulates behavior around writing entry point scripts for console and
gui apps.
aJ
        # EASY-INSTALL-ENTRY-SCRIPT: %(spec)r,%(group)r,%(name)r
        import re
        import sys

        # for compatibility with easy_install; see #2198
        __requires__ = %(spec)r

        try:
            from importlib.metadata import distribution
        except ImportError:
            try:
                from importlib_metadata import distribution
            except ImportError:
                from pkg_resources import load_entry_point


        def importlib_load_entry_point(spec, group, name):
            dist_name, _, _ = spec.partition('==')
            matches = (
                entry_point
                for entry_point in distribution(dist_name).entry_points
                if entry_point.group == group and entry_point.name == name
            )
            return next(matches).load()


        globals().setdefault('load_entry_point', importlib_load_entry_point)


        if __name__ == '__main__':
            sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
            sys.exit(load_entry_point(%(spec)r, %(group)r, %(name)r)())
        Nc#�X# �UcUR5n[UR55nSHrnUS-nURU5R	5HGnURU5 UR[5-nURXFX'5nUShv�N MI Mt gN
7f)zi
Yield write_script() argument tuples for a distribution's
console_scripts and gui_scripts entry points.
N��console�gui�_scripts)	r�rr��
get_entry_map�keys�_ensure_safe_name�templater��_get_script_args)	r=r��headerrL�type_r�r,r�r�s	         rCr��ScriptWriter.get_args�s�����>��^�^�%�F��4�&�&�(�)��%�E��J�&�E��*�*�5�1�6�6�8���%�%�d�+�!�l�l�V�X�5���+�+�E��M�����	9�&� �s�BB*�B(�B*c�V�[R"SU5nU(a[S5eg)z/
Prevent paths in *_scripts entry point names.
z[\\/]z+Path separators not allowed in script namesN)rE�searchr&)r,�has_path_seps  rCr��ScriptWriter._ensure_safe_name�s(��
�y�y��4�0����J�K�K�rBc��[RS:Xd([RS:Xa([RS:Xa[
R
5$U$)z4
Select the best ScriptWriter for this environment.
�win32�javar3)r�r*r�r,�_name�WindowsScriptWriterr�r�s rCr��ScriptWriter.best�s:��
�<�<�7�"�r�w�w�&�'8�R�X�X��=M�&�+�+�-�-��JrBc#�# �X#U-4v� g7fr�rA)r=r�r,r�r�s     rCr��ScriptWriter._get_script_args�s����k�)�*�*�s�
c��URR5RU5nURU5 UR	5$)z;Create a #! line, getting options (if any) from script_text)�command_spec_classr�r�r�r�)r=r�r��cmds    rCr��ScriptWriter.get_header�s=���$�$�)�)�+�6�6�z�B�����K�(��}�}��rBrAr�)r�N)r�rr�z(str | CommandSpec | Iterable[str] | Noner�r)r�r�r�r�r�rQrRr�r�r�r�r?r�r�r�r�r�r�r�rArBrCr�r�us����
���!	�#�F
�f�h�G
�J%��� �� � �L��L������+��+���?C����=��

�	��rBr�c�X�\rSrSr\r\S5r\S5r\S5r	\
S5rSrg)r�i�c�f�[[US9n[RR	SS5nX$)z3
Select the best ScriptWriter suitable for Windows
)r��natural�SETUPTOOLS_LAUNCHERr�)r��WindowsExecutableLauncherWriterr�rgrh)r=�
writer_lookup�launchers   rCr��WindowsScriptWriter.best�s4��
�6��
�
�
�:�:�>�>�"7��F���&�&rBc#�# �[SSS9UnU[RSR5R	S5;a0SR
"S
0[
5D6n[R"U5 /SQnURU5 URX5nUVs/sHo�U-PM	 n	nX%-X4-SU	4v� g	s snf7f)z For Windows, add a .py extension�.pyarzr��PATHEXT�;zK{ext} not listed in PATHEXT; scripts will not be recognized as executables.)r�r��
-script.py�.pyc�.pyorzr�r�NrA)r�r�rgrr�r�r�r"rxr��_adjust_header)
r=r�r,r�r��extr.rFrar�s
          rCr��$WindowsScriptWriter._get_script_args�s�����6�v�.�u�5���b�j�j��+�1�1�3�9�9�#�>�>�-��f��!��x�!�C�
�"�"�3�'�K���
�
�3���#�#�E�2��&)�*�c��1�H�c��*��j�&�.��X�=�=��+�s�BC�B;�,Cc���SnSnUS:XaXCpC[R"[R"U5[R5nUR	X$S9nURU5(aU$U$)zn
Make sure 'pythonw' is used for gui and 'python' is used for
console (regardless of what sys.executable is).
r}r~r�)r��repl)rErF�escape�
IGNORECASE�sub�_use_header)r=r��orig_headerrDr��
pattern_ob�
new_headers       rCr��"WindowsScriptWriter._adjust_header�s`�� �����E�>� �T��Z�Z��	�	�'� 2�B�M�M�B�
��^�^�;�^�B�
� �_�_�Z�8�8�z�I�k�IrBc��USSRS5n[RS:g=(d [R"U5$)z�
Should _adjust_header use the replaced header?

On non-windows systems, always use. On
Windows systems, only use the replaced header if it resolves
to an executable on the system.
r$rA�"r�)rSr�r*r��which)r��clean_headers  rCr��WindowsScriptWriter._use_header	s8��"�!�B�'�-�-�c�2���|�|�w�&�D�&�,�,�|�*D�DrBrAN)
r�r�r�r�r�r�r?r�r�r�r�r�r�rArBrCr�r��sZ��+���
'��
'��
>��
>��J��J��	E��	ErBr�c�$�\rSrSr\S5rSrg)r�i	c#�# �US:XaSnSnS/nOSnSn/SQnURX5nUV	s/sHo�U	-PM	 n
n	X&-X�-SU
4v� US-[U5S	4v� [5(dUS
-nU[U5S4v� ggs sn	f7f)z7
For Windows, add a .py extension and an .exe launcher
r�z-script.pywrz�clir�)r�r�r�r�r�rfz
.exe.manifestN)r��get_win_launcherrD�load_launcher_manifest)r=r�r,r�r��
launcher_typer�rF�hdrrar��m_names            rCr��0WindowsExecutableLauncherWriter._get_script_args	s����
�E�>�!�M��C��(�C�!�M��C�)�C�� � ��/��&)�*�c��1�H�c��*��z�3�,�c�8�<�<��6�M��]�+��
�	
�
�z�z��O�+�F��1�$�7��=�=���+�s�,B�B�ABrAN)r�r�r�r�r?r�r�rArBrCr�r�	s���>��>rBr�c���US3n[5(a4[5S:XaURSS5nO%URSS5nOURSS5n[SU5$)z�
Load the Windows launcher (executable) suitable for launching a script.

`type` should be either 'cli' or 'gui'

Returns the executable as a byte string.
r�z	win-arm64r�z-arm64.z-64.z-32.r�)rDr3rTr)r��launcher_fns  rCr�r�2	sc���F�$�-�K��z�z��>�[�(�%�-�-�c�9�=�K�%�-�-�c�6�:�K�!�)�)�#�v�6���<��5�5rBc�p�[R"[S5nURS5[	5-$)Nzlauncher manifest.xmlr�)�
pkg_resourcesrr�r��vars)r,�manifests  rCr�r�E	s+���,�,�X�7N�O�H��?�?�7�#�d�f�,�,rBc�^�[R"S5n[R"U5 U$)N�)r��umask)�tmps rCr�r�J	s��
�(�(�5�/�C��H�H�S�M��JrBc��[SU5$)z$
Exclude non-str values. Ref #3063.
c�"�[U[5$r�)rr)r7s rC�<lambda>�only_strs.<locals>.<lambda>T	s��j��c�2rB)r�)r�s rCr�r�P	s���2�F�;�;rBc�2�[U[RS9nUR5sSSS5 $!,(df   g=f![aG [U[
RS9nUR5sSSS5 s$!,(df   g=ff=f)Nr{)rer)r�r��UnicodeDecodeErrorr(�LOCALE_ENCODING)�fullnameres  rCr�r�W	sh��
�
�(�U�%7�%7�
8�A��6�6�8�9�
8�
8���	��(�T�%9�%9�
:�a��6�6�8�;�
:�
:�
:��	�sB�A�4�	A�
A�A�A�"B�'B�7
B�
B	�
B�Bc� �\rSrSrSrSrSrSrg)rwik	z#easy_install command is deprecated.z�
    Please avoid running ``setup.py`` and ``easy_install``.
    Instead, use pypa/build, pypa/installer or other
    standards-based tools.
    z-https://github.com/pypa/setuptools/issues/917rAN)r�r�r�r��_SUMMARY�_DETAILS�_SEE_URLr�rArBrCrwrwk	s��4�H��H�
?�HrBrwr�)z<string>)r
rr�r)�r��
__future__rr�r�r�r�rTrEr�r�r�r�r?rur�r�r�rQ�warningsr�r�collections.abcrrr�typingrrr	�jaraco.textr
r�rrr
rrrrrrrrrrr�r�setuptools.archive_utilr�setuptools.commandrrr�setuptools.package_indexrrr�setuptools.sandboxr �setuptools.warningsr!r"�setuptools.wheelr#�_pathr%�_shutilr&r�r'r��compatr(r)rGr*r+�distutils.commandr,�distutils.command.build_scriptsr-�distutils.errorsr.r/r0r1r�r2r3r4�typing_extensionsr5�filterwarnings�
PEP440Warning�__all__rDrJrNrVr8r�rr�r:r;r9r9rgrhrGr%rTrYrIrL�builtin_module_namesrKrmrrrxr�r|r�r�r��sys_executabler�r�r�r�r�r�r�r�r�rwrArBrC�<module>r)s/��
�#���	�	�
�	��
���
��
�������$���5�5�#�������2�:�:�T�T�(�O�"�$�G� �#�%�9���B�A��&�	���	�M�,G�,G�H���%���=�B)�7�B)�J*�
G/�T*-�Z&�R"�JH�{�H�V�.��2�:�:�>�>�1�5�9�Y�F�.��	6�OD�d�,!�@6��&��)�)�)�(R�%�
�*��*�

���%��
R%�$�R%�l�,�,�.��)��)�_�_�D8E�,�8E�v>�&9�>�@6�&-�
�<��(?�$@�?rB

Youez - 2016 - github.com/yon3zu
LinuXploit