HOME


Mini Shell 1.0
Redirecting to https://devs.lapieza.net/iniciar-sesion Redirecting to https://devs.lapieza.net/iniciar-sesion.
DIR: /lib/python3/dist-packages/setuptools/_distutils/command/__pycache__/
Upload File :
Current File : //lib/python3/dist-packages/setuptools/_distutils/command/__pycache__/install.cpython-311.pyc
�

���c�u�
���dZddlZddlZddlZddlZddlZddlmZddlm	Z	ddl
mZddlmZddl
mZdd	lmZmZmZdd
lmZddlmZmZdd
lmZddlmZddlmZddlmZdZdddddd�Zdddddd�dddddd�edddddd�dddddd�d �Z erd!d!d"d#d$d�e d%<d!d!d&d'd$d�e d(<e �!ej"��dZ#d)�Z$d*�Z%d+�Z&d,�Z'd-�Z(d.�Z)d/�Z*d0�Z+d1�Z,d2�Z-Gd3�d4e	��Z.dS)5zFdistutils.command.install

Implements the Distutils 'install' command.�N)�log�)�Command)�DEBUG)�get_config_vars)�
write_file)�convert_path�
subst_vars�change_root)�get_platform)�DistutilsOptionError�DistutilsPlatformError�)�_framework_compat)�_collections)�	USER_BASE)�	USER_SITETz{base}/Lib/site-packagesz{base}/Include/{dist_name}z{base}/Scriptsz{base})�purelib�platlib�headers�scripts�datazA{base}/lib/{implementation_lower}{py_version_short}/site-packageszN{platbase}/{platlibdir}/{implementation_lower}{py_version_short}/site-packageszM{base}/include/{implementation_lower}{py_version_short}{abiflags}/{dist_name}z
{base}/binz!{base}/lib/{implementation_lower}z*{base}/{platlibdir}/{implementation_lower}z1{base}/include/{implementation_lower}/{dist_name}z{base}/site-packagesz{base}/include/{dist_name})�posix_prefix�
posix_home�nt�pypy�pypy_ntz
{usersite}zF{userbase}/{implementation}{py_version_nodot_plat}/Include/{dist_name}z:{userbase}/{implementation}{py_version_nodot_plat}/Scriptsz
{userbase}�nt_userzQ{userbase}/include/{implementation_lower}{py_version_short}{abiflags}/{dist_name}z{userbase}/bin�
posix_userc��tjt��5d�tj��D��cddd��S#1swxYwYdS)Nc�<�i|]}|tj|d�����S)F)�expand)�	sysconfig�	get_paths)�.0�schemes  �G/usr/lib/python3/dist-packages/setuptools/_distutils/command/install.py�
<dictcomp>z+_load_sysconfig_schemes.<locals>.<dictcomp>es:��
�
�
��
�I�'��u�=�=�=�
�
�
�)�
contextlib�suppress�AttributeErrorr#�get_scheme_names�r)r'�_load_sysconfig_schemesr/cs���	�	�^�	,�	,�
�
�
�
�#�4�6�6�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
����
�
�
�
�
�
s�A�A�Ac���t��pi��fd�ttjt�����D��S)z=
    Extend default schemes with schemes from sysconfig.
    c�x��i|]6}|it�|i�����|i�����7Sr.)�INSTALL_SCHEMES�get)r%r&�sysconfig_schemess  �r'r(z!_load_schemes.<locals>.<dictcomp>rs`������

�		�
��!�!�&�"�-�-�
��#�#�F�B�/�/�
���r))r/�set�	itertools�chainr2)r4s@r'�
_load_schemesr8ksX���
0�1�1�7�R������
�)�/�/�;L�M�M�N�N����r)c�4�ttd��rdSdS)N�pypy_version_info�PyPy�Python)�hasattr�sysr.r)r'�_get_implementationr?{s���s�'�(�(���v��xr)c���t|tt|������}t|���t|t
|������dS�N)�_inject_headers�_load_scheme�_resolve_scheme�vars�update�_remove_set�
_scheme_attrs)�ob�namer&s   r'�_select_schemerK�sQ��
�T�<���0E�0E�#F�#F�
G�
G�F���H�H�O�O�K��M�&�$9�$9�:�:�;�;�;�;�;r)c�D���fd�|���D��S)z1
    Include only attrs that are None in ob.
    c�<��i|]\}}t�|���||��SrA)�getattr)r%�key�valuerIs   �r'r(z_remove_set.<locals>.<dictcomp>�s.���S�S�S�:�3��'�"�c�:J�:J�:R�C��:R�:R�:Rr))�items)rI�attrss` r'rGrG�s(���T�S�S�S������S�S�S�Sr)c���|�d��\}}}	tj|��}n1#t$r$t	jt
|����}YnwxYw|S)N�_)�	partitionr#�get_preferred_scheme�	Exception�fwr&�
_pypy_hack)rJ�os_name�seprO�resolveds     r'rDrD�sl�����s�+�+��G�S�#�/��1�#�6�6�����/�/�/��9�Z��-�-�.�.����/�����Os�0�+A�Ac�*�t��|SrA)r8)rJs r'rCrC�s���?�?�4� � r)c�v�tt|����}|�d|d��|S)z�
    Given a scheme name and the resolved scheme,
    if the scheme does not include headers, resolve
    the fallback scheme for the name and use headers
    from it. pypa/distutils#88
    r)rCrY�
setdefault)rJr&�fallbacks   r'rBrB�s9���J�t�,�,�-�-�H�
���i��)�!4�5�5�5��Mr)c�*���fd�tD��S)z<Resolve install directories by applying the install schemes.c�(��i|]}d|���|��S)�install_r.)r%rOr&s  �r'r(z!_scheme_attrs.<locals>.<dictcomp>�s(���A�A�A�c��s���f�S�k�A�A�Ar))�SCHEME_KEYS)r&s`r'rHrH�s���A�A�A�A�[�A�A�A�Ar)c��tjdk}ttd��o|}|�d��}ddtjdkzz}|r|r|n|S)N)��r:)�_user�_homer�_ntr)r>�version_infor=�endswith�osrJ)rJ�PY37�old_pypy�prefix�	pypy_names     r'rYrY�sb����f�$�D��s�/�0�0�9�T�H����1�2�2�
2�F���"�'�T�/�2�2�I� �5�V�5�9�9��5r)c�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)rtrxrz�userNz!install in user site-package '%s'rvrtc�x�d|_d|_d|_d|_d|_d|_d|_d|_d|_d|_	d|_
d|_d|_t|_t|_d|_d|_d|_d|_d|_d|_d|_d|_d|_d|_dS)zInitializes options.Nrr)rp�exec_prefix�homer{�install_base�install_platbase�root�install_purelib�install_platlib�install_headers�install_lib�install_scripts�install_datar�install_userbaser�install_usersitert�optimize�
extra_path�install_path_filerx�
skip_build�warn_dir�
build_base�	build_lib�record��selfs r'�initialize_optionszinstall.initialize_optionss�����������	���	�
!��� $�����	� $���#���#������#��� ��� )��� )��������
����!"�����
������
�����������r)c��|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|||||t1tdd��t3�����t3��d�}t7t1tdd���dd�����}t:r|j|d<|j|d<tAj!tEj#��|tIj��|g��|_%|�&��|�
d��|j|d<|j|d<tNr2d	dl(m(}tSd��|t7|j%����|�*��|�
d��|jr|�+��|j,�2|j�-��r
|j.|_,n|j/|_,|�0dddd d!d"dd��|�1��|j,|_2tj3�4|j,|j5��|_,|j6�|�7d#dddd d!d"��|�
d$��|�8d%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}()rrpr}�z%d.%drz%d%d�
platlibdir�lib)�	dist_name�dist_version�
dist_fullname�
py_version�py_version_short�py_version_nodot�
sys_prefixrp�sys_exec_prefixr}�abiflagsr��implementation_lower�implementation�winver�.)�py_version_nodot_plat�userbase�usersitezpost-expand_basedirs()�base�platbase)�pprintzconfig vars:zpost-expand_dirs()rrrrr�libbasezafter prepending root�build)r�r�)r�r�)9rpr}r~rr�r
r{rmrJ�warn�	dump_dirs�
finalize_unix�finalize_otherr>�version�splitrr�r,�distribution�get_name�get_version�get_fullnamerkrNr?�lower�dict�replace�
HAS_USER_SITEr�r�r�	DictStackrXrEr#�config_vars�expand_basedirsrr��print�expand_dirs�create_home_pathr��has_ext_modulesr�r��
convert_paths�handle_extra_path�install_libbase�path�join�
extra_dirsr��change_roots�set_undefined_options)r�r�rpr}r��
local_vars�compat_varsr�s        r'�finalize_optionszinstall.finalize_optionsMs��� 
�K�	�4�+�	�t�y�	���	�!%�!6�	�'�>���
�
�9�	�$�+�	��)9�	�&�K���
��9�
	��K�
	���
	��y�
	�� �	
	�
�$�
	�'�:���
��7�g�����
(��	�	�G�H�H�H�#'�� �	
���2�3�3�3�
�7�g������ � � � ����!�!�!����5�6�6�6��[�&�&�(�(��+�
� /��-� H� H����	��|�H�H���	�	�	��H�H�H�	�����*�3�3�5�5� �-�9�9�;�;�!�.�;�;�=�=�$� '�#�*:�2�A�2�*>� >� &��)9�"�1�"�)=� =� ��*�&� �!�#�|�U�;�;�$7�$9�$9�$?�$?�$A�$A�1�3�3�
�
�
�$�")�#�x��"<�"<�"D�"D�S�"�"M�"M�
�
�
��
�	;�%)�%:�J�z�"�%)�%:�J�z�"�'�1�
�W�Y�Y��Y�%>�%@�%@�*�M�
�
���	
���������/�0�0�0�"�.�
�6��!%�!6�
�:���	+�%�%�%�%�%�%��.�!�!�!��F�4��(�)�)�*�*�*�	
���������+�,�,�,��9�	$��!�!�#�#�#���#�� �0�0�2�2�
8�#'�#7�� � �#'�#7�� �	
�����������		
�		
�		
� 	
��� � � �#�/����7�<�<��(8�$�/�J�J����9� �����5�)�Y�	�6�9�
�
�
�	
���.�/�/�/�	
�"�"��1�3M�	
�	
�	
�	
�	
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�:r����=z  %s: %s)	r�fancy_getoptr�r�debug�user_options�negative_opt�	translaterN)r��msgr��opt�opt_name�vals      r'r�zinstall.dump_dirss����	��F�0�0�0�0�0�0��	�#��)�����$�	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�	1r)c�P�|j�|j�I|jduo|jduo|jdup|jdup|jdup|jdu}|rtd���dS|j	r@|j
�td���|j
x|_|_|�d��dS|j
�*|j
x|_|_|�d��dS|j��|j�td���t!t"dd��}t$j�t*j��|z|_t$j�t*j��|z|_n|j�|j|_|j|_|j|_|�d	��dS)
z&Finalizes options for posix platforms.NzPinstall-base or install-platbase supplied, but installation scheme is incomplete�$User base directory is not specifiedrrz*must not supply exec-prefix without prefix�_prefix_additionr�r)rr�r�r�r�r�r�r�r
r{r�r�
select_schemer~rpr}rNr#rmr��normpathr>)r��incomplete_schemer�s   r'r�zinstall.finalize_unixs�����(�D�,A�,M��$��,�5��,��4�5��,��4�-�
�'�4�/�-��'�4�/�
-��$��,�
�!�
�*�8����
�F��9�	/��$�,�,�-S�T�T�T�8<�8M�M�D��� 5����|�,�,�,�,�,�
�Y�
"�8<�	�A�D��� 5����|�,�,�,�,�,��{�"��#�/�.�D����
$+�9�6H�"�#M�#M� � �g�.�.�s�z�:�:�=M�M���#%�7�#3�#3�C�O�#D�#D�GW�#W�� � ��#�+�'+�{�D�$� $��D��$(�$4�D�!����~�.�.�.�.�.r)c�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�rhrz)I don't know how to install stuff on '%s')r{r�rrr�r�rmrJr~rpr�r�r>�KeyErrorr�s r'r�zinstall.finalize_otherGs���9�	��$�,�,�-S�T�T�T�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�
��"�"�2�7�+�+�+�+�+���
�
�
�,�?�"�'�I����
���s�C0�0'Dc�&�t||��dSrA)rK)r�rJs  r'r�zinstall.select_scheme]s���t�T�"�"�"�"�"r)c��|D]y}t||��}|�etjdkstjdkrtj�|��}t||j��}t|||���zdS)Nr�r)rNrmrJr��
expanduserr
r��setattr)r�rR�attrr�s    r'�
_expand_attrszinstall._expand_attrs`s����	)�	)�D��$��%�%�C����7�g�%�%���D����'�,�,�S�1�1�C� ��d�&6�7�7����d�C�(�(�(��
	)�	)r)c�4�|�gd���dS)zNCalls `os.path.expanduser` on install_base, install_platbase and
        root.)rr�r�N�r�r�s r'r�zinstall.expand_basedirsis%��	
���G�G�G�H�H�H�H�Hr)c�4�|�gd���dS)z+Calls `os.path.expanduser` on install dirs.)r�r�r�r�r�r�Nr�r�s r'r�zinstall.expand_dirsns3�����
�
�
�		
�		
�		
�		
�		
r)c�r�|D]3}d|z}t||tt||�������4dS)z!Call `convert_path` over `names`.rcN)r�r	rN�r��namesrJr�s    r'r�zinstall.convert_paths{sP���	C�	C�D���$�D��D�$��W�T�4�-@�-@� A� A�B�B�B�B�	C�	Cr)c���|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.�,rrrzY'extra_path' option must be a list, tuple, or comma-separated string with 1 or 2 elementsr�)r�r�r�warning�
isinstance�strr��lenr
r	�	path_filer�)r�r�r�s   r'r�zinstall.handle_extra_path�s����?�"�"�/�:�D�O��?�&��K�.�
�
�
��$�/�3�/�/�
=�"&�/�"7�"7��"<�"<����4�?�#�#�q�(�(�)-���);�;�	�J�J��T�_�%�%��*�*�(,��%�	�:�:�*�B����&�j�1�1�J�J��I��J�#���$����r)c�~�|D]9}d|z}t||t|jt||�������:dS)z:Change the install directories pointed by name using root.rcN)r�rr�rNr�s    r'r�zinstall.change_roots�sT���	M�	M�D���$�D��D�$��D�I�w�t�T�7J�7J� K� K�L�L�L�L�	M�	Mr)c��|jsdSttj�d����}|j���D]s\}}t|���|��rLtj�	|��s-|�
d|z��tj|d���tdS)zCreate directories under ~.N�~zos.makedirs('%s', 0o700)i�)r{r	rmr�r�r�rQr��
startswith�isdir�debug_print�makedirs)r�r~rJr�s    r'r�zinstall.create_home_path�s����y�	��F��B�G�.�.�s�3�3�4�4���*�0�0�2�2�	)�	)�J�D�$��4�y�y�#�#�D�)�)�
)�"�'�-�-��2E�2E�
)�� � �!;�d�!B�C�C�C���D�%�(�(�(��	)�	)r)c��|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.r�z"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)r��run_commandr��get_command_obj�	plat_namer�rr�get_sub_commandsr��create_path_filer��get_outputsr�r��range�executer�maprmr�r�r>�normcaser�r�rr�)r��
build_plat�cmd_name�outputs�root_len�counter�sys_pathr�s        r'�runzinstall.run�s����	V����W�%�%�%��*�:�:�7�C�C�M�J��}�
V��|�~�~�!=�!=�,�-T�U�U�U��-�-�/�/�	'�	'�H����X�&�&�&�&��>�	$��!�!�#�#�#��;�
	��&�&�(�(�G��y�
C��t�y�>�>��$�S��\�\�2�2�C�C�G�'.�w�'7��	�	�'B�G�G�$�$��L�L����g�&�9�D�K�G�
�
�
��r�w�'���2�2���r�w�'��2�2���g�&�&�r�w�'7�'7��8H�'I�'I�J�J���M�	��^�	�(,�(>�	��8�+�+��I�E�� �

�
�
�
�
�	�	�,�+�	�	r)c���tj�|j|jdz��}|jr)|�t||jgfd|z��dS|�	d|z��dS)zCreates the .pth file�.pthzcreating %szpath file '%s' not createdN)
rmr�r�r�r�r�rrr�r�)r��filenames  r'rzinstall.create_path_file�s����7�<�<�� 4�d�n�v�6M�N�N���!�	?��L�L��X���'8�9�=�8�;S�
�
�
�
�
�
�I�I�2�X�=�>�>�>�>�>r)c�^�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�r�rmr�r�r�)r�rr�cmdrs     r'rzinstall.get_outputs�s������-�-�/�/�	-�	-�H��,�,�X�6�6�C� �O�O�-�-�
-�
-���7�*�*��N�N�8�,�,�,��
-��>�	X�d�4�	X��N�N�2�7�<�<��(<�d�n�v�>U�V�V�W�W�W��r)c��g}|���D]>}|�|��}|�|������?|S)z*Returns the inputs of all the sub-commands)rr�extend�
get_inputs)r��inputsrrs    r'rzinstall.get_inputss[�����-�-�/�/�	,�	,�H��,�,�X�6�6�C��M�M�#�.�.�*�*�+�+�+�+��
r)c�f�|j���p|j���S)zSReturns true if the current distribution has any Python
        modules to install.)r��has_pure_modulesr�r�s r'�has_libzinstall.has_libs/��
��.�.�0�0�W�D�4E�4U�4U�4W�4W�	
r)c�4�|j���S)zLReturns true if the current distribution has any headers to
        install.)r��has_headersr�s r'r zinstall.has_headers���� �,�,�.�.�.r)c�4�|j���S)zMReturns true if the current distribution has any scripts to.
        install.)r��has_scriptsr�s r'r#zinstall.has_scriptsr!r)c�4�|j���S)zJReturns true if the current distribution has any data to.
        install.)r��has_data_filesr�s r'�has_datazinstall.has_data!s��� �/�/�1�1�1r)r�r�r�r��install_egg_infoc��dS)NTr.r�s r'�<lambda>zinstall.<lambda>-s��$�r)) �__name__�
__module__�__qualname__�descriptionr��boolean_optionsr�rrr�r�r�r�r�r�r�r�r�r�r�r�r�r�rrrrrr r#r&�sub_commandsr.r)r'rsrs�s������;�K�:�:�:�L�x9�8�8�O��'����
�T�>��J�K�	
�	
�	
�	���v�&�&�&� �)�,�L�E�E�E�Zp
�p
�p
�j1�1�1�(//�//�//�b���,#�#�#�)�)�)�I�I�I�

�
�
�C�C�C�!%�!%�!%�FM�M�M�)�)�)�0�0�0�d?�?�?���� ���
�
�
�/�/�/�
/�/�/�
2�2�2�
�� �	�K�(�	�K�(�	��"�	�.�.�/��L�L�Lr)rs)/�__doc__r>rmr*r#r6�distutils._logr�corerr�rr�	file_utilr�utilr	r
rr�errorsr
rr�rrXr�siterrr��WINDOWS_SCHEMEr2rF�schemesrdr/r8r?rKrGrDrCrBrHrYrsr.r)r'�<module>r9s��/�/��
�
�
�	�	�	�	�������������������������������'�'�'�'�'�'�"�"�"�"�"�"�8�8�8�8�8�8�8�8�8�8�������A�A�A�A�A�A�A�A�%�%�%�%�%�%��������������������
�*�)�+������W�+�3�����7�?�F������)�)�/���
�
�*�)�/�#����3 � ��F�����O��
"�"�O�I�� ��3�#��
%�%�O�L�!����r�z�"�"�"�C��
�
�
�
�
�
� ���<�<�<�
T�T�T����!�!�!����B�B�B�
6�6�6�x	�x	�x	�x	�x	�g�x	�x	�x	�x	�x	r)