HOME


Mini Shell 1.0
Redirecting to https://devs.lapieza.net/iniciar-sesion Redirecting to https://devs.lapieza.net/iniciar-sesion.
DIR: /proc/1784574/root/usr/lib/python3.11/distutils/command/__pycache__/
Upload File :
Current File : //proc/1784574/root/usr/lib/python3.11/distutils/command/__pycache__/install.cpython-311.pyc
�

ZQdRx�
��dZddlZddlZddlZddlZddlmZddlmZddl	m
Z
ddlmZm
Z
ddlmZddlmZdd	lmZmZmZdd
lmZddlmZddlmZdd
lmZeduZdZiiid�Zdddddddddd�	ed<dddddddddd�	ed<eD]6Zd D]1\ZZ eZ!ej"e Z#ed!kree#vrd"Z!e#e!eee<�2�7eD]�Z$ee$�%��D]�\ZZ&ej'd#d$e&��Z&e&�(d%d&��Z&e&�(d'd(��Z&ed!kre&d)z
Z&ej)d*kred+kre&�(d,d-��Z&e&ee$e<����erd.d.d/d0d1d�ed2<d.d.d3d4d1d�ed5<Gd6�d7e��Z*dS)8zFdistutils.command.install

Implements the Distutils 'install' command.�N)�log)�Command)�DEBUG)�get_config_vars�is_virtual_environment)�DistutilsPlatformError)�
write_file)�convert_path�
subst_vars�change_root)�get_platform)�DistutilsOptionError)�	USER_BASE)�	USER_SITE)�purelib�platlib�headers�scripts�data)�unix_prefix�	unix_home�ntz6{installed_base}/{platlibdir}/python{py_version_short}z0{platbase}/{platlibdir}/python{py_version_short}z7{base}/local/lib/python{py_version_short}/dist-packageszD{platbase}/local/{platlibdir}/python{py_version_short}/dist-packagesz;{installed_base}/include/python{py_version_short}{abiflags}z7{base}/local/include/python{py_version_short}{abiflags}z?{installed_platbase}/include/python{py_version_short}{abiflags}z{base}/local/binz{base}/local)	�stdlib�
platstdlibrr�includer�platincluderr�
unix_localz {base}/lib/python3/dist-packagesz-{platbase}/{platlibdir}/python3/dist-packagesz
{base}/binz{base}�
deb_system))r�posix_prefix)r�
posix_home)rrrrz	\{(.+?)\}z$\g<1>z$installed_basez$basez$py_version_nodot_platz$py_version_nodotz/$dist_name)��	rz/lib/z
/$platlibdir/z	$usersitez4$userbase/Python$py_version_nodot/Include/$dist_namez)$userbase/Python$py_version_nodot/Scriptsz	$userbase�nt_userz=$userbase/include/python$py_version_short$abiflags/$dist_namez
$userbase/bin�	unix_userc�0�eZdZdZgd�Zgd�Zer0e�dddezf��e�d��ddiZ	d	�Z
d
�Zd�Zd�Z
d
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zdefdefd efd!efd"d#�fgZdS)$�installz'install everything from build directory))zprefix=Nzinstallation prefix)zexec-prefix=Nz.(Unix only) prefix for platform-specific files)zhome=Nz+(Unix only) home directory to install under)z
install-base=Nz;base installation directory (instead of --prefix or --home))zinstall-platbase=Nz\base installation directory for platform-specific files (instead of --exec-prefix or --home))zroot=Nz<install everything relative to this alternate root directory)zinstall-purelib=Nz;installation directory for pure Python module distributions)zinstall-platlib=Nz8installation directory for non-pure module distributions)zinstall-lib=Nzginstallation directory for all module distributions (overrides --install-purelib and --install-platlib))zinstall-headers=Nz(installation directory for C/C++ headers)zinstall-scripts=Nz)installation directory for Python scripts)z
install-data=Nz%installation directory for data files)�compile�czcompile .py to .pyc [default])�
no-compileNzdon't compile .py files)z	optimize=�Ozlalso compile with optimization: -O1 for "python -O", -O2 for "python -OO", and -O0 to disable [default: -O0])�force�fz1force installation (overwrite any existing files))�
skip-buildNz2skip rebuilding everything (for testing/debugging))zrecord=Nz3filename in which to record list of installed files)zinstall-layout=Nz7installation layout to choose (known values: deb, unix))r'r+r-�userNz!install in user site-package '%s'r)r'c��d|_d|_d|_d|_d|_d|_d|_d|_d|_d|_	d|_
d|_d|_d|_
trt|_t"|_d|_d|_d|_d|_d|_d|_d|_d|_d|_d|_d|_d|_dS)zInitializes options.Nr�)�prefix�exec_prefix�homer.�
prefix_option�install_base�install_platbase�root�install_purelib�install_platlib�install_headers�install_lib�install_scripts�install_data�
HAS_USER_SITEr�install_userbaser�install_usersite�install_layout�	multiarchr'�optimize�
extra_path�install_path_filer+�
skip_build�warn_dir�
build_base�	build_lib�record��selfs �0/usr/lib/python3.11/distutils/command/install.py�initialize_optionszinstall.initialize_options�s�����������	���	�!���
!��� $�����	� $���#���#������#��� ����	.�$-�D�!�$-�D�!�#�����������
����!"�����
������
������������c
�0�|js|js|jr|js|jrtd���|jr|js|jrtd���|jr2|js|js|js|js|jrtd���tjdkr#|jr|�	d��d|_|�
d��tjdkr|���n|���|�
d��tj���d	}t!d
d��\}}	tj}n#t$$rd}YnwxYw|j���|j���|j���|d
tjdd�zdtjdd�z|||||tjd�|_t4r|j|jd<|j|jd<t;jd��rt;jd��|jd<|� ��|�
d��|j|jd<|j|jd<tBr%d	dl"m"}tGd��||j��|�$��|�
d��|jr|�%��|j&�%|jj'r
|j(|_&n|j)|_&|�*dddddd ��t4r|�*dd��|�+��|j&|_,tj-�.|j&|j/��|_&|j0�|�1d!dddddd ��|�
d"��|�2d#d$d%��dS)&zFinalizes options.zWmust supply either prefix/exec-prefix/home or install-base/install-platbase -- not bothz9must supply either home or prefix/exec-prefix -- not bothzGcan't combine user with prefix, exec_prefix/home, or install_(plat)base�posixz+exec-prefix option ignored on this platformNzpre-finalize_{unix,other}zpost-finalize_{unix,other}()rr1r2�z%d.%d�z%d%d)�	dist_name�dist_version�
dist_fullname�
py_version�py_version_short�py_version_nodot�
sys_prefixr1�sys_exec_prefixr2�abiflags�
platlibdir�userbase�usersiteT�srcdirzpost-expand_basedirs()�base�platbase)�pprintzconfig vars:zpost-expand_dirs()�librrrrr�libbasezafter prepending root�build)rHrH)rIrI)3r1r2r3r5r6rr.�os�name�warn�	dump_dirs�
finalize_unix�finalize_other�sys�version�splitrr\�AttributeError�distribution�get_name�get_version�get_fullname�version_infor]�config_varsr>r?r@�	sysconfig�is_python_build�get_config_var�expand_basedirsrrc�print�expand_dirs�create_home_pathr;�ext_modulesr9r8�
convert_paths�handle_extra_path�install_libbase�path�join�
extra_dirsr7�change_roots�set_undefined_options)rLrWr1r2r\rcs      rM�finalize_optionszinstall.finalize_optionss��� �[�	@�D�,�	@��	�	@�
�
�	@�"&�"7�	@�&�?�@�@�
@��9�	O�$�+�	O��)9�	O�&�M�O�O�
O��9�	R�$�+�	R��)9�	R�T�Y�	R��!�	R�%)�%:�	R�&�(Q�R�R�
R��7�g�����
(��	�	�G�H�H�H�#'�� �	
���2�3�3�3�
�7�g������ � � � ����!�!�!����5�6�6�6��[�&�&�(�(��+�
� /��-� H� H����	��|�H�H���	�	�	��H�H�H�	����*.�):�)C�)C�)E�)E�,0�,=�,I�,I�,K�,K�-1�->�-K�-K�-M�-M�*4�07�#�:J�2�A�2�:N�0N�06��9I�"�1�"�9M�0M�*0�&,�/:�+6�(0�*-�.������	A�+/�+@�D��Z�(�+/�+@�D��Z�(��$�T�*�*�	L�)2�)A�(�)K�)K�D��X�&����������/�0�0�0�$(�#4���� �'+�'<����$��	%�%�%�%�%�%�%��.�!�!�!��F�4�#�$�$�$�	
���������+�,�,�,��9�	$��!�!�#�#�#���#�� �,�
8�#'�#7�� � �#'�#7�� �
	
���5�)�Y�$�f�i�	9�	9�	9��	7����z�:�6�6�6�	
��� � � �#�/����7�<�<��(8�$�/�J�J����9� ����i��	�9�'���
<�
<�
<�	
���.�/�/�/�	
�"�"�7�#?�#=�	?�	?�	?�	?�	?s�E+�+E:�9E:c��tsdSddlm}tj|dz��|jD]�}|d}|ddkr
|dd�}||jvr4|j|}|�|��}t||��}n%|�|��}t||��}tjd||����dS)zDumps the list of user options.Nr)�
longopt_xlate�:����=z  %s: %s)	r�distutils.fancy_getoptr�r�debug�user_options�negative_opt�	translate�getattr)rL�msgr��opt�opt_name�vals      rMrjzinstall.dump_dirs�s����	��F�8�8�8�8�8�8��	�#��)�����$�	1�	1�C��1�v�H���|�s�"�"�#�A�b�D�>���4�,�,�,��,�X�6��#�-�-�m�<�<��!�$��1�1�1���#�-�-�m�<�<���d�H�-�-���I�j�(�C�0�0�0�0�	1�	1rOc�j�|j�|j�;|j�|j�|j�|j�|j�|j�td���dS|j	r@|j
�td���|j
x|_|_|�d��dS|j
�*|j
x|_|_|�d��dS|j|_|j�s|j�td���t"j�t(j��|_t"j�t(j��|_n|j�|j|_|j|_|j|_|jr�|j���dvr0ddl}|jd	��|_|�d
��dS|j���dvr|�d��dStd
���|jr(t"j�|j��dkst5��r|�d��dSt"j�|j��dkrdx|_|_dx|_|_|�d��dS)z&Finalizes options for posix platforms.NzPinstall-base or install-platbase supplied, but installation scheme is incomplete�$User base directory is not specifiedr$rz*must not supply exec-prefix without prefix)�debr�	MULTIARCHr)�unixrz"unknown value for --install-layoutz
/usr/localz/usrr)r5r6r;r8r9r:r<r=rr.r?r�
select_schemer3r1r4r2rgr��normpathrmrA�lowerrwryrBr)rLrws  rMrkzinstall.finalize_unix�s�����(�D�,A�,M��!�)��%�-��%�-��$�,��$�,��!�)�*�:�;�;�;�
�F��9�+	1��$�,�,�:�<�<�<�8<�8M�M�D��� 5����{�+�+�+�+�+�
�Y�
"�8<�	�A�D��� 5����{�+�+�+�+�+�!%��D���{�"��#�/�.�F�H�H�H�!�g�.�.�s�z�:�:���#%�7�#3�#3�C�O�#D�#D�� � ��#�+�'+�{�D�$� $��D��$(�$4�D�!��"�
1��&�,�,�.�.�'�9�9�$�$�$�$�%=�Y�%=�k�%J�%J�D�N��&�&�|�4�4�4�4�4��(�.�.�0�0�H�<�<��&�&�}�5�5�5�5�5�.�<�>�>�>��%�
1��7�#�#�D�K�0�0�L�@�@�+�-�-�A��"�"�=�1�1�1�1�1��7�#�#�D�K�0�0�L�@�@�5;�;�D�K�$�"2�@F�F�D�%��(=��"�"�<�0�0�0�0�0rOc�4�|jrM|j�td���|jx|_|_|�tjdz��dS|j�*|jx|_|_|�d��dS|j	�.tj
�tj	��|_	|j	x|_|_	|�tj��dS#t$rtdtjz���wxYw)z)Finalizes options for non-posix platformsNr��_userrz)I don't know how to install stuff on '%s')r.r?rr5r6r�rgrhr3r1r�r�rm�KeyErrorrKs rMrlzinstall.finalize_other�s&���9�	M��$�,�,�:�<�<�<�8<�8M�M�D��� 5����r�w��0�1�1�1�1�1�
�Y�
"�8<�	�A�D��� 5����{�+�+�+�+�+��{�"� �g�.�.�s�z�:�:���8<��C�D��� 5�
M��"�"�2�7�+�+�+�+�+���
M�
M�
M�,�A�B�G�K�M�M�M�
M���s�C0�0'Dc��t|}tD].}d|z}t||���t||||���/dS)z=Sets the install directories by applying the install schemes.�install_N)�INSTALL_SCHEMES�SCHEME_KEYSr��setattr)rLrh�scheme�key�attrnames     rMr�zinstall.select_schemesX��!��&���	5�	5�C�!�C�'�H��t�X�&�&�.���h��s��4�4�4��	5�	5rOc��|D]y}t||��}|�etjdkstjdkrtj�|��}t||j��}t|||���zdS)NrQr)r�rgrhr��
expanduserrrvr�)rL�attrs�attrr�s    rM�
_expand_attrszinstall._expand_attrss����	)�	)�D��$��%�%�C����7�g�%�%���D����'�,�,�S�1�1�C� ��d�&6�7�7����d�C�(�(�(��
	)�	)rOc�4�|�gd���dS)zNCalls `os.path.expanduser` on install_base, install_platbase and
        root.)r5r6r7N�r�rKs rMrzzinstall.expand_basedirs"s%��	
���G�G�G�H�H�H�H�HrOc�4�|�gd���dS)z+Calls `os.path.expanduser` on install dirs.)r8r9r;r:r<r=Nr�rKs rMr|zinstall.expand_dirs's;�����@�@�@�	A�	A�	A�	A�	ArOc�r�|D]3}d|z}t||tt||�������4dS)z!Call `convert_path` over `names`.r�N)r�r
r��rL�namesrhr�s    rMrzinstall.convert_paths-sP���	C�	C�D���$�D��D�$��W�T�4�-@�-@� A� A�B�B�B�B�	C�	CrOc���|j�|jj|_|j��tjd��t	|jt
��r|j�d��|_t|j��dkr|jdx}}n2t|j��dkr|j\}}ntd���t|��}nd}d}||_
||_dS)	z4Set `path_file` and `extra_dirs` using `extra_path`.NzIDistribution option extra_path is deprecated. See issue27919 for details.�,r0rrSzY'extra_path' option must be a list, tuple, or comma-separated string with 1 or 2 elementsrR)rDrqrri�
isinstance�strro�lenrr
�	path_filer�)rLr�r�s   rMr�zinstall.handle_extra_path3s����?�"�"�/�:�D�O��?�&��H�.�
�
�
��$�/�3�/�/�
=�"&�/�"7�"7��"<�"<����4�?�#�#�q�(�(�)-���);�;�	�J�J��T�_�%�%��*�*�(,��%�	�:�:�*�D�E�E�E�&�j�1�1�J�J��I��J�#���$����rOc�~�|D]9}d|z}t||t|jt||�������:dS)z:Change the install directories pointed by name using root.r�N)r�rr7r�r�s    rMr�zinstall.change_rootsUsT���	M�	M�D���$�D��D�$��D�I�w�t�T�7J�7J� K� K�L�L�L�L�	M�	MrOc�p�|jsdSttj�d����}|j���D]f\}}|�|��rLtj�|��s-|�	d|z��tj
|d���gdS)zCreate directories under ~.N�~zos.makedirs('%s', 0o700)i�)r.r
rgr�r�rv�items�
startswith�isdir�debug_print�makedirs)rLr3rhr�s    rMr}zinstall.create_home_path[s����y�	��F��B�G�.�.�s�3�3�4�4���*�0�0�2�2�	)�	)�J�D�$����t�$�$�
)�R�W�]�]�4�-@�-@�
)�� � �!;�d�!B�C�C�C���D�%�(�(�(��	)�	)rOc��|js\|�d��|j�d��j}|jr!|t
��krtd���|���D]}|�|���|j	r|�
��|jr�|���}|j
rFt|j
��}tt|����D]}|||d�||<�|�t"|j|fd|jz��t%t&jjt,j��}t%t&jj|��}t&j�t&j�|j����}|jr.|j	r|js$||vrt5jd|j��dSdSdSdS)zRuns the command.rfz"Can't install when cross-compilingNz'writing list of installed files to '%s'z�modules installed to '%s', which is not in Python's module search path (sys.path) -- you'll have to change the search path yourself)rF�run_commandrq�get_command_obj�	plat_namerGr
r�get_sub_commandsr��create_path_filerJ�get_outputsr7r��range�executer	�maprgr�r�rm�normcaser;rErr�)rL�
build_plat�cmd_name�outputs�root_len�counter�sys_pathr;s        rM�runzinstall.rungs#����		@����W�%�%�%��*�:�:�7�C�C�M�J��}�
@��|�~�~�!=�!=�,�.?�@�@�@��-�-�/�/�	'�	'�H����X�&�&�&�&��>�	$��!�!�#�#�#��;�		&��&�&�(�(�G��y�
C��t�y�>�>��$�S��\�\�2�2�C�C�G�'.�w�'7��	�	�'B�G�G�$�$��L�L���+�w�/�B���%�
&�
&�
&�
�r�w�'���2�2���r�w�'��2�2���g�&�&�r�w�'7�'7��8H�'I�'I�J�J���M�	)���	)�$(�$:�	)��x�'�'��I�H��'�
)�
)�
)�
)�
)�	)�	)�'�'�	)�	)rOc���tj�|j|jdz��}|jr)|�t||jgfd|z��dS|�	d|z��dS)zCreates the .pth file�.pthzcreating %szpath file '%s' not createdN)
rgr�r�r�r�rEr�r	r�ri)rL�filenames  rMr�zinstall.create_path_file�s����7�<�<�� 4� $��� 7�9�9���!�	?��L�L��"�T�_�$5�6�&��1�
3�
3�
3�
3�
3�
�I�I�2�X�=�>�>�>�>�>rOc�^�g}|���D]G}|�|��}|���D]}||vr|�|����H|jrG|jr@|�tj�|j	|jdz����|S)z.Assembles the outputs of all the sub-commands.r�)
r��get_finalized_commandr��appendr�rErgr�r�r�)rLr�r��cmdr�s     rMr�zinstall.get_outputs�s������-�-�/�/�	-�	-�H��,�,�X�6�6�C� �O�O�-�-�
-�
-���7�*�*��N�N�8�,�,�,��
-��>�	B�d�4�	B��N�N�2�7�<�<��(<�(,���(?�A�A�
B�
B�
B��rOc��g}|���D]>}|�|��}|�|������?|S)z*Returns the inputs of all the sub-commands)r�r��extend�
get_inputs)rL�inputsr�r�s    rMr�zinstall.get_inputs�s[�����-�-�/�/�	,�	,�H��,�,�X�6�6�C��M�M�#�.�.�*�*�+�+�+�+��
rOc�f�|j���p|j���S)zSReturns true if the current distribution has any Python
        modules to install.)rq�has_pure_modules�has_ext_modulesrKs rM�has_libzinstall.has_lib�s2���!�2�2�4�4�4��!�1�1�3�3�	5rOc�4�|j���S)zLReturns true if the current distribution has any headers to
        install.)rq�has_headersrKs rMr�zinstall.has_headers����� �,�,�.�.�.rOc�4�|j���S)zMReturns true if the current distribution has any scripts to.
        install.)rq�has_scriptsrKs rMr�zinstall.has_scripts�r�rOc�4�|j���S)zJReturns true if the current distribution has any data to.
        install.)rq�has_data_filesrKs rM�has_datazinstall.has_data�s��� �/�/�1�1�1rOr;r:r<r=�install_egg_infoc��dS)NT�rKs rM�<lambda>zinstall.<lambda>�s��T�rO) �__name__�
__module__�__qualname__�descriptionr��boolean_optionsr>r�rr�rNr�rjrkrlr�r�rzr|rr�r�r}r�r�r�r�r�r�r�r��sub_commandsr�rOrMr&r&rs������;�K�<
�<
�<
�L�|9�8�8�O��'����V�T�@�9�L�N�	O�	O�	O����v�&�&�&� �9�-�L�K�K�K�hU?�U?�U?�t1�1�1�&91�91�91�vM�M�M�,5�5�5�)�)�)�I�I�I�
A�A�A�C�C�C� %� %� %�DM�M�M�)�)�)�*)�*)�*)�X	?�	?�	?����"���5�5�5�/�/�/�
/�/�/�
2�2�2�#��0�&��4�&��4�#��1�'�)9�)9�:�	�L�L�LrOr&)+�__doc__rmrwrg�re�	distutilsr�distutils.corer�distutils.debugr�distutils.sysconfigrr�distutils.errorsr�distutils.file_utilr	�distutils.utilr
rrr
r�siterrr>r�r�r��distutils_scheme_name�sys_scheme_name�sys_key�_INSTALL_SCHEMES�
sys_scheme�main_keyr��value�sub�replacerur&r�rOrM�<module>r	s_��/�/��
�
�
�����	�	�	�	�	�	�	�	�������"�"�"�"�"�"�!�!�!�!�!�!�G�G�G�G�G�G�G�G�3�3�3�3�3�3�*�*�*�*�*�*�@�@�@�@�@�@�@�@�@�@�'�'�'�'�'�'�1�1�1�1�1�1��������������$�&�
�
C��#%�2�R�@�@��G�D�H�U�L�H�T�!��
!�
!����G�D�1�>�L�L�T���
!�
!�����
J�
J�C�3�J�J�.������/��@�
��)����:� 5� 5� �G�6@��6I��-�.�s�3�3�J� �/�/�H�%�h�/�5�5�7�7�
/�
/�
��U����|�Y��6�6���
�
�/��9�9���
�
�6�8K�L�L���)����]�"�E���v�%�%�#��*:�*:��M�M�'�?�;�;�E�).���!�#�&�&�
/��
���I�>��"
�"
�O�I����K�"��
$
�$
�O�K� �h	�h	�h	�h	�h	�g�h	�h	�h	�h	�h	rO