� ��^iY����ddlZddlmZmZmZdZ ddedeededed eef d �Zdedeed eed ed eef d �Z dedeed eefd�Z dedeedeededeedeeded eefd�Z dedeeded eefd�Z dedeedeededeedeedeedeedededed eefd�Z dS)�N)�List�Optional�Sequencea'import io, os, sys, setuptools, tokenize; sys.argv[0] = {0!r}; __file__={0!r};f = getattr(tokenize, 'open', open)(__file__) if os.path.exists(__file__) else io.StringIO('from setuptools import setup; setup()');code = f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))F� setup_py_path�global_options�no_user_config�unbuffered_output�returnc��tjg}|r|dgz }|dt�|��gz }|r||z }|r|dgz }|S)ao Get setuptools command arguments with shim wrapped setup file invocation. :param setup_py_path: The path to setup.py to be wrapped. :param global_options: Additional global options. :param no_user_config: If True, disables personal user configuration. :param unbuffered_output: If True, adds the unbuffered switch to the argument list. z-uz-cz --no-user-cfg)�sys� executable�_SETUPTOOLS_SHIM�format)rrrr �argss ��/builddir/build/BUILDROOT/alt-python311-pip-21.3.1-4.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/pip/_internal/utils/setuptools_build.py�make_setuptools_shim_argsrsk�� �N� �D��� ������T�#�*�*�=�9�9� :�:�D��� �����"� ��!�!�� �K�� build_options�destination_dirc�D�t||d���}|dd|gz }||z }|S)NT�rr � bdist_wheelz-d�r)rrrrrs r� make_setuptools_bdist_wheel_argsr/sA�� %��n�� � � �D� �]�D�/� 2�2�D��M��D� �Krc�8�t||d���}|ddgz }|S)NTr�cleanz--allr)rrrs r�make_setuptools_clean_argsrAs5�� %��n�� � � �D� �W�g� ��D� �Kr�install_options�prefix�home� use_user_sitec��|r|rJ�t|||���}|ddgz }||z }|r|d|gz }|�|d|gz }|r|ddgz }|S)N)rr�developz --no-deps�--prefixz --install-dir�--user� --prefix=r)rrrrrr r!rs r�make_setuptools_develop_argsr'Ls����)�&�)�)� )� $��%�%� � � �D�  �Y� � $�$�D��O��D� �%� ��V�$�$�� �� ��$�'�'���(� ��;�'�'�� �Kr� egg_info_dirc�F�t||���}|dgz }|r|d|gz }|S)N)r�egg_infoz --egg-baser)rr(rrs r�make_setuptools_egg_info_argsr+ls>�� %�]�>� R� R� R�D��Z�L��D��-� ��|�,�,�� �Kr�record_filename�root� header_dir� pycompilec ���|r|rJ�|r|rJ�t||| d���} | dd|gz } | dgz } |�| d|gz } |�| d|gz } |�| d|gz } |r| d d gz } | r| d gz } n| d gz } |r| d |gz } | |z } | S)NT)rrr �installz--recordz#--single-version-externally-managedz--rootr$z--homer%r&z --compilez --no-compilez--install-headersr) rrrr,r-rr.r r!rr/rs r�make_setuptools_install_argsr2{s���)�&�)�)� )��'�$�'�'� '� $��%�%��  � � �D�  �Y� �O� 4�4�D�� 2� 3�3�D� �� ��4� � �� �� ��V�$�$�� �� ��4� � ���(� ��;�'�'���!� �� ���� �� � ���2� �$�j�1�1���O��D� �Kr)NFF)r �typingrrrr�str�boolrrrr'r+r2�rr�r7sw�� � � � �+�+�+�+�+�+�+�+�+�+�,��%)� �#� �����S�M����� �  �#�Y� ����4����S�M���C�=��� �  �#�Y� ����$����S�M�� �#�Y���������S�M���c�]��� � �S�M� � �3�-� ��� �#�Y�����@ �� ��3�-� �� � �#�Y� � � � �,��,��S�M�,��c�]�,�� ,� �3�-� ,� �S�M� ,��� �,� �3�-�,��,��,��,� �#�Y�,�,�,�,�,�,r