Uname: Linux web3.us.cloudlogin.co 5.10.226-xeon-hst #2 SMP Fri Sep 13 12:28:44 UTC 2024 x86_64
Software: Apache
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.210.96.117
Your Ip: 18.117.100.196
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : install.cpython-311.pyc
�

�f�f%o����dZddlZddlZddlZddlZddlmZddlmZddl	m
Z
ddlmZddl
mZddlmZdd	lmZmZmZdd
lmZddl
mZddlmZdd
lmZeduZdZiiid�ZeD]6ZdD]1\ZZeZ ej!eZ"edkree"vrdZ e"e eee<�2�7eD]�Z#ee#�$��D]�\ZZ%ej&dde%��Z%e%�'dd��Z%e%�'dd��Z%edkre%dz
Z%ej(dkredkre%�'dd��Z%e%ee#e<����erdddd d!d�ed"<ddd#d$d!d�ed%<Gd&�d'e��Z)dS)(zFdistutils.command.install

Implements the Distutils 'install' command.�N)�log)�Command)�DEBUG)�get_config_vars)�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�nt))r�posix_prefix)r�
posix_home)rrr�includez	\{(.+?)\}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�J�eZdZdZgd�Zgd�Zer0e�dddezf��e�d��ddiZ	e
ed	d
��Zd�Z
d�Zd
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z d�Z!d efd!efd"e fd#e!fd$d%�fgZ"dS)&�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)r!r%r'�userNz!install in user site-package '%s'r#r!�_prefix_addition�c��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|_dS)zInitializes options.Nr�)�prefix�exec_prefix�homer(�install_base�install_platbase�root�install_purelib�install_platlib�install_headers�install_lib�install_scripts�install_data�
HAS_USER_SITEr�install_userbaser�install_usersiter!�optimize�
extra_path�install_path_filer%�
skip_build�warn_dir�
build_base�	build_lib�record��selfs �2/usr/lib64/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}()rr-r.r*z%d.%d�z%d%d)�	dist_name�dist_version�
dist_fullname�
py_version�py_version_short�py_version_nodot�
sys_prefixr-�sys_exec_prefixr.�abiflags�
platlibdir�userbase�usersiteT�srcdirzpost-expand_basedirs()�base�platbase)�pprintzconfig vars:zpost-expand_dirs()�librrrrr�libbasezafter prepending root�build)rArA)rBrB)3r-r.r/r0r1r
r(�os�name�warn�	dump_dirs�
finalize_unix�finalize_other�sys�version�splitrrT�AttributeError�distribution�get_name�get_version�get_fullname�version_inforU�config_varsr9r:r;�	sysconfig�is_python_build�get_config_var�expand_basedirsrr[�print�expand_dirs�create_home_pathr6�ext_modulesr4r3�
convert_paths�handle_extra_path�install_libbase�path�join�
extra_dirsr2�change_roots�set_undefined_options)rErOr-r.rTr[s      rF�finalize_optionszinstall.finalize_options�s��� �[�	@�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)rE�msgr��opt�opt_name�vals      rFrbzinstall.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�	1rHc��|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�td���t j�t&j��|jz|_t j�t&j��|jz|_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 prefixr)r0r1r6r3r4r5r7r8r
r(r:r�
select_schemer/r-r.r_rz�normpathrer)rDs rFrczinstall.finalize_unix�s�����(�D�,A�,M��!�)��%�-��%�-��$�,��$�,��!�)�*�:�;�;�;�
�F��9�	.��$�,�,�:�<�<�<�8<�8M�M�D��� 5����{�+�+�+�+�+�
�Y�
"�8<�	�A�D��� 5����{�+�+�+�+�+��{�"��#�/�.�F�H�H�H��G�$�$�S�Z�0�0�4�3H�H����G�$�$�S�_�5�5��8M�M�� � ��#�+�'+�{�D�$� $��D��$(�$4�D�!����}�-�-�-�-�-rHc�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:rr0r1r�r_r`r/r-rzr�re�KeyErrorrDs rFrdzinstall.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)rEr`�scheme�key�attrnames     rFr�zinstall.select_scheme�sX��!��&���	5�	5�C�!�C�'�H��t�X�&�&�.���h��s��4�4�4��	5�	5rHc��|D]y}t||��}|�etjdkstjdkrtj�|��}t||j��}t|||���zdS)NrJr)r�r_r`rz�
expanduserr
rnr�)rE�attrs�attrr�s    rF�
_expand_attrszinstall._expand_attrs�s����	)�	)�D��$��%�%�C����7�g�%�%���D����'�,�,�S�1�1�C� ��d�&6�7�7����d�C�(�(�(��
	)�	)rHc�4�|�gd���dS)zNCalls `os.path.expanduser` on install_base, install_platbase and
        root.)r0r1r2N�r�rDs rFrrzinstall.expand_basedirs�s%��	
���G�G�G�H�H�H�H�HrHc�4�|�gd���dS)z+Calls `os.path.expanduser` on install dirs.)r3r4r6r5r7r8Nr�rDs rFrtzinstall.expand_dirs�s;�����@�@�@�	A�	A�	A�	A�	ArHc�r�|D]3}d|z}t||tt||�������4dS)z!Call `convert_path` over `names`.r�N)r�r	r��rE�namesr`r�s    rFrwzinstall.convert_paths�sP���	C�	C�D���$�D��D�$��W�T�4�-@�-@� A� A�B�B�B�B�	C�	CrHc���|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.�,r,rrKzY'extra_path' option must be a list, tuple, or comma-separated string with 1 or 2 elementsr*)r=rirra�
isinstance�strrg�lenr
r	�	path_filer|)rEr�r|s   rFrxzinstall.handle_extra_paths����?�"�"�/�:�D�O��?�&��H�.�
�
�
��$�/�3�/�/�
=�"&�/�"7�"7��"<�"<����4�?�#�#�q�(�(�)-���);�;�	�J�J��T�_�%�%��*�*�(,��%�	�:�:�*�D�E�E�E�&�j�1�1�J�J��I��J�#���$����rHc�~�|D]9}d|z}t||t|jt||�������:dS)z:Change the install directories pointed by name using root.r�N)r�rr2r�r�s    rFr}zinstall.change_roots&sT���	M�	M�D���$�D��D�$��D�I�w�t�T�7J�7J� K� K�L�L�L�L�	M�	MrHc�p�|jsdSttj�d����}|j���D]f\}}|�|��rLtj�|��s-|�	d|z��tj
|d���gdS)zCreate directories under ~.N�~zos.makedirs('%s', 0o700)i�)r(r	r_rzr�rn�items�
startswith�isdir�debug_print�makedirs)rEr/r`rzs    rFruzinstall.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�%�(�(�(��	)�	)rHc��|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_commandri�get_command_obj�	plat_namer@rr�get_sub_commandsr��create_path_filerC�get_outputsr2r��range�executer�mapr_rzr�re�normcaser6r>rr�)rE�
build_plat�cmd_name�outputs�root_len�counter�sys_pathr6s        rF�runzinstall.run8s#����		@����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��'�
)�
)�
)�
)�
)�	)�	)�'�'�	)�	)rHc���tj�|j|jdz��}|jr)|�t||jgfd|z��dS|�	d|z��dS)zCreates the .pth file�.pthzcreating %szpath file '%s' not createdN)
r_rzr{ryr�r>r�rr|ra)rE�filenames  rFr�zinstall.create_path_fileds����7�<�<�� 4� $��� 7�9�9���!�	?��L�L��"�T�_�$5�6�&��1�
3�
3�
3�
3�
3�
�I�I�2�X�=�>�>�>�>�>rHc�^�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>r_rzr{ry)rEr�r��cmdr�s     rFr�zinstall.get_outputsrs������-�-�/�/�	-�	-�H��,�,�X�6�6�C� �O�O�-�-�
-�
-���7�*�*��N�N�8�,�,�,��
-��>�	B�d�4�	B��N�N�2�7�<�<��(<�(,���(?�A�A�
B�
B�
B��rHc��g}|���D]>}|�|��}|�|������?|S)z*Returns the inputs of all the sub-commands)r�r��extend�
get_inputs)rE�inputsr�r�s    rFr�zinstall.get_inputs�s[�����-�-�/�/�	,�	,�H��,�,�X�6�6�C��M�M�#�.�.�*�*�+�+�+�+��
rHc�f�|j���p|j���S)zSReturns true if the current distribution has any Python
        modules to install.)ri�has_pure_modules�has_ext_modulesrDs rF�has_libzinstall.has_lib�s2���!�2�2�4�4�4��!�1�1�3�3�	5rHc�4�|j���S)zLReturns true if the current distribution has any headers to
        install.)ri�has_headersrDs rFr�zinstall.has_headers����� �,�,�.�.�.rHc�4�|j���S)zMReturns true if the current distribution has any scripts to.
        install.)ri�has_scriptsrDs rFr�zinstall.has_scripts�r�rHc�4�|j���S)zJReturns true if the current distribution has any data to.
        install.)ri�has_data_filesrDs rF�has_datazinstall.has_data�s��� �/�/�1�1�1rHr6r5r7r8�install_egg_infoc��dS)NT�rDs rF�<lambda>zinstall.<lambda>�s��T�rH)#�__name__�
__module__�__qualname__�descriptionr��boolean_optionsr9r�rr�r�ror)rGrrbrcrdr�r�rrrtrwrxr}rur�r�r�r�r�r�r�r��sub_commandsr�rHrFr r Zs&������;�K�9
�9
�9
�L�v9�8�8�O��'����V�T�@�9�L�N�	O�	O�	O����v�&�&�&� �9�-�L��w�y�*<�b�A�A��F�F�F�^U?�U?�U?�t1�1�1�&(.�(.�(.�TM�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�LrHr )*�__doc__reror_�re�	distutilsr�distutils.corer�distutils.debugr�distutils.sysconfigr�distutils.errorsr�distutils.file_utilr�distutils.utilr	r
rrr
�siterrr9r�r�r��distutils_scheme_name�sys_scheme_name�sys_key�_INSTALL_SCHEMES�
sys_scheme�main_keyr��value�sub�replacermr r�rHrF�<module>r�s���/�/��
�
�
�����	�	�	�	�	�	�	�	�������"�"�"�"�"�"�!�!�!�!�!�!�/�/�/�/�/�/�3�3�3�3�3�3�*�*�*�*�*�*�@�@�@�@�@�@�@�@�@�@�'�'�'�'�'�'�1�1�1�1�1�1��������������$�&�
�
C��#%�2�R�@�@���
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� �Q	�Q	�Q	�Q	�Q	�g�Q	�Q	�Q	�Q	�Q	rH
© 2025 GrazzMean