Edit File: install.cpython-311.pyc
� �����fRn����������������������������d�Z�ddlZddlZddlZddlZddlmZ�ddlmZ�ddl m Z �ddlmZ�ddl mZ�ddlmZ�dd lmZmZmZ�dd lmZ�ddl mZ�ddlmZ�dd lmZ�eduZdZi�i�i�d�ZeD�]6ZdD�]1\��ZZeZ ej!��������e���������Z"edk����ree"vrdZ e"e ���������ee���������e<����2�7eD�]�Z#ee#����������$����������������������������������D�]�\��ZZ%�ej&��������dde%������������Z%e%�'��������������������dd������������Z%e%�'��������������������dd������������Z%edk����re%dz ��Z%ej(��������dk����redk����re%�'��������������������dd������������Z%e%ee#���������e<�������erdddd d!d�ed"<���ddd#d$d!d�ed%<����G�d&��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)r���r���r����includez \{(.+?)\}z$\g<1>z$installed_basez$basez$py_version_nodot_platz$py_version_nodotz/$dist_name)����� ���r���z/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����e�Zd�ZdZg�d�Zg�d�Zer0e���������������������dddez��f�������������e���������������������d�������������ddiZ d ��Z d ��Zd��Zd��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)zexec-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)zinstall-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!���c����������������������d|�_���������d|�_��������d|�_��������d|�_��������d|�_��������d|�_��������d|�_��������d|�_��������d|�_��������d|�_ ��������d|�_ ��������d|�_��������d|�_��������t����������rt����������|�_��������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��� �@/opt/alt/python311/lib64/python3.11/distutils/command/install.py�initialize_optionszinstall.initialize_options����s���������������� ��� � �!��� $����� �� $���#���#������#��� ����� .�$-�D�!�$-�D�!������ �����!"������ ������ ������������������c����������� �������0����|�j���������s|�j��������s|�j��������r|�j��������s|�j��������rt����������d�������������|�j��������r|�j���������s|�j��������rt����������d�������������|�j��������r2|�j���������s|�j��������s|�j��������s|�j��������s|�j��������rt����������d�������������t����������j��������dk����r#|�j��������r|�� ��������������������d�������������d|�_��������|�� ��������������������d�������������t����������j��������dk����r|�������������������������������������n|�������������������������������������|�� ��������������������d�������������t����������j�������������������������������������������d ���������}t!����������d d������������\��}} �t����������j��������}n#�t$����������$�r�d}Y�nw�xY�w|�j�������������������������������������������|�j�������������������������������������������|�j�������������������������������������������|d t����������j��������dd����������z��dt����������j��������dd����������z��|||||t����������j��������d�|�_��������t4����������r|�j��������|�j��������d<���|�j��������|�j��������d<���t;����������j��������d������������rt;����������j��������d������������|�j��������d<���|�� �����������������������������������|�� ��������������������d�������������|�j��������|�j��������d<���|�j��������|�j��������d<���tB����������r%d dl"m"}�tG����������d��������������||�j���������������������|��$�����������������������������������|�� ��������������������d�������������|�j��������r|��%�����������������������������������|�j&���������%|�j��������j'��������r |�j(��������|�_&��������n|�j)��������|�_&��������|��*��������������������dddddd �������������t4����������r|��*��������������������dd�������������|��+�����������������������������������|�j&��������|�_,��������t����������j-���������.��������������������|�j&��������|�j/��������������������|�_&��������|�j0���������|��1��������������������d!dddddd �������������|�� ��������������������d"�������������|��2��������������������d#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}()r���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)�pprintzconfig vars:zpost-expand_dirs()�libr���r���r���r���r����libbasezafter prepending root�build)r?���r?���)r@���r@���)3r+���r,���r-���r.���r/���r ���r(����os�name�warn� dump_dirs� finalize_unix�finalize_other�sys�version�splitr���rS����AttributeError�distribution�get_name�get_version�get_fullname�version_inforT����config_varsr7���r8���r9���� sysconfig�is_python_build�get_config_var�expand_basedirsr���rZ����print�expand_dirs�create_home_pathr4����ext_modulesr2���r1���� convert_paths�handle_extra_path�install_libbase�path�join� extra_dirsr0����change_roots�set_undefined_options)rC���rN���r+���r,���rS���rZ���s��� rD����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����������������������t�����������sdS�ddlm}�t����������j��������|dz����������������|�j��������D�]�}|d���������}|d���������dk����r |dd����������}||�j��������v�r4|�j��������|���������}|���������������������|������������}t����������|�|�������������}n%|���������������������|������������}t����������|�|������������}t����������j��������d||���������������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)rC����msgr�����opt�opt_name�vals��� rD���ra���zinstall.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�� 1rF���c����������������������|�j����������|�j���������;|�j���������|�j���������|�j���������|�j���������|�j���������|�j���������t����������d�������������dS�|�j ��������r@|�j ���������t����������d�������������|�j ��������x|�_���������|�_��������|����������������������d�������������dS�|�j ���������*|�j ��������x|�_���������|�_��������|����������������������d�������������dS�|�j���������s|�j���������t����������d�������������t ����������j�����������������������������t&����������j��������������������|�_��������t ����������j�����������������������������t&����������j��������������������|�_��������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 specifiedr���r���z*must not supply exec-prefix without prefixr���)r.���r/���r4���r1���r2���r3���r5���r6���r ���r(���r8���r���� select_schemer-���r+���r,���r^���ry����normpathrd���rB���s��� rD���rb���zinstall.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�:�:���#%�7�#3�#3�C�O�#D�#D�� � ���#�+�'+�{�D�$� $��D��$(�$4�D�!����}�-�-�-�-�-rF���c������������������4����|�j���������rM|�j���������t����������d�������������|�j��������x|�_��������|�_��������|����������������������t����������j��������dz����������������dS�|�j���������*|�j��������x|�_��������|�_��������|����������������������d�������������dS�|�j ���������.t����������j �����������������������������t����������j ��������������������|�_ ��������|�j ��������x|�_��������|�_�������� �|����������������������t����������j���������������������dS�#�t����������$�r�t����������dt����������j��������z���������������w�xY�w)z)Finalizes options for non-posix platformsNr�����_userr���z)I don't know how to install stuff on '%s')r(���r8���r���r.���r/���r����r^���r_���r-���r+���ry���r����rd����KeyErrorrB���s��� rD���rc���zinstall.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�����������|���������}t����������D�].}d|z���}t����������|�|�������������t����������|�|||�����������������������/dS�)z=Sets the install directories by applying the install schemes.�install_N)�INSTALL_SCHEMES�SCHEME_KEYSr�����setattr)rC���r_����scheme�key�attrnames��� rD���r����zinstall.select_scheme���sX�������!��&���� 5�� 5�C�!�C�'�H��t�X�&�&�.���h��s��4�4�4�� 5�� 5rF���c�����������������������|D�]y}t����������|�|������������}|�et����������j��������dk����st����������j��������dk����rt����������j�����������������������������|������������}t����������||�j��������������������}t����������|�||��������������zd�S�)NrH���r���)r����r^���r_���ry���� expanduserr ���rm���r����)rC����attrs�attrr����s��� rD���� _expand_attrszinstall._expand_attrs���s��������� )�� )�D��$��%�%�C����7�g�%�%���D����'�,�,�S�1�1�C� ��d�&6�7�7����d�C�(�(�(�� )�� )rF���c������������������4�����|�����������������������g�d��������������dS�)zNCalls `os.path.expanduser` on install_base, install_platbase and root.)r.���r/���r0���N�r����rB���s��� rD���rq���zinstall.expand_basedirs���s%������� ���G�G�G�H�H�H�H�HrF���c������������������4�����|�����������������������g�d��������������dS�)z+Calls `os.path.expanduser` on install dirs.)r1���r2���r4���r3���r5���r6���Nr����rB���s��� rD���rs���zinstall.expand_dirs���s;����������@��@��@�� A�� A�� A�� A�� ArF���c������������������r�����|D�]3}d|z���}t����������|�|t����������t����������|�|��������������������������������������4dS�)z!Call `convert_path` over `names`.r����N)r����r ���r�����rC����namesr_���r����s��� rD���rv���zinstall.convert_paths���sP�������� C�� C�D���$�D��D�$��W�T�4�-@�-@� A� A�B�B�B�B� C�� CrF���c�����������������������|�j����������|�j��������j���������|�_���������|�j�����������t����������j��������d�������������t ����������|�j���������t ����������������������r|�j������������������������������d������������|�_���������t����������|�j���������������������dk����r|�j���������d���������x}}n2t����������|�j���������������������dk����r|�j���������\��}}nt����������d�������������t����������|������������}nd}d}||�_ ��������||�_��������dS�) z4Set `path_file` and `extra_dirs` using `extra_path`.NzIDistribution option extra_path is deprecated. See issue27919 for details.�,r*���r���rJ���zY'extra_path' option must be a list, tuple, or comma-separated string with 1 or 2 elementsrI���)r;���rh���r���r`���� isinstance�strrf����lenr ���r ���� path_filer{���)rC���r����r{���s��� rD���rw���zinstall.handle_extra_path���s��������?�"�"�/�:�D�O��?�&��H�.� �� �� ���$�/�3�/�/�� =�"&�/�"7�"7��"<�"<����4�?�#�#�q�(�(�)-���);�;� �J�J��T�_�%�%��*�*�(,��%� �:�:�*�D�E��E��E��&�j�1�1�J�J��I��J��#���$����rF���c������������������~�����|D�]9}d|z���}t����������|�|t����������|�j��������t����������|�|��������������������������������������:dS�)z:Change the install directories pointed by name using root.r����N)r����r���r0���r����r����s��� rD���r|���zinstall.change_roots"��sT�������� M�� M�D���$�D��D�$��D�I�w�t�T�7J�7J� K� K�L�L�L�L� M�� MrF���c������������������p����|�j���������sdS�t����������t����������j�����������������������������d������������������������}|�j�������������������������������������������D�]f\��}}|���������������������|������������rLt����������j�����������������������������|������������s-|�� ��������������������d|z���������������t����������j ��������|d��������������gdS�)zCreate directories under ~.N�~zos.makedirs('%s', 0o700)i���)r(���r ���r^���ry���r����rm����items� startswith�isdir�debug_print�makedirs)rC���r-���r_���ry���s��� rD���rt���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�%�(�(�(�� )�� )rF���c����������������������|�j���������s\|����������������������d�������������|�j�����������������������������d������������j��������}|�j��������r!|t ������������������������k����rt����������d�������������|������������������������������������D�]}|����������������������|��������������|�j ��������r|�� �����������������������������������|�j��������r�|������������������������������������}|�j ��������rFt����������|�j ��������������������}t����������t����������|������������������������D�]}||���������|d����������||<����|����������������������t"����������|�j��������|fd|�j��������z���������������t%����������t&����������j��������j��������t,����������j��������������������}t%����������t&����������j��������j��������|������������}t&����������j�����������������������������t&����������j�����������������������������|�j��������������������������������}|�j��������r.|�j ��������r|�j��������s$||vrt5����������j��������d|�j���������������������dS�dS�dS�dS�)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_commandrh����get_command_obj� plat_namer>���r���r����get_sub_commandsr�����create_path_filerA����get_outputsr0���r�����range�executer����mapr^���ry���r����rd����normcaser4���r<���r���r����)rC���� build_plat�cmd_name�outputs�root_len�counter�sys_pathr4���s��� rD����runzinstall.run4��s#��������� @����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���'� )�� )�� )�� )�� )� )�� )�'�'� )�� )rF���c������������������������t�����������j�����������������������������|�j��������|�j��������dz���������������}|�j��������r)|����������������������t����������||�j��������gfd|z���������������dS�|�� ��������������������d|z���������������dS�)zCreates the .pth file�.pthzcreating %szpath file '%s' not createdN) r^���ry���rz���rx���r����r<���r����r���r{���r`���)rC����filenames��� rD���r����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�=�>�>�>�>�>rF���c������������������^����g�}|�������������������������������������D�]G}|����������������������|������������}|�����������������������������������D�]}||vr|���������������������|���������������H|�j��������rG|�j��������r@|���������������������t����������j�����������������������������|�j ��������|�j��������dz����������������������������|S�)z.Assembles the outputs of all the sub-commands.r����) r�����get_finalized_commandr�����appendr����r<���r^���ry���rz���rx���)rC���r����r�����cmdr����s��� rD���r����zinstall.get_outputsn��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���rF���c�����������������������g�}|�������������������������������������D�]>}|����������������������|������������}|���������������������|�������������������������������������������������?|S�)z*Returns the inputs of all the sub-commands)r����r�����extend� get_inputs)rC����inputsr����r����s��� rD���r����zinstall.get_inputs��s[����������-�-�/�/�� ,�� ,�H��,�,�X�6�6�C��M�M�#�.�.�*�*�+�+�+�+�� rF���c������������������f�����|�j��������������������������������������������p|�j��������������������������������������������S�)zSReturns true if the current distribution has any Python modules to install.)rh����has_pure_modules�has_ext_modulesrB���s��� rD����has_libzinstall.has_lib���s2��������!�2�2�4�4��4��!�1�1�3�3� 5rF���c������������������4�����|�j��������������������������������������������S�)zLReturns true if the current distribution has any headers to install.)rh����has_headersrB���s��� rD���r����zinstall.has_headers������������ �,�,�.�.�.rF���c������������������4�����|�j��������������������������������������������S�)zMReturns true if the current distribution has any scripts to. install.)rh����has_scriptsrB���s��� rD���r����zinstall.has_scripts���r����rF���c������������������4�����|�j��������������������������������������������S�)zJReturns true if the current distribution has any data to. install.)rh����has_data_filesrB���s��� rD����has_datazinstall.has_data���s�������� �/�/�1�1�1rF���r4���r3���r5���r6����install_egg_infoc�����������������������dS�)NT��rB���s��� rD����<lambda>zinstall.<lambda>���s������T��rF���) �__name__� __module__�__qualname__�descriptionr�����boolean_optionsr7���r����r���r����rE���r~���ra���rb���rc���r����r����rq���rs���rv���rw���r|���rt���r����r����r����r����r����r����r����r�����sub_commandsr����rF���rD���r ���r ���Z���s�������������;�K�9 ��9 ��9 �L�v�9�8�8�O���'����V�T�@�9�L�N�� O�� O�� O����v�&�&�&� �9�-�L�F��F��F�^U?��U?��U?�t1��1��1�&&.��&.��&.�PM��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�LrF���r ���)*�__doc__rd���rn���r^����re� distutilsr����distutils.corer����distutils.debugr����distutils.sysconfigr����distutils.errorsr����distutils.file_utilr����distutils.utilr ���r ���r���r���r ����siter���r���r7���r����r����r�����distutils_scheme_name�sys_scheme_name�sys_key�_INSTALL_SCHEMES� sys_scheme�main_keyr�����value�sub�replacerl���r ���r����rF���rD����<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� �M ��M ��M ��M ��M �g��M ��M ��M ��M ��M rF���