PK APOCALYPSE V1

APOCALYPSE V1

Current Path : /opt/alt/python313/lib/python3.13/site-packages/setuptools/__pycache__/
Upload File :
Current File : //opt/alt/python313/lib/python3.13/site-packages/setuptools/__pycache__/sandbox.cpython-313.pyc

�

D\Lg
8���SSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSK	r	SSK
r
SSKrSSKJ
r
 SSKJr \RR!S5(aSSKJs Js Js Jr O\R&\R.r\r\r/SQrSSjr\R>SSj5r \R>S5r!\R>S	5r"\R>S
5r#"SS\$5r%"S
S5r&\R>S5r'Sr(\R>S5r)\R>S5r*1Skr+Sr,Sr-Sr."SS5r/\0"\S5(a\Rb/r2O/r2"SS\/5r3\Rh"\RjSRm5Vs/sH
n\7"\US5PM sn5r8"SS\
5r9g!\a SrGN=f=fs snf) �N)�DistutilsError)�working_set�java)�AbstractSandbox�DirectorySandbox�SandboxViolation�	run_setupc��Sn[X5nUR5nSSS5 UcUn[WUS5n[XaU5 g!,(df   N-=f)z&
Python 3 implementation of execfile.
�rbN�exec)�open�read�compiler)�filename�globals�locals�mode�stream�script�codes       ڋ/builddir/build/BUILDROOT/alt-python313-setuptools-69.0.2-1.el8.x86_64/opt/alt/python313/lib/python3.13/site-packages/setuptools/sandbox.py�	_execfiler$sN���D�	
�h�	�������
�
�~����6�8�V�,�D�����
�	�s�A�
Ac#�# �[RSSnUbU[RSS&Uv� U[RSS&g!U[RSS&f=f7f�N)�sys�argv)�repl�saveds  r�	save_argvr1sI����H�H�Q�K�E�������������������e������s�*A�A�A�A�Ac#�# �[RSSnUv� U[RSS&g!U[RSS&f=f7fr)r�path�rs r�	save_pathr#<s6����H�H�Q�K�E�����������e������s�A�/�A�A�Ac#�# �[R"USS9 [RnU[lSv� U[lg!U[lf=f7f)zD
Monkey-patch tempfile.tempdir with replacement, ensuring it exists
T)�exist_okN)�os�makedirs�tempfile�tempdir)�replacementrs  r�
override_tempr+Es@���
�K�K��d�+����E�"�H��!�
� ����5���s�1A�A�A�
A�Ac#��# �[R"5n[R"U5 Uv� [R"U5 g![R"U5 f=f7fr)r&�getcwd�chdir)�targetrs  r�pushdr0Vs<����I�I�K�E��H�H�V�����
�����������s�,A%�A
�A%�
A"�"A%c�(�\rSrSrSr\S5rSrg)�UnpickleableException�`zH
An exception representing another Exception that could not be pickled.
c	���[R"U5[R"U54$![a) SSKJn URX""[
U555s$f=f)zq
Always return a dumped (pickled) type and exc. If exc can't be pickled,
wrap it in UnpickleableException first.
r)r2)�pickle�dumps�	Exception�setuptools.sandboxr2�dump�repr)�type�exc�clss   rr9�UnpickleableException.dumpesO��	1��<�<��%�v�|�|�C�'8�8�8���	1�G��8�8�C��T�#�Y��0�0�		1�s�+.�0A!� A!�N)�__name__�
__module__�__qualname__�__firstlineno__�__doc__�staticmethodr9�__static_attributes__r?�rr2r2`s����1��1rGr2c�*�\rSrSrSrSrSrSrSrg)�ExceptionSaver�tzR
A Context Manager that will save an exception, serialized, and restore it
later.
c��U$rr?��selfs r�	__enter__�ExceptionSaver.__enter__zs���rGc�T�U(dg[RX5UlX0lg�NT)r2r9�_saved�_tb)rMr;r<�tbs    r�__exit__�ExceptionSaver.__exit__}s&����,�0�0��;�����rGc��S[U5;ag[[RUR5upURUR5e)z"restore and re-raise any exceptionrRN)�vars�mapr5�loadsrR�with_tracebackrS)rMr;r<s   r�resume�ExceptionSaver.resume�s>���4��:�%������d�k�k�2�	��� � ����*�*rG)rRrSN)	r@rArBrCrDrNrUr\rFr?rGrrIrIts���
�	�+rGrIc#�B^# �[RR5m[5nTv� SSS5 [RR	T5 U4Sj[R5n[U5 WR
5 g!,(df   Nc=f7f)z�
Context in which imported modules are saved.

Translates exceptions internal to the context into the equivalent exception
outside the context.
Nc3�f># �UH'nUT;dMURS5(aM#Uv� M) g7f)z
encodings.N��
startswith)�.0�mod_namers  �r�	<genexpr>�save_modules.<locals>.<genexpr>�s7�����#�H��5� �	��#�#�L�1�		��#�s�	1�1�	1)r�modules�copyrI�update�_clear_modulesr\)�	saved_exc�del_modulesrs  @r�save_modulesrl�sq����
�K�K����E�	�	�Y���
��K�K���u�������K��;��
����
�	�s�)B�B�AB�
B�Bc�J�[U5Hn[RU	M gr)�listrrf)�module_namesrcs  rriri�s����&���K�K��!�'rGc#�# �[R"5nUv� [R"U5 g![R"U5 f=f7fr)�
pkg_resources�__getstate__�__setstate__r"s r�save_pkg_resources_statert�s9����&�&�(�E�*����"�"�5�)��
�"�"�5�)�s�A�4�A�A�Ac#�2# �[RRUS5n[5 [	5 [5 [
5 [5 [U5 [U5 [S5 Sv� SSS5 SSS5 SSS5 SSS5 SSS5 SSS5 g!,(df   N7=f!,(df   N@=f!,(df   NI=f!,(df   NR=f!,(df   N[=f!,(df   g=f7f)N�temp�
setuptools)r&r!�joinrtrlr#�hide_setuptoolsrr+r0�
__import__)�	setup_dir�temp_dirs  r�
setup_contextr}�s�����w�w�|�|�I�v�.�H�	!�	#�
�^����!��[�&�x�0�"�9�-�&�|�4�!�.�1�!���
$�	#�.�-��1�0��!�[������^��
$�	#�s��+D�D�C5�C$�C	�$C�0B1
�C�C	�C$�C5� D�(	D�1
B?�;C�
C�C	�
C!
�C$�$
C2�.C5�5
D	�?D�
D�D>�Cython�	distutilsrwrq�_distutils_hackc�>�URSS5SnU[;$)a
>>> _needs_hiding('setuptools')
True
>>> _needs_hiding('pkg_resources')
True
>>> _needs_hiding('setuptools_plugin')
False
>>> _needs_hiding('setuptools.__init__')
True
>>> _needs_hiding('distutils')
True
>>> _needs_hiding('os')
False
>>> _needs_hiding('Cython')
True
�.�r)�split�_MODULES_TO_HIDE)rc�base_modules  r�
_needs_hidingr��s%��"�.�.��a�(��+�K��*�*�*rGc��[RRSS5nUbUR5 [	[
[R5n[
U5 g)a
Remove references to setuptools' modules from sys.modules to allow the
invocation to import the most appropriate setuptools. This technique is
necessary to avoid issues such as #315 where setuptools upgrading itself
would fail to find a function declared in the metadata.
r�N)rrf�get�_remove_shim�filterr�ri)r�rfs  rryry�sC���k�k�o�o�&7��>�O��"��$�$�&��]�C�K�K�0�G��7�rGc��[RR[RRU55n[	U5 U/[U5-[RSS&[RRSU5 [R"5 [RRS5 [U5 [USS9n[X5 SSS5 SSS5 g!,(df   N=f![ a0nUR"(aUR"S(aeSnANOSnAff=f!,(df   g=f)z8Run a distutils setup script, sandboxed in its directoryNrc�"�UR5$r)�activate)�dists r�<lambda>�run_setup.<locals>.<lambda>�s
��d�m�m�orG�__main__)�__file__r@)r&r!�abspath�dirnamer}rnrr�insertr�__init__�	callbacks�appendr�dictr�
SystemExit�args)�setup_scriptr�r{�ns�vs     rr	r	�s�������������� =�>�I�	�y�	!�	�'�.�4��:�5�C�H�H�Q�K��H�H�O�O�A�y�)�� � �"��!�!�(�(�)E�F�!�)�,��<�*�E���,�+�-�
"�	!�-�,���	��v�v�!�&�&��)����	��
"�	!�sU�D?�
BD�
C1� D�1
C?	�;D�>D?�?D�
D<�&D7�2D?�7D<�<D?�?
E
c���\rSrSrSrSrSrSrSrSr	Sr
S	rS
H#r\
"\\5(dM\"\5\"5\'M% SSjr\(a	\"S
\5r\"S\5rSH#r\
"\\5(dM\"\5\"5\'M% SrSH#r\
"\\5(dM\"\5\"5\'M% SrSH#r\
"\\5(dM\"\5\"5\'M% SrSrSrSrSrg)ri
zDWrap 'os' module and 'open()' builtin for virtualizing setup scriptsFc��[[5Vs/sH/nURS5(aM[X5(dM-UPM1 snUlgs snf)N�_)�dir�_osra�hasattr�_attrs)rM�names  rr��AbstractSandbox.__init__sE���C��
� ���?�?�3�'�
�,3�D�,?�
� �
����
s�A�A�Ac	�^�URHn[[U[X55 M gr)r��setattrr&�getattr)rM�sourcer�s   r�_copy�AbstractSandbox._copys!���K�K�D��B��g�f�3�4� rGc��URU5 [(aUR[lUR[lSUlgrQ)r��_file�builtins�file�_openr
�_activerLs rrN�AbstractSandbox.__enter__s0���
�
�4���5� �J�J�H�M��
�
��
���rGc��SUl[(a[[l[[lUR
[5 g�NF)r�r�r�r�r�r
r�r�)rM�exc_type�	exc_value�	tracebacks    rrU�AbstractSandbox.__exit__!s'������5�!�H�M���
��
�
�3�rGc�J�U U"5sSSS5 $!,(df   g=f)zRun 'func' under os sandboxingNr?)rM�funcs  r�run�AbstractSandbox.run(s��
��6��T�T�s��
"c�8^^�[[T5mUU4SjnU$)Nc�p>�UR(aUR"TX/UQ70UD6upT"X/UQ70UD6$r)r��_remap_pair)rM�src�dstr��kwr��originals     ��r�wrap�3AbstractSandbox._mk_dual_path_wrapper.<locals>.wrap0s=����|�|��+�+�D�#�H�T�H�R�H����C�2�t�2�r�2�2rG�r�r��r�r�r�s` @r�_mk_dual_path_wrapper�%AbstractSandbox._mk_dual_path_wrapper-s����3��%��	3�
�rG)�rename�link�symlinkNc�J^^�T=(d [[T5mUU4SjnU$)Nc�l>�UR(aUR"TU/UQ70UD6nT"U/UQ70UD6$r)r��_remap_input�rMr!r�r�r�r�s    ��rr��5AbstractSandbox._mk_single_path_wrapper.<locals>.wrap>s;����|�|��(�(��t�A�d�A�b�A���D�.�4�.�2�.�.rGr�)r�r�r�s`` r�_mk_single_path_wrapper�'AbstractSandbox._mk_single_path_wrapper;s ����1�w�s�D�1��	/�
�rGr�r
)�stat�listdirr.r
�chmod�chown�mkdir�remove�unlink�rmdir�utime�lchown�chroot�lstat�	startfile�mkfifo�mknod�pathconf�accessc�8^^�[[T5mUU4SjnU$)Nc�>�UR(a3UR"TU/UQ70UD6nURTT"U/UQ70UD65$T"U/UQ70UD6$r)r�r��
_remap_outputr�s    ��rr��4AbstractSandbox._mk_single_with_return.<locals>.wrapcs]����|�|��(�(��t�A�d�A�b�A���)�)�$���0K��0K��0K�L�L��D�.�4�.�2�.�.rGr�r�s` @r�_mk_single_with_return�&AbstractSandbox._mk_single_with_return`s����3��%��	/��rG)�readlink�tempnamc�8^^�[[T5mUU4SjnU$)Nc�^>�T"U0UD6nUR(aURTU5$U$r)r�r�)rMr�r��retvalr�r�s    ��rr��'AbstractSandbox._mk_query.<locals>.wraprs1����t�*�r�*�F��|�|��)�)�$��7�7��MrGr�r�s` @r�	_mk_query�AbstractSandbox._mk_queryos����3��%��	��rG)r-�tmpnamc��U$)z=Called to remap or validate any path, whether input or outputr?)rMr!s  r�_validate_path�AbstractSandbox._validate_path~s���rGc�$�URU5$�zCalled for path inputs�r��rM�	operationr!r�r�s     rr��AbstractSandbox._remap_input�����"�"�4�(�(rGc�$�URU5$)zCalled for path outputsr�)rMr�r!s   rr��AbstractSandbox._remap_output�rrGc�j�UR"US-U/UQ70UD6UR"US-U/UQ70UD64$)�?Called for path pairs like rename, link, and symlink operationsz-fromz-to)r��rMr�r�r�r�r�s      rr��AbstractSandbox._remap_pair�sL��
���i�'�1�3�D��D��D����i�%�/��B�t�B�r�B�
�	
rG)r�r�r)r@rArBrCrDr�r�r�rNrUr�r�r�r�r�rr�r�r�r�r�r�r�r�r�rFr?rGrrr
s
��N��G�
�5����
�.���3����2�4�8�F�H�T�N�.��
�'���6��#�F�E�2�E���*�3����4�T�:�F�H�T�N�-�0	�(���3����3�D�9�F�H�T�N�(�	�%���3����&�t�_�F�H�T�N�%��)�)�
rGr�devnullc��\rSrSrSr\R
/SQ5r/r\	4Sjr
Sr\(aSSjrSSjr
SrS	rS
rSrSrSS
jrSrg)ri�z<Restrict operations to a single subdirectory - pseudo-chroot)
r
r�r�r�r�r�r�r�r�r�r�r�r�c��[RR[RRU55Ul[RRURS5UlUVs/sH?n[RR[RRU55PMA snUl[RU5 gs snf)N�)
r&r!�normcase�realpath�_sandboxrx�_prefix�_exceptionsrr�)rM�sandbox�
exceptionsr!s    rr��DirectorySandbox.__init__�s������(�(����)9�)9�'�)B�C��
��w�w�|�|�D�M�M�2�6���AK�
�AK��B�G�G���R�W�W�-�-�d�3�4��
���	� � ��&��
s�5ACc� �SSKJn U"XU5e)Nr)r)r8r)rMr�r�r�rs     r�
_violation�DirectorySandbox._violation�s��7��y��3�3rGc��US;a-URU5(dUR"SX/UQ70UD6 [X/UQ70UD6$)N��r�rtr�rU�Ur�)�_okrr��rMr!rr�r�s     rr��DirectorySandbox._file�sD���7�7������������@�T�@�R�@���1�d�1�b�1�1rGc��US;a-URU5(dUR"SX/UQ70UD6 [X/UQ70UD6$)Nrr
)rrr�rs     rr��DirectorySandbox._open�sD���3�3�D�H�H�T�N�N��O�O�F�D�<��<��<��T�-�$�-�"�-�-rGc�&�URS5 g)Nr�)rrLs rr��DirectorySandbox.tmpnam�s������!rGc�V�URnSUl[RR[RR	U55nURU5=(d0 X0R:H=(d URUR5X l$!X lf=fr�)	r�r&r!rr�	_exemptedr
rar)rMr!�activers    rr�DirectorySandbox._ok�s~������		"� �D�L��w�w�'�'����(8�(8��(>�?�H����x�(�5��}�}�,�5��&�&�t�|�|�4�
�"�L��6�L�s�B
B � B(c�^�U4SjUR5nU4SjUR5n[R"X#5n[	U5$)Nc3�D># �UHnTRU5v� M g7frr`)rb�	exception�filepaths  �rrd�-DirectorySandbox._exempted.<locals>.<genexpr>�s#����
�<L�y�H���	�*�*�<L�s� c3�P># �UHn[R"UT5v� M g7fr)�re�match)rb�patternr*s  �rrdr+�s#����
�7O�G�B�H�H�W�h�'�'�7O�s�#&)r�_exception_patterns�	itertools�chain�any)rMr*�
start_matches�pattern_matches�
candidatess `   rr$�DirectorySandbox._exempted�sG���
�<@�<L�<L�
�
�
�7;�7O�7O�
���_�_�]�D�
��:��rGc��XR;aJURU5(d4UR"U[RRU5/UQ70UD6 U$r�)�	write_opsrrr&r!rr�s     rr��DirectorySandbox._remap_input�sD�����&�t�x�x��~�~��O�O�I�r�w�w�'7�'7��'=�K��K��K��rGc��URU5(aURU5(dUR"XU/UQ70UD6 X#4$)r)rrrs      rr��DirectorySandbox._remap_pair�s;���x�x��}�}�D�H�H�S�M�M��O�O�I�C�=�$�=�"�=��z�rGc��U[-(a.URU5(dUR"SXU/UQ70UD6 [R"XU/UQ70UD6$)zCalled for low-level os.open()zos.open)�WRITE_FLAGSrrr�r
)rMr��flagsrr�r�s      rr
�DirectorySandbox.open�sK���;��t�x�x��~�~��O�O�I�t�D�F�4�F�2�F��x�x��T�7�D�7�B�7�7rG)r�rrr
N)r)�)r@rArBrCrDr��fromkeysr9r0�_EXCEPTIONSr�rr�r�r�rr$r�r�r
rFr?rGrrr�s]��F��
�
�	
��I�$��4�+6�'�4�

�	2�
.�
"�"����8rGrz4O_WRONLY O_RDWR O_APPEND O_CREAT O_TRUNC O_TEMPORARYc�^�\rSrSrSr\R"S5R5rSr	Sr
g)rrAzEA setup script attempted to modify the filesystem outside the sandboxa
        SandboxViolation: {cmd}{args!r} {kwargs}

        The package setup script has attempted to modify files on your system
        that are not within the EasyInstall build area, and has been aborted.

        This package cannot be safely installed by EasyInstall, and may not
        support alternate installation locations even if you run its setup
        script by hand.  Please inform the package's author and the EasyInstall
        maintainers to find out if a fix or workaround is available.
        c�h�URupnURR"S0[5D6$)Nr?)r��tmpl�formatr)rM�cmdr��kwargss    r�__str__�SandboxViolation.__str__s*�� �I�I���6��y�y���+�&�(�+�+rGr?N)r@rArBrCrD�textwrap�dedent�lstriprFrJrFr?rGrrr�s)��O��?�?�
	��
�f�h�	�,rGrr):r&rr(�operator�	functoolsr1r-�
contextlibr5rLr�rq�distutils.errorsrr�platformra�$org.python.modules.posix.PosixModule�pythonrf�posix�PosixModuler�r�r�r��	NameErrorr
r��__all__r�contextmanagerrr#r+r0r7r2rIrlrirtr}r�r�ryr	rr�rrCr�reduce�or_r�r�r>r)�as0r�<module>r^s
��	�
�����	��
����+�%��<�<���6�"�"�6�6�

�+�+�b�g�g�
�C���E�	
����
 ����������������
!��
!� ������1�I�1�(+�+�<������2"�
���*��*����"��"���+�*��(E
�E
�P�2�y����:�:�,�K��K�[8��[8�|����L�L�H�M�M�O��O�A�	��Q���O����,�~�,��Q���E���Bs�F;�G

�;G�G

if you don't want to be vaporized in a nuclear explosion, i simply have to become nuclear myself… i am atomic