403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/setuptools/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/setuptools/tests/__pycache__/test_easy_install.cpython-314.pyc
+
�h���*�Rt^RIt^RIt^RIt^RIt^RIt^RIt^RIt^RIt^RI	t	^RI
t
^RIt^RIt^RI
t
^RIt^RIt^RIHt^RIHt^RIHt^RIt^RIHt^RIt^RIHuHt^RIHtHtH t ^RI!H"t"^RI#H$t$^R	IH%t%^R
I&Ht^RI'H(t(^RI)H*t*^R
I+H,t,H-t-^RI.H/t/^RI0H1t1^RI2t3]Ph!RR7R4t5!RR4t6]1!R4t7!RR4t8]PrPuR4!RR44t;]PhR4t<]PrP{R4]PrP{R4!RR444t>]PhR 4t?]PrP{R!4!R"R#44t@]PhR$4tA!R%R&4tB!R'R(4tCR)tDR*tER+tFR,tGR-R.]DRRR?3R/ltH]PrP�]
P�P�R04;'d]P�!]
P�4R1R27!R3R444tN!R5R64tO!R7R84tP!R9R:]4tQR;tR]PrP�]
P�R<8HR=R27R>4tTR#)@zEasy install TestsN)�Path)�
NamedTuple)�mock��path)�Distribution�normalize_path�working_set)�sandbox)�
safer_name)�PthDistributions)r��	run_setup)�
fail_on_ascii)�
MockServer�path_to_url)�contexts)�DALST)�autousec�*�VPRR4R#)z�
Important: Disable the default index for pip to avoid
querying packages in the index and potentially resolving
and installing packages there.
�PIP_NO_INDEX�trueN)�setenv)�monkeypatchs&�D/usr/lib/python3/dist-packages/setuptools/tests/test_easy_install.py�pip_disable_indexr*s�����~�v�.�c�,a�]tRt^4toRtRtRtVtR#)�FakeDistc��VR8wd/#RR/#)�console_scripts�name�ep�)�self�groups&&r�
get_entry_map�FakeDist.get_entry_map5s���%�%��I���~�rc��R#)�specr#�r$s&r�as_requirement�FakeDist.as_requirement:s��rr#N)�__name__�
__module__�__qualname__�__firstlineno__r&r+�__static_attributes__�__classdictcell__��
__classdict__s@rrr4s�����
�rrz3
    from setuptools import setup

    setup()
    c�La�]tRt^GtoRtRtRtRtRt]	PR4t]R4t
]	PR4t]R	4t]	PR
4t]	P"P%]P(P+R4'*RR
7R4tRtVtR#)�TestEasyInstallTestc���\PP4P4P	4p\4p\
\PPV44p\P!V^4wrEVPV4'gQhRV9gQhRV9gQhRV9gQh\P!RV\PR7'gQhR#)�z'spec'z'console_scripts'z'name'z^# EASY-INSTALL-ENTRY-SCRIPT)�flagsN)�ei�CommandSpec�best�from_environment�	as_headerr�next�ScriptWriter�get_args�	itertools�islice�
startswith�re�search�	MULTILINE)r$�header�dist�args�_name�scripts&     r�test_get_script_args�(TestEasyInstallTest.test_get_script_argsHs������$�$�&�7�7�9�C�C�E���z���B�O�O�,�,�T�2�3��!�(�(��q�1�
��� � ��(�(�(�(��6�!�!�!�"�f�,�,�,��6�!�!�!��y�y�7��r�|�|�T�T�T�Trc��\4p\P!V4pRVnRVnRR.Vn\PP\P!4R4VnR.VnVP4VPP/8XgQh\P!V4pRVnRR.Vn\PP\P!4R4VnR.VnVP4\!VPPP#44pVRR.8XgQhR#)c��R#�Tr#r#rr�<lambda>�8TestEasyInstallTest.test_no_find_links.<locals>.<lambda>X���4rT�link1�link2�okc��R#rQr#r#rrrRrSbrTrN)rr:�easy_install�check_pth_processing�
no_find_links�
find_links�osr�join�tempfile�mkdtemp�install_dirrJ�ensure_finalized�
package_index�scanned_urls�sorted�keys)r$rI�cmdrfs&   r�test_no_find_links�&TestEasyInstallTest.test_no_find_linksSs
���~���o�o�d�#��#/�� � ���!�7�+����'�'�,�,�x�'7�'7�'9�4�@����6�������� � �-�-��3�3�3��o�o�d�#��#/�� �!�7�+����'�'�,�,�x�'7�'7�'9�4�@����6��������c�'�'�4�4�9�9�;�<�����)�)�)�)rc�@�\4p\P!V4p\P!4Vn\P!\PP4;_uu_4VP4RRR4R# +'giR#;i)zC
Test that `cant_write_to_target` is rendered as a DistutilsError.
N)rr:rYr]�getcwdra�pytest�raises�	distutils�errors�DistutilsError�cant_write_to_target)r$rIrgs&  r�test_write_exception�(TestEasyInstallTest.test_write_exceptionjs\���~���o�o�d�#���)�)�+���
�]�]�9�+�+�:�:�
;�
;��$�$�&�<�
;�
;�
;�s�1B�B	c�a�\R4oV3RlpVP\RVRR7S\P!49gQhR#)zP
get_site_dirs should always return site dirs reported by
site.getsitepackages.
z/setuptools/test/site-packagesc�
<�S.#�Nr#rs�r�mock_gsp�8TestEasyInstallTest.test_all_site_dirs.<locals>.mock_gsp{s
����6�Mr�getsitepackagesF��raisingN)r�setattr�siter:�
get_site_dirs)r$rrwrs&& @r�test_all_site_dirs�&TestEasyInstallTest.test_all_site_dirstsF���
�>�?��	�	���D�"3�X�u��M��r�'�'�)�)�)�)rc�p�VP\RRR7\P!4'gQhR#)ryFrzN)�delattrr}r:r~)r$rs&&r�0test_all_site_dirs_works_without_getsitepackages�DTestEasyInstallTest.test_all_site_dirs_works_without_getsitepackages�s-�����D�"3�U��C����!�!�!�!rc���R\R43RR.pRpW,p\P!\V4R4pVFwrgVP	Wg4K	VP4\V4#)�setup.pya5
                    import setuptools
                    setuptools.setup(
                        name="setuptools-test-unicode",
                        version="1.0",
                        packages=["mypkg"],
                        include_package_data=True,
                    )
                    zsetuptools-test-unicode-1.0.zip�w�zmypkg/__init__.py�)u
mypkg/☃.txtr�)r�zipfile�ZipFile�str�writestr�close�r$�tmpdir�files�
sdist_name�sdist�	sdist_zip�filename�contents&&      r�
sdist_unicode�!TestEasyInstallTest.sdist_unicode�s~�����
�

�
�
�'
��07�
��#���O�O�C��J��4�	�!&��H����x�1�"'������5�z�rc�,�\RR./4pVR,P4p\P!V\	V4R.R7pVP\PR\	V44VP4VPV4R#)zY
The install command should execute correctly even if
the package has unicode filenames.
�script_argsrY�target�x�rarJ�
PYTHONPATHN�	r�
ensure_dirr:rYr��setitemr]�environrb)r$r�r�rrIr�rgs&&&&   r�test_unicode_filename_in_sdist�2TestEasyInstallTest.test_unicode_filename_in_sdist�s|���]�^�,<�=�>���8�#�/�/�1���o�o���F����
��
	���B�J�J��c�&�k�B���������'rc��R\R43RR\R43.pRpW,p\P!\V4R4pVF%wrgVP	WgPR44K'	VP
4\V4#)r�ar
                    import setuptools
                    setuptools.setup(
                        name="setuptools-test-unicode",
                        version="1.0",
                        packages=["mypkg"],
                        include_package_data=True,
                        scripts=['mypkg/unicode_in_script'],
                    )
                    zmypkg/unicode_in_scriptu�
                    #!/bin/sh
                    # á

                    non_python_fn() {
                    }
                z&setuptools-test-unicode-script-1.0.zipr��utf-8r�)rr�r�r�r��encoder�r�s&&      r�sdist_unicode_in_script�+TestEasyInstallTest.sdist_unicode_in_script�s�����	��
�
&�)����
�#
��<>�
��#���O�O�C��J��4�	�!&��H����x����)@�A�"'������5�z�rc�,�\RR./4pVR,P4p\P!V\	V4R.R7pVP\PR\	V44VP4VPV4R#)zZ
The install command should execute correctly even if
the package has unicode in scripts.
r�rYr�r�r�r�Nr�)r$r�r�rrIr�rgs&&&&   r�test_unicode_content_in_sdist�1TestEasyInstallTest.test_unicode_content_in_sdist�sv���]�^�,<�=�>���8�#�/�/�1���o�o�d��F��3�%�H�����B�J�J��c�&�k�B��������0�1rc�v�R\R43R\R43.pRp\W,4p\WB4V#)r�a
                    import setuptools
                    setuptools.setup(
                        name="setuptools-test-script",
                        version="1.0",
                        scripts=["mypkg_script"],
                    )
                    �mypkg_scriptzg
                     #/usr/bin/python
                     print('mypkg_script')
                     zsetuptools-test-script-1.0.zip)rr��
make_sdist)r$r�r�r�r�s&&   r�sdist_script� TestEasyInstallTest.sdist_script�sX�����	�
�����
�
��06�
��F�'�(���5� ��r�linuxzTest can only be run on Linux��reasonc�j�\RR./4pVR,P4p\P!V\	V4R.R7pVP\PR\	V44VP4VPV4VR,P4'gQhR#)	z
Check scripts are installed.
r�rYr�r�r�r�r�N)
rr�r:rYr�r�r]r�rb�exists)r$r�r�rrIr�rgs&&&&   r�test_script_install�'TestEasyInstallTest.test_script_installs����]�^�,<�=�>���8�#�/�/�1���o�o���F����
��
	���B�J�J��c�&�k�B���������&���'�/�/�1�1�1�1rr#N)r-r.r/r0rMrhrrrr�rl�fixturer�rr�r�r�r��mark�skipif�sys�platformrDr�r1r2r3s@rr6r6Gs�����	U�*�.'�*�"��^�^�!��!�F�(��(� �^�^�'��'�R�2��2��^�^����<�[�[����L�L�#�#�G�,�,�5T���2��2rr6zignore:Unbuilt eggc�2a�]tRtRtoRtRtRtRtVtR#)�TestPTHFileWriteri&c���\R\P!4.4pVP'dQhVP	\\P!444VP'gQhR#)zRa pth file manager should set dirty
if a distribution is in site but also the cwd
�does-not_existN)rr]rk�dirty�add�PRDistribution)r$�pths& r�!test_add_from_cwd_site_sets_dirty�3TestPTHFileWriter.test_add_from_cwd_site_sets_dirty(sL���/�"�)�)�+��?���9�9�9��}�����r�y�y�{�+�,��y�y�y��yrc���Rp\P!V4p\RV.4pVP'dQhVP	\V44VP'dQhR#)z%/test/location/does-not-have-to-existr�N)�
pkg_resourcesrrr�r�r�)r$�locationr�s&  r�test_add_from_site_is_ignored�/TestPTHFileWriter.test_add_from_site_is_ignored1s]��:�� �/�/��9�����
�
���9�9�9��}�����x�(�)��9�9�9��}�9rc��VPR4pVP4\VPR44p\V4p\V4pVPVPu;8Xd.8XgQR4hQR4hVPR4pVP4\V4pVPPV4VP
4VP'gQR4hWuP9gQR4hVP
4WuP9gQR4hVPR,V8XgQR4h\V4PVP8XgQR	4hR
#)z�
If the pth file is modified under the hood, then PthDistribution
will refresh its content before saving, merging contents when
necessary.
�
pth_subdirz	file1.pthz6unless there would be some default added at some point�
src_subdirzEthe new_src_path added must still be present/valid in pth1 after savez:right before we save the entry should still not be presentzJthe new_src_path entry should have been added by pth2 with its save() callzVand it should match exactly on the last entry actually given we append to it in save()zXand we should have the exact same list at the end with a fresh PthDistributions instanceN���)r^�mkdirr�r�paths�append�save)r$r�r��pth_path�pth1�pth2�new_src_path�new_src_path_strs&&      r�*test_many_pth_distributions_merge_together�<TestPTHFileWriter.test_many_pth_distributions_merge_together?se���[�[��.�
������z���{�3�4����)����)���z�z�T�Z�Z�-�2�-�	
�D�	
�-�	
�D�	
�-�
�{�{�<�0�������|�,���
�
���*�+��	�	���z�z�z�	
�S�	
�z� �z�z�1�	
�H�	
�1�	
�	�	���:�:�-�	
�X�	
�-��z�z�"�~��-�	
�
.�	
�-�
 ��)�/�/�4�:�:�=�	
�
5�	
�=rr#N)	r-r.r/r0r�r�r�r1r2r3s@rr�r�&s������)
�)
rr�c#�&"�VR,PRRR7;_uu_4pVP\4RRR4VP4;_uu_4Vx�RRR4R# +'giL7;i +'giR#;i5i)r�r�r���encodingN)�open�write�SETUP_PY�as_cwd)r��fs& r�
setup_contextr�ksZ���
�:�
�	#�	#�C�'�	#�	:�	:�a�	�����
;�	�������
��
;�	:��	���s3�#B�A*� B�A=� 
B�*A:	�5B�=B	�	B�
user_overrider�c�a�]tRtRto]P
!R]P!44t]P
!R]P4]P
!RR4]R444t
]P
!RR4]R44t]R	4t
R
t]P R4t]P R4tR
t]P*R4tRtRtVtR#)�TestUserInstallTestisz;setuptools.command.easy_install.easy_install.check_site_dirz(setuptools.command.easy_install.__file__�site.ENABLE_USER_SITETc�&�VP4R#rv��assert_not_user_siter*s&r�/test_user_install_not_implied_user_site_enabled�CTestUserInstallTest.test_user_install_not_implied_user_site_enableds��	
�!�!�#rFc�&�VP4R#rvr�r*s&r�0test_user_install_not_implied_user_site_disabled�DTestUserInstallTest.test_user_install_not_implied_user_site_disabled�s��	
�!�!�#rc��\4pRVn\P!V4pR.VnVP4VP'dQR4hR#)r��pyzuser should not be impliedN)r�script_namer:rYrJrb�user)rIrgs  rr��(TestUserInstallTest.assert_not_user_site�sL���~��%����o�o�d�#���6��������8�8�8�9�9�9�|�8rc���\P!R4\P!R4p\P!\P
\PR7VPR4R#)�multiprocessing�test_easy_install)�level�streamzthis should not breakN)	rl�importorskip�logging�	getLogger�basicConfig�INFOr��stderr�info)r$�logs& r�test_multiproc_atexit�)TestUserInstallTest.test_multiproc_atexit�sG�����-�.���� 3�4�����'�,�,�s�z�z�B����(�)rc��VR,pVPR4;_uu_4pVPR4RRR4\V4# +'giL;i)zfoo-1.0.egg-infor�z
Name: foo
N)r�r�r�)r$r��egg_filer�s&&  r�foo_package�TestUserInstallTest.foo_package�sB���.�.��
�]�]�3�
�
�1�
�G�G�M�"� ��6�{�� �
�s�A�A	c	#��"�\V4p\P!R\PV.,4;_uu_4\
PPP\P4p\PP\
PVR7;_uu_4Vx�RRR4RRR4R# +'giL;i +'giR#;i5i)zsys.path�r�N)
r�r�patchr�rr]�pathsepr^�dictr�)r$r�r��python_paths&&  r�install_target�"TestUserInstallTest.install_target�s�����V���
�Z�Z�
�C�H�H��x�$7�
8�
8��'�'�/�/�.�.�s�x�x�8�K�����������D�D���E�9�
8�D�D��9�
8�
8�s7�AC0�A/C�2C		�7C�?
C0�	C
�C�C-	�'	C0c��\4pRVn\P!V4pW$nR.VnVP
4VPPV.4VPR4p\PP\PPVP44p\PP\PPV44pWg8XgQhR#)zL
The local index must be used when easy_install locates installed
packages.
r��fooN)rr�r:rYrarJrb�local_index�scanr]r�normcase�realpathr�)r$rrrIrg�res�actual�expecteds&&&     r�test_local_index�$TestUserInstallTest.test_local_index�s���
�~��%����o�o�d�#��(���7������������k�]�+����u�%�����!�!�"�'�'�"2�"2�3�<�<�"@�A���7�7�#�#�B�G�G�$4�$4�[�$A�B���!�!�!rc/�"�VP!V/VB;_uu_4^RIHuHp\P
VnRx�RRR4R# +'giR#;i5i)z_
Wrap sandbox.setup_context to patch easy_install in that context to
appear as user-installed.
N)�orig_context�setuptools.command.easy_install�commandrYr}�	USER_SITE�__file__)r$rJ�kwargsr:s&*, r�user_install_setup_context�.TestUserInstallTest.user_install_setup_context�s?����
�
��
/��
/�
/�8�8��.�.�B�K��	0�
/�
/�
/�s�A�#A
�
A�
A	�	Ac�n�\PVn\P!RVP
4#)z setuptools.sandbox.setup_context)r
r�rrrr#r*s&r�patched_setup_context�)TestUserInstallTest.patched_setup_context�s-��#�1�1����z�z�.��+�+�
�	
r)rN)r-r.r/r0rr�Mock�
prev_sp_writer}r r�r��staticmethodr�rrlr�rrr�
contextlib�contextmanagerr#r&r1r2r3s@rr�r�ss������J�J�E��	�	���M�
�Z�Z�:�D�N�N�K�	�Z�Z�'��.��$��/�L�$�
�Z�Z�'��/��$��0�$��:��:�*��^�^�����^�^����"�"���	��	�
�
rr�c	#�\"�\PRR4p\P!\P
R7;_uu_4\
RRRR7;_uu_4pVPV4RRR4Rx�RRR4R# +'giL;i +'giR#;i5i)zfrom setuptools import setupz from distutils.core import setup)�cdr�r�r�r�N)r��replacer�tempdirr]�chdirr�r�)�distutils_setup_pyr�s  r�distutils_packager3�ss���!�)�)�&�*���
�	�	�R�X�X�	&�	&�
�*�c�G�
4�
4��
�G�G�&�'�5�
�
'�	&�
4�
4��
'�	&�	&�s6�AB,�B�B	�/B�;
B,�B
�B�B)	�#	B,r3c�&a�]tRtRtoRtRtVtR#)�TestDistutilsPackagei�c� �\RR.4R#)r��	bdist_eggNr
r*s&r�)test_bdist_egg_available_on_distutils_pkg�>TestDistutilsPackage.test_bdist_egg_available_on_distutils_pkg�s���*�{�m�,rr#N)r-r.r/r0r8r1r2r3s@rr5r5�s����-�-rr5c��\4pVP^8Xd\P!R4VP	4V#)�zcould not find a valid port)r�server_portrl�skip�start)�p_indexs r�
mock_indexr@�s6���l�G����a��	���1�2��M�M�O��Nrc�,a�]tRtRtoRtRtRtVtR#)�TestInstallRequiresi�c��VR,pVPRR7VR,pVPRR7VPV4\PRRRR\	V4R\	V4R	\	V4R
\	V4R\	V4R\	V4R
\	V4.p/\
PCRVP/Cp\P!V\	V4V\P\PRRR7pVP^8wgQhRVPUu0uFq�PkK	up9gQh\RVP P#444'gQhR#uupi \$dGRTP 9d4\&P(!\P*RTP 24hi;i)zf
When ``python setup.py install`` is called directly, it will use easy_install
to fetch dependencies.
�projectT)�exist_ok�install�-c� __import__("setuptools").setup()z--install-basez
--install-libz--install-headersz--install-scriptsz--install-dataz--install-purelibz--install-platlib�__EASYINSTALL_INDEXr�)�cwd�env�stdoutr�textr��/does-not-exist/c3�J"�TFpRV9gKRV9gKVx�K	R#5i)z"not find suitable distribution forzdoes-not-existNr#)�.0�lines& r�	<genexpr>�OTestInstallRequires.test_setup_install_includes_dependencies.<locals>.<genexpr>s0����2�D�7�4�?��%��,���2�s�	#�#�
#zfailed to get random numbersz failure - N)r��create_projectr��
executabler�r]r��url�
subprocess�run�PIPE�STDOUT�
returncode�requestsrr?rL�
splitlines�	Exceptionrl�xfailr�)	r$�tmp_pathr@�project_root�install_rootrgrK�cp�rs	&&&      r�(test_setup_install_includes_dependencies�<TestInstallRequires.test_setup_install_includes_dependencies�s��� �)�+�����D��)��)�+�����D��)����L�)��N�N��.������������������������������%
��(D����C�2�J�N�N�C��
�^�^���L�!���?�?��$�$���
���}�}��!�!�!�	�%�*�:M�:M�)N�:M�Q�&�&�:M�)N�N�N�N����I�I�0�0�2����
���*O���	�-����:�������~�[�����D�E��	�s�F�.E?�;F�?F�AGc�~�RpVR,P\V4RR7VR,P4R#)z�
        [metadata]
        name = project
        version = 42

        [options]
        install_requires = does-not-exist
        py_modules = mod
        �	setup.cfgr�r�zmod.pyN)�
write_textr�touch)r$�root�configs&& rrT�"TestInstallRequires.create_project's7����
��	�'�'��V��w�'�G�	
�����!rr#N)r-r.r/r0rerTr1r2r3s@rrBrB�s����6�p"�"rrBc�a�]tRtRtoRt]]PR44tRt	]
PPR]	4R4t
]
PPR]	4R4t]
PPR]	4R4tRtR	tR
tRt]
PPRR4R
4tRtRtRtVtR#)�TestSetupRequiresi5c�0�VPRR4VPRR4VPRR4\P!4;_uu_4\P	4;_uu_4p\P
!4;_uu_4p\P!VR7;_uu_4\PRRR	R
VPRRVV.
p\P!V4P4R
R
R
4R
R
R
4R
R
R
4R
R
R
4VPUu.uFqfPNK	upR.8XgQhR
# +'giLW;i +'giLb;i +'giLm;i +'giLx;iuupi)z�
When easy_install installs a source distribution which specifies
setup_requires, it should honor the fetch parameters (such as
index-url, and find-links).
�PIP_RETRIES�0�PIP_TIMEOUTr�falser
rGrHrYz--index-urlz--exclude-scriptsz
--install-dirNrN)rr�quietro�create_sdistr0�environmentr�rUrVrW�Popen�waitr\r)r$r@r�	dist_file�temp_install_dirrgrds&&&    r�'test_setup_requires_honors_fetch_params�9TestSetupRequires.test_setup_requires_honors_fetch_params6s'��	���=�#�.����=�#�.����>�7�3�
�^�^�
�
�"�/�/�1�1�Y��%�%�'�'�+;�!�-�-�9I�J�J��N�N� �>�*�)�&�N�N�/�+�,�%���#�(�(��-�2�2�4�K�(�2��&!+� 3� 3�4� 3�1��� 3�4�9K�8L�L�L�L�K�J��(�'��2�1���
��&5s[�F�1E-	� E
�/A	E�8E
�E-	�F�&F�E�E
�E*�%E-	�-E=
�8F�F	c	#�"�\P!4;_uu_4p\PP	VR4p\VR\
R43R.4Vx�RRR4R# +'giR#;i5i)zT
Return an sdist with a setup_requires dependency (of something that
doesn't exist)
z"setuptools-test-fetcher-1.0.tar.gzr�a
                    import setuptools
                    setuptools.setup(
                        name="setuptools-test-fetcher",
                        version="1.0",
                        setup_requires = ['does-not-exist'],
                    )
                N�rhr�)rr0r]rr^r�r)�dir�	dist_paths  rrv�TestSetupRequires.create_sdistTsn����
�
�
�
�3������S�*N�O�I���#���	��&��
�&�O�+ �
�
�
�s�A<�>A(�
A<�(A9	�3	A<�
use_setup_cfgc��\RRRR7p\P!V4\P!4;_uu_4\P
!4;_uu_4p\
W1R7p\PPVR4p\P!4;_uu_4wrg\VR.4RRR4XP4p\V4^8�gQhVR
,P4R	8XgQhRRR4RRR4R# +'giLc;i +'giL-;i +'giR#;i)a
Regression test for distribution issue 323:
https://bitbucket.org/tarek/distribute/issues/323

Ensures that a distribution's setup_requires requirements can still be
installed and used locally even if a conflicting version of that
requirement is already on the path.
zdoes-not-matter�foobar�0.0��project_name�version�r�r��--nameN�test_pkgr�)r�r	r�r�save_pkg_resources_stater0�create_setup_requires_packager]rr^rur�	readlines�len�strip)	r$r��	fake_dist�temp_dirr��
test_setup_pyrL�_stderr�liness	&&       r�.test_setup_requires_overrides_version_conflict�@TestSetupRequires.test_setup_requires_overrides_version_conflictys���#��H�e�
�	�	���	�"�
�
.�
.�
0�
0��!�!�#�#�x�8����!#�����X�z� B�
��^�^�%�%�):�&��m�h�Z�8�&�
�(�(�*���5�z�A�~�%�~��R�y���(�J�6�6�6�$�1�
0�&�%��$�#��1�
0�
0�s>�D;� A
D(	�*D
�:AD(	�D;�D%� D(	�(D8
�3D;�;E	c
��\P!4;_uu_4\P!4;_uu_4p\PPVR4p\
VRR4\PPVR4p\P!V4\P!V4;_uu_4pRVn
VPV4RRR4\PP^V4\VRRR7p\P !V4\#R4p\%VRR	\VVR
7p\PPVR4p	\P&!4;_uu_4wr�\)V	R.4RRR4RX
P349gQhV
P54p\7V4^8�gQhVR,P94R8XgQhRRR4RRR4R# +'giEL5;i \*P,d\.P0!R
4L�i;i +'giL�;i +'giLr;i +'giR#;i)z�
Like ``test_setup_requires_overrides_version_conflict`` but where the
``setup_requires`` package is part of a namespace package that has
*already* been imported.
zfoo_bar-0.1.tar.gzzfoo.bar�0.1zfoo_bar-0.1c��V#rvr#)�memberrs&&rrR�FTestSetupRequires.test_setup_requires_override_nspkg.<locals>.<lambda>�s��rNr�a�                    import foo  # Even with foo imported first the
                                # setup_requires package should override
                    import setuptools
                    setuptools.setup(**%r)

                    if not (hasattr(foo, '__path__') and
                            len(foo.__path__) == 2):
                        print('FAIL')

                    if 'foo_bar-0.2' not in foo.__path__[0]:
                        print('FAIL')
                z0.2r�r�r�z9Installing setup.py requirements caused a VersionConflict�FAILr�r�)rr�r0r]rr^�make_nspkg_sdistr��tarfiler��extraction_filter�
extractallr��insertr�r	r�rr�rurr��VersionConflictrl�fail�getvaluer�r�r�)
r$r�r��foobar_1_archive�foobar_1_dir�tfrI�templater�r�rLr�r�s
&&           r�"test_setup_requires_override_nspkg�4TestSetupRequires.test_setup_requires_override_nspkg�s����
.�
.�
0�
0��!�!�#�#�x�#%�7�7�<�<��:N�#O� � �!1�9�e�D� "�w�w�|�|�H�m�D������&��\�\�"2�3�3�r�+F�B�(��M�M�,�/�4�������<�0�%� �y�%�������%����� 9����$��"/�
��!#�����X�z� B�
��^�^�%�%�):�&��"�-�(��<�	&��V�_�_�%6�6�6�6��(�(�*���5�z�A�~�%�~��R�y���(�J�6�6�6�s$�1�
0�4�3�3��T)�8�8�����W����&�%��Y$�#��1�
0�
0�ss�I/�BI	�>H
�B)I	�I	
�
H�AI	�2I/�H�	I	�+I�I	
�I�I	
�	I�I	�I,
�'I/�/J	c��Rp\P!4;_uu_4\P!4;_uu_4p\V\	RR7VVR,R7p\
PPVR4p\P!4;_uu_4wrg\VR.4RRR4XP4p\V4^8�gQhVR,P4R8XgQhRRR4RRR4R# +'giLc;i +'giL-;i +'giR#;i)	c
�x�R\RV:RV:RV:R243VR,\R43.p\W4R#)r�zj
                    import setuptools
                    setuptools.setup(
                        name=z",
                        version=z&,
                        py_modules=[z-],
                    )
                    z.pyz6
                    version = 42
                    N)rr�)r��distnamer�r�s&&& r�make_dependency_sdist�VTestSetupRequires.test_setup_requires_with_attr_version.<locals>.make_dependency_sdist�sk�����'�\�*!�!(��,%�%-�L�1��	���u�$������E�.
�y�(rzattr: foobar.version)r�)�setup_attrs�make_packager�r��	--versionN�42r�)
rr�r0r�r
r]rr^rurr�r�r�)	r$r�r�r�r�r�rLr�r�s	&&       r�%test_setup_requires_with_attr_version�7TestSetupRequires.test_setup_requires_with_attr_version�s���	)�4�
.�
.�
0�
0��!�!�#�#�x�8�� $�-C� D�!6�"/�,�">�	��!#�����X�z� B�
��^�^�%�%�):�&��m�k�]�;�&��(�(�*���5�z�A�~�%�~��R�y���(�D�0�0�0�$�1�
0�&�%��$�#��1�
0�
0�s<�D.�AD	�D
�-AD	�6D.�D�D	�D+
�&D.�.D?	c
��VPRR4VPRR4VPRR4VPRVP4\P!4;_uu_4\P!4;_uu_4p\VRR\
.R7R	7p\PPVR
4p\VRRR
7;_uu_4pVP\R44RRR4\PPVR4p\P!\P P"4;_uu_4\%VR.4RRR4RRR4RRR4\'VP(4^8XgQhVP(^,PR8XgQhR# +'giL�;i +'giLu;i +'giL�;i +'giL�;i)rqrrrsrrt�
PIP_INDEX_URL�python-xlib�0.19��dependency_links�r�rhr�r�r�z}
                        [easy_install]
                        index_url = https://pypi.org/legacy/
                        Nr�r�z
/python-xlib/)rrVrr�r0r�r
r]rr^r�r�rrlrmrnrorprr�r\)r$r@rr�r��test_setup_cfg�fpr�s&&&     r�"test_setup_requires_honors_pip_env�4TestSetupRequires.test_setup_requires_honors_pip_envst�����=�#�.����=�#�.����>�7�3����?�J�N�N�;�
�
.�
.�
0�
0��!�!�#�#�x�8��!�� $�b� 9�	��"$�����h��!D���.�#��@�@�B��H�H�����A�!#�����X�z� B�
��]�]�9�#3�#3�#B�#B�C�C��m�k�]�;�D�%$�1�*�:�&�&�'�1�,�,�,��"�"�1�%�*�*�o�=�=�=�A�@��D�C��%$�#��1�
0�sV�0G8�AG%	�F?
�9AG%	�G
�%G%	�-G8�?G�
G%	�G"�G%	�%G5
�0G8�8H	c
��VPRR4VPRR4VPRVP4\P!4;_uu_4\P!4;_uu_4p\
PPVR4p\VRR4\VRR7p\VR	R
\RV2R7R
7p\
PPVR4p\VR.4RRR4RRR4\VP4^8XgQhR# +'giL6;i +'giLA;i)rqrrrsr�z
dep.tar.gz�
dependencyr��	localhost)�	authorityr�r�z
dependency @ ��setup_requiresr�r�r�N)rrVrr�r0r]rr^�make_trivial_sdistrr�r
rr�r\)r$r@rr��	dep_sdist�dep_urlr�r�s&&&     r�#test_setup_requires_with_pep508_url�5TestSetupRequires.test_setup_requires_with_pep508_url$s������=�#�.����=�#�.����?�J�N�N�;�
�
.�
.�
0�
0��!�!�#�#�x��G�G�L�L��<�@�	�"�9�l�D�A�%�i�;�G��8��!�� $�m�G�9�4M� N���!#�����X�z� B�
��-�+��7�$�1��:�&�&�'�1�,�,�,�$�#��1�
0�s%�E�<BD.	�E�.D>
�9E�E	c��RR\R4R\R4//p\P!4;_uu_4\P!4;_uu_4p\P
!W#R7\
\P!VRR44p\P!\PP4;_uu_4\VR.4RRR4RRR4RRR4\VP 4^8XgQhR# +'giL>;i +'giLI;i +'giLT;i)	z2The `allow-hosts` option in not supported anymore.r�r�z~
                    from setuptools import setup
                    setup(setup_requires='python-xlib')
                    rhz\
                    [easy_install]
                    allow_hosts = *
                    ��prefixr�N)rrr�r0r�buildr��pathlibrrlrmrnrorprr�r\)r$r@r�r��setup_pys&&   r�$test_setup_requires_with_allow_hosts�6TestSetupRequires.test_setup_requires_with_allow_hosts8s���
��D����T���
�
�� �
.�
.�
0�
0��!�!�#�#�x��
�
�5�2��w�|�|�H�j�*�M�N���]�]�9�#3�#3�#B�#B�C�C��h��
�6�D�$�1��:�&�&�'�1�,�,�,�D�C��$�#��1�
0�s<�D/�A/D	�D	
�D	�D/�	D�D	�D,
�'D/�/D?	c�H�VPRR4VPRR4VPRR4VPRR4Rp\\W#,44pRp\\W#,4R	R
V4Rp\\W&,44pR\P
PR
\P
PR2p\\W&,4R	RV4VR,p	V	P\R4PVVVVVVR7R4\\V	44p
\P!4;_uu_4\\V4RR\R	V
.R7R7p\P P#VR4p\%VR.4RRR4\'\)\\*P,!\P P#XR4444p
V
R.8XgQhR# +'giLg;i)z#Check `python_requires` is honored.rqrrrsr�1�PIP_VERBOSEzdep-1.0.tar.gzz>=2.7�dep�1.0zdep-2.0.tar.gzz!=�.z.*z2.0z
index.htmla�
            <!DOCTYPE html>
            <html><head><title>Links for dep</title></head>
            <body>
                <h1>Links for dep</h1>
                <a href="{dep_1_0_url}"data-requires-python="{dep_1_0_python_requires}">{dep_1_0_sdist}</a><br/>
                <a href="{dep_2_0_url}"data-requires-python="{dep_2_0_python_requires}">{dep_2_0_sdist}</a><br/>
            </body>
            </html>
            )�dep_1_0_url�
dep_1_0_sdist�dep_1_0_python_requires�dep_2_0_url�
dep_2_0_sdist�dep_2_0_python_requiresr�r�r�)r�r�r�r�r�Nz.eggszdep 1.0)rrr��make_python_requires_sdistr��version_info�major�minorrir�formatrr�r�r
r]rr^r�list�mapr��find_distributions)r$rr�r�r�r�r�r�r��index�	index_urlr�r��eggss&&&           r�(test_setup_requires_with_python_requires�:TestSetupRequires.test_setup_requires_with_python_requiresRs������=�#�.����=�#�.����>�3�/����=�#�.�(�
�!�#�f�&<�"=�>��")��"���&�'���7N�	
�)�
�!�#�f�&<�"=�>����!�!�'�'�(��#�*:�*:�*@�*@�)A��D�	 �	#���&�'���7N�	
���%��
�����

��f�'�+�(?�'�+�(?�
��
�-	
�0 ��E�
�+�	�
�
.�
.�
0�
0�4��F���� ����T�	�H��G�G�L�L��:�>�M��m�k�]�3�1����]�5�5�b�g�g�l�l�8�W�6U�V�W�
���	�{�"�"�"�1�
0�s
� AH�H!	�!with_dependency_links_in_setup_pyc��VPRR4VPRR4\P!4;_uu_4\P!4;_uu_4p\	\
PPVR4RR4\
PPVR4p\
PPVR4p\
PPVR4p\
P!V4\VR	R
R7;_uu_4pV'd#\
PPVR4.pM.pVP\R
4PVR74RRR4\VR	R
R7;_uu_4pVP\R4P\
PPVR4VR74RRR4\VR.4RRR4RRR4R# +'giL�;i +'giLB;i +'giL@;i +'giR#;i)rqrrrszpython-xlib-42.tar.gzr�r�r�r�rhr�r�r��linksz�
                        from setuptools import installer, setup
                        setup(setup_requires='python-xlib==42',
                        dependency_links={dependency_links!r})
                        r�Nz�
                        [easy_install]
                        index_url = {index_url}
                        find_links = {find_links}
                        r�)r�r\r�)rrr�r0r�r]rr^r�r�r�rr�r)	r$rr�r�r�r�r�r�r�s	&&&      r�0test_setup_requires_with_find_links_in_setup_cfg�BTestSetupRequires.test_setup_requires_with_find_links_in_setup_cfg�s���	���=�#�.����=�#�.�
�
.�
.�
0�
0��!�!�#�#�x�"��G�G�L�L��+B�C�]�TX���7�7�<�<��*�=�� "�����X�z� B�
�!#�����h��!D������"��-��w�?�?�2�8�,.�G�G�L�L��7�,K�+L�(�+-�(��H�H����!�&�2B�&�C��@��.�#��@�@�B��H�H����!�&�&(�g�g�l�l�8�W�&E�'/�!���A��-�+��7�G$�1�
0�@�?��A�@��-$�#��1�
0�
0�sW�H7� B8H$	�AG>
�/H$	�
A
H
�H$	�,H7�>H�	H$	�H!�H$	�$H4
�/H7�7I	c�z�\P!4;_uu_4\P!4;_uu_4p\\P
P
VR4RR4\P
P
VR4p\P!V4\
P!R\R4RR/VR	7\\P
P
VR4R
.4\P!V4\P
P
VR4p\P
P
VR4p\P!V4\VRR
R7;_uu_4pVP\R44RRR4VPR\!V44VPRR4VPRR4VPRR4\VR.4RRR4RRR4R# +'giL�;i +'giL-;i +'giR#;i)z�
Use case: installing a package with a build dependency on
an already installed `dep[extra]`, which in turn depends
on `extra_dep` (whose is not already installed).
�extra_dep-1.0.tar.gz�	extra_depr�r�r�a
                          import setuptools
                          setuptools.setup(
                              name='dep', version='2.0',
                              extras_require={'extra': ['extra_dep']},
                          )
                         rhr�r��	dist_infor�r�r�r���
                        from setuptools import installer, setup
                        setup(setup_requires='dep[extra]')
                        N�PIP_FIND_LINKSrr�rqrrrsr�)rr�r0r�r]rr^r�r�rrr	�	add_entryr�r�rr��r$rr��dep_pkgr�r�r�s&&     r�4test_setup_requires_with_transitive_extra_dependency�FTestSetupRequires.test_setup_requires_with_transitive_extra_dependency�s����
.�
.�
0�
0��!�!�#�#�x�"��G�G�L�L��+A�B�K�QV���'�'�,�,�x��7������!��
�
�"�D��%�$�R��#�� �"�'�'�,�,�w�
�;�k�]�K��%�%�g�.��7�7�<�<��*�=�� "�����X�z� B�
�����"��-��w�?�?�2��H�H�����@��"�"�#3�S��]�C��"�"�>�3�7��"�"�=�#�6��"�"�=�#�6��-�+��7�Y$�1�
0�>@�?��=$�#��1�
0�
0�s<�H)�D4H	�0H
�A&H	�1H)�H�H	�H&
�!H)�)H:	c��\P!4;_uu_4\P!4;_uu_4p\\P
P
VR4R\R43RR.4\P
P
VR4p\P!V4\
P!R\R4RRR\R	4/VR
7\\P
P
VR4R.4\P!V4\P
P
VR4p\P
P
VR4p\P!V4\VR
RR7;_uu_4pVP\R44RRR4VPR\!V44VPRR4VPRR4VPRR4\VR.4RRR4RRR4R# +'giL�;i +'giL-;i +'giR#;i)zS
Use case: ensure build requirements' extras
are properly installed and activated.
r�r�a$
                          import setuptools
                          setuptools.setup(
                              name='extra_dep',
                              version='1.0',
                              py_modules=['extra_dep'],
                          )
                          rhr��epdepa(
                          import setuptools
                          setuptools.setup(
                              name='dep', version='2.0',
                              py_modules=['epcmd'],
                              extras_require={'extra': ['extra_dep']},
                              entry_points='''
                                           [distutils.commands]
                                           epcmd = epcmd:epcmd [extra]
                                           ''',
                          )
                         zepcmd.pya
                                     from distutils.command.build_py import build_py

                                     import extra_dep

                                     class epcmd(build_py):
                                         pass
                                     r�r�r�r�r�r�r�Nr�rr�rqrrrs�epcmdr)zextra_dep.pyr�)rr�r0r�r]rr^rr�r�rr	r�r�r�rr�r�s&&     r�.test_setup_requires_with_distutils_command_dep�@TestSetupRequires.test_setup_requires_with_distutils_command_dep�s���
�
.�
.�
0�
0��!�!�#�#�x���G�G�L�L��+A�B�'� �!�	��*�,���*�'�'�,�,�x��9������!��
�
�"�D��
%�$�R�"�D�)�	%�!�6#�9�>�"�'�'�,�,�w�
�;�k�]�K��%�%�g�.��7�7�<�<��*�=�� "�����X�z� B�
�����"��-��w�?�?�2��H�H�����@��"�"�#3�S��]�C��"�"�>�3�7��"�"�=�#�6��"�"�=�#�6��-�'��3�Y$�1�
0�~@�?��}$�#��1�
0�
0�s<�I�EH.	�H
�#A&H.	�	I�H+�&H.	�.H>
�9I�I	r#N)r#r�r�)r�r�)FT)r-r.r/r0r|r*r+r,rvr�rlr��parametrizer�r�r�r�r�r�r�r�r�rr1r2r3s@rroro5s�����M�<��������8�M��[�[���_�m�<�7�=�7�<�[�[���_�m�<�A7�=�A7�F�[�[���_�m�<�(1�=�(1�T>�:-�(-�4:#�x�[�[���@�-�P�)8�Q�)8�V38�jR4�R4rroc�J�\VR\RV:RV:R243R.4R#)zP
Create a simple sdist tarball at dist_path, containing just a simple
setup.py.
r�zT             import setuptools
             setuptools.setup(
                 name=z,
                 version=z
             )
         Nr)r�r)r�r�r�s&&&rr�r�DsK������� �l�#�!��%
�	
��
�
�	
�rc��RV9gQhVPR4pV^,p\^\V4^,4Uu.uFpRPVRV4NK	pp\	RV:RV:RV:RV:R2	4pRpR	V3\
PPVR
4V3.p	VR,FKp
\
PP!V
PR4R
.,!pV	PVR34KM	\W	4R#uupi)
z�
Make an sdist tarball with distname and version which also contains one
package with the same name as distname.  The top-level package is
designated a namespace package).
r�NzE        import setuptools
        setuptools.setup(
            name=z,
            version=z,
            packages=z",
            namespace_packages=[z]
        )
    z7__import__('pkg_resources').declare_namespace(__name__)r�z__init__.py:�NNr�)	�split�ranger�r^rr]rr�r�)r�r�r��parts�	nspackage�idx�packagesr��initr��packager�s&&&         rr�r�^s���(�?��?��N�N�3��E��a��I�16�q�#�e�*�q�.�1I�J�1I�#�����t���%�1I�H�J��
�����K� ��\�"!�!*�
�.�
	�
�H�E�D��(�
#�b�g�g�l�l�9�m�&L�d�%S�T�E��B�<�<���7�7�<�<�'�-�-��"4�
��"F�H��
���h��^�$� ��y� ��+Ks�D
c
�Z�\VR\R4PWVR73R.4R#)r�z�                import setuptools
                setuptools.setup(
                  name={name!r},
                  version={version!r},
                  python_requires={python_requires!r},
                )
                )r!r��python_requiresNr)r�rr�)r�r�r�rs&&&&rr�r��sD�������	��&�!�O���
�
�!	
�rc���\V4^8�gQh\P!VR4;_uu_4pVF�wr4\P!VPR44p\P!VR7p\VP44Vn\\P!44VnVPWeR7K�	RRR4R# +'giR#;i)zy
Create a simple sdist tarball at dist_path, containing the files
listed in ``files`` as ``(filename, content)`` tuples.
zw:gzr�)r!)�fileobjN)
r�r�r��io�BytesIOr��TarInfor��size�int�time�mtime�addfile)r�r�rIr�r��
file_bytes�	file_infos&&     rr�r��s����u�:��>��>�	���i��	(�	(�D�!&��H����G�N�N�7�$;�<�J����X�6�I� ��!4�!4�!6�7�I�N�!�$�)�)�+�.�I�O��L�L��L�7�"'�
)�	(�	(�	(�s�BC�C(	r�r�c
��\V4pRRRRRVRV2.R\PPV4./pV'dVP	V4\PPVR4p	\P!V	4V'd�.p
.pVFqpVPV4p
VRP49dTpMT
p\V
\\34'dR	PV
4p
VPVR
V
24Ks	\R4PRPV
4RPV4R
7pMRp\\PPV	R4RRR7;_uu_4pVP!V4RRR4Vf\R4p\\PPV	R4RRR7;_uu_4pVP!WH,4RRR4\PPWRVR24pV!VW4V	# +'giL�;i +'giLS;i)aCreates a source tree under path for a trivial test package that has a
single requirement in setup_requires--a tarball for that requirement is
also created and added to the dependency_links argument.

``distname`` and ``version`` refer to the name/version of the package that
the test package requires via ``setup_requires``.  The name of the test
package itself is just 'test_pkg'.
r!r�r�r�r�z==r�zname version�;z: zg
            [metadata]
            {metadata}
            [options]
            {options}
            �
)�options�metadatar�rhr�r�r�NzI            import setuptools
            setuptools.setup(**%r)
        r��-z.tar.gz)rr]r�abspath�updater^r��popr�
isinstance�tupler�r�rr�r�r�)rr�r�r��setup_py_templater�r��normalized_distname�test_setup_attrsr�r!r"r!�value�section�test_setup_cfg_contentsr��foobar_paths&&&&&&&           rr�r��s��$%�X�.���
��5��1�2�"�W�I�>�?��R�W�W�_�_�T�2�3�	�������,��w�w�|�|�D�*�-�H��H�H�X�������!�D�$�(�(��.�E��~�+�+�-�-�"��!���%�%���/�/��������N�N�d�V�2�e�W�-�.�"�#'�
�#
��&��I�I�g�&��Y�Y�x�(��
�	 �#%��	
�b�g�g�l�l�8�[�1�3��	I�	I�Q�	���'�(�
J�� � �
�
��
�b�g�g�l�l�8�Z�0�#��	H�	H�A�	���!�4�5�
I��'�'�,�,�t�'<�A�g�Y�g�%N�O�K���h�0��O�#
J�	I��
I�	H�s�=H*�H=�*H:	�=I
	�javaz0Test cannot run under java when executable is shr�c�@a�]tRtRtoRtRtRtRtRtRt	Rt
VtR	#)
�TestScriptHeaderi�u/Users/José/bin/pythonz$C:\Program Files\Python36\python.exec���R\P!\PP	\
P44R2p\PPR4pW!8XgQhR#)�#!r z#!/usr/local/bin/pythonN�	r:�nt_quote_argr]r�normpathr�rUr@�
get_header�r$rrs&  r�test_get_script_header�'TestScriptHeader.test_get_script_headersN���������(8�(8����(H�I�J�"�M�����+�+�,E�F���!�!�!rc���R\P!\PP	\
P44R2p\PPR4pW!8XgQhR#)r4� -x
z#!/usr/bin/python -xNr5r9s&  r�test_get_script_header_args�,TestScriptHeader.test_get_script_header_argssN���������(8�(8����(H�I�J�%�P�����+�+�,B�C���!�!�!rc��\PPRVPR7pRVPR2pW8XgQhR#)�#!/usr/bin/python�rUr4r=N)r:r@r8�
non_ascii_exe�r$rrs&  r�$test_get_script_header_non_ascii_exe�5TestScriptHeader.test_get_script_header_non_ascii_exe
sI�����+�+��D�,>�,>�,�
����*�*�+�5�1���!�!�!rc��\PPRRVP,R,R7pRVPR2pW8XgQhR#)rA�"rB�#!"z"
N)r:r@r8�exe_with_spacesrDs&  r�&test_get_script_header_exe_with_spaces�7TestScriptHeader.test_get_script_header_exe_with_spacessS�����+�+��C�$�2F�2F�,F��,L�,�
����-�-�.�c�2���!�!�!rr#N)r-r.r/r0rCrJr:r>rErKr1r2r3s@rr2r2�s*����
.�M�=�O�"�
"�
"�"�"rr2c��a�]tRtRtoRtRt]P!R]P4]PP]P4R44t
RtV3RlRltR	tVtR
#)�TestCommandSpecic�d�\P!RR.4pVP4R8XgQhR#)z`
Show how a custom CommandSpec could be used to specify a #! executable
which takes parameters.
z/usr/bin/env�python3z#!/usr/bin/env python3
N)r:r;r>�r$rgs& r�test_custom_launch_command�*TestCommandSpec.test_custom_launch_commands,��
�n�n�n�i�8�9���}�}��"<�<�<�<rc��\P!R.4p\PPV4pWJgQhR#)z7
from_param should return an instance of a CommandSpec
�pythonN)r:r;�
from_param)r$rg�cmd_news&  r�.test_from_param_for_CommandSpec_is_passthrough�>TestCommandSpec.test_from_param_for_CommandSpec_is_passthrough"s2���n�n�h�Z�(���.�.�+�+�C�0���~��~rzsys.executablec���\PPRR4\PP4p\
V4^8XgQhVP4PR4'gQhR#)�__PYVENV_LAUNCHER__NrI)	r]r�r&r:r;r=r�r>rDrQs& r�/test_from_environment_with_spaces_in_executable�?TestCommandSpec.test_from_environment_with_spaces_in_executable*sV��	�
�
���,�d�3��n�n�-�-�/���3�x�1�}��}��}�}��)�)�%�0�0�0�0rc��\PPR4p\V4^8XgQhRVP	49gQhR#)zn
In order to support `executable = /usr/bin/env my-python`, make sure
from_param invokes shlex on that input.
z/usr/bin/env my-pythonrHN)r:r;rVr�r>rQs& r�"test_from_simple_string_uses_shlex�2TestCommandSpec.test_from_simple_string_uses_shlex2s=��
�n�n�'�'�(@�A���3�x�1�}��}��#�-�-�/�)�)�)rc�<�V^8�dQhRR/#)r8�returnNr#)r�r4s"�r�__annotate__�TestCommandSpec.__annotate__;s�����t�rc�&�\P!\4;_uu_4p\PP\
44RRR4\XP4R8XgQVP4hR# +'giL=;i)zS
from_param should raise its own TypeError when the argument's type is unsupported
Nz1Argument has an unsupported type <class 'object'>)	rlrm�	TypeErrorr:r;rV�objectr�r,)r$�exc_infos& r�%test_from_param_raises_expected_error�5TestCommandSpec.test_from_param_raises_expected_error;s_���]�]�9�
%�
%���N�N�%�%�f�h�/�&�
�����#V�V�	��>�>�	�V�&�
%�s�(B�B	r#N)r-r.r/r0rRrXrrr2rJr
r]r�r\r_rir1r2r3s@rrNrNs_����=��
�Z�Z� �"2�"B�"B�C�	�Z�Z�_�_�R�Z�Z� �1�!�D�1�*��rrNc�&a�]tRtRtoRtRtVtR#)�TestWindowsScriptWriteriFc��\PPR4pVPR4'gQhVP	R4'gQhVPR4pVP
R4pVPR4'dQhR#)r�r4r z\"N)r:�WindowsScriptWriterr8rD�endswith�lstrip�rstrip)r$�hdrs& r�test_header�#TestWindowsScriptWriter.test_headerGsv���$�$�/�/��3���~�~�d�#�#�#�#��|�|�D�!�!�!�!��j�j�����j�j�����>�>�%�(�(�(�(�(rr#N)r-r.r/r0rsr1r2r3s@rrlrlFs����)�)rrlc�,a�]tRtRtoV3RltRtVtR#)�VersionStubiQc�V<�V^8�dQh/S[;R&S[;R&S[;R&S[;R&S[;R&#)r8r�r��micro�releaselevel�serial)rr�)r�r4s"�rrc�VersionStub.__annotate__Qs>�����J���J���J����	�

�K�rr#N)r-r.r/r0�__annotate_func__r1r2r3s@rrvrvQs����rrvc�~�\4pVPR4pR.Vn^VnRVn\V4VnRVnVPR4p\V4VnRVnVP4;_uu_4p\P!4;_uu_4\P!R4Rp\^^
^R^4pVPRR4VPR	V4VPR
V4VPVR\P!44VP!4RRR4RRR4\#\$R4'dR
MRp	VP&P)4p
\*P,!V	R,V
4'd'\*P,!V	R,V
4'gQhVP.R,R8XgQhVP.R,R8XgQhVP.R,R8XgQhR# +'giL�;i +'giL�;i)rYrWTNrF�ignorez:3.10.1 (main, Dec 21 2021, 09:17:12) [GCC 10.2.1 20210110]�finalr�zsys.versionzsys.version_info�create_home_path�pypy_version_info�pypyrUz3\.?1z3\.?1\d�
py_versionz3.10.1�py_version_shortz3.10�py_version_nodot�310)r�get_command_objrJ�optimizer�r��install_userbase�install_usersite�context�warnings�catch_warnings�simplefilterrvr|rr(�finalize_options�hasattrr�ra�lowerrErF�config_vars)r��
tmpdir_cwdrrIrg�install_cmdrr�rr!ras&&&        r�&test_use_correct_python_version_stringr�Ys����>�D�
�
�
�~�
.�C��v�C�H��C�L��C�H��v�;�C���C���&�&�y�1�K�#&�v�;�K� �#'�K� �	�	�	�	�	�%��)@�)@�)B�)B����h�'�N���1�b�!�W�a�0��
�
�
�-�t�4�
�
�
�m�W�-�
�
�
�(�$�/�
�
�
�c�-�t�y�y�{�;�����*C�	��S�"5�6�6�6�H�D��/�/�'�'�)�K�
�y�y����+�.�.��y�y��
�*�K�8�8�8�8�
�?�?�<�(�H�4�4�4��?�?�-�.�&�8�8�8��?�?�-�.�%�7�7�7�9*C�)B��	�	�s%�	H,�'BH	�;H,�H)
�$H,�,H<	�darwinzDhttps://github.com/pypa/setuptools/pull/4716#issuecomment-2447624418c��VPRR4VPR\VR,44VPR\VR,44VPR\VR,44VPRR4VPR	R4\\P
!44pVP
R
R
R7VR,pVP
R
R
R7VPR
\V44RpVR,PVRR7\VPR44.8XgQh\VPR44.8XgQh\RRR.4\VPR44.8XgQhVPR4Uu0uFqfPkK	ppVR0,
pVR08XgQhR#uupi)zC`setup.py develop` should honor `--user` even under build isolationr�F�HOMEz.home�USERPROFILE�APPDATAzsite.USER_BASENzsite.USER_SITET)�parentsrEz.sys_prefixz
sys.prefixzF__import__('setuptools').setup(name='aproj', version=42, packages=[])
r�r�r��*�developz--userzeasy-install.pthzaproj.egg-link)r|rr�rr}�getusersitepackagesr�rir��globrr!)r�rr`�	user_site�
sys_prefix�setup_scriptr��	installeds&&&     r�&test_editable_user_and_build_isolationr��s������/��7�(���v�s�8�g�#5�6�7����}�c�(�W�*<�&=�>����y�#�h��&8�"9�:����(�$�/����(�$�/��T�-�-�/�0�I�
�O�O�D�4�O�0��M�)�J����T�D��1�����c�*�o�6�	R���
��&�&�|�g�&�F��
����$�%��+�+�+��	���s�#�$��*�*�*��j�9�h�/�0��
����$�%��+�+�+�!*����!4�5�!4�A���!4�I�5��/�0�0�I��)�*�*�*�*��6s�%Gr#)U�__doc__r+rrBr�r]r�rEr}rWr�r�r_rr�r�r�typingr�unittestrrl�jaracorr�rrrYr:rr�rr	�
setuptoolsr
�setuptools._normalizationrr�setuptools.dist�setuptools.sandboxr�setuptools.testsr�setuptools.tests.serverrrr�r�textwrapr�distutils.errorsrnr�rrr�r6r��filterwarningsr�r��usefixturesr�r3r5r@rBror�r�r�r�r�r�r�rD�is_shrUr2rNrlrvr�r_r�r#rr�<module>r�s�����	���	��	���
���������
���,�,�U�U��0�<�(�(�*�;���������/��/�������\2�\2�~�����0�1�A
�A
�2�A
�H������������)�������)�X
�X
�*�*�X
�v�����������,�-�-�-�.�-�
������D"�D"�NL4�L4�^�4!!�H�08�&��#����J�Z������L�L���F�#�@�@�������(@�=���"�"�	�"�:*�*�Z)�)��*��+8�\������L�L�H��Q���9+�	�9+r

Youez - 2016 - github.com/yon3zu
LinuXploit