U
��.e_ � @ s: d dl Z d dlmZ er(d dlmZmZ dZddd�ZdS ) � N)�MYPY_CHECK_RUNNING)�List�Sequencez�import sys, setuptools, tokenize; sys.argv[0] = {0!r}; __file__={0!r};f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))Fc C sJ t jg}|r|�d� |�dt�| �g� |r8|�|� |rF|�d� |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�append�extend�_SETUPTOOLS_SHIM�format)Z
setup_py_pathZglobal_optionsZno_user_configZunbuffered_output�args� r �H/usr/lib/python3.8/site-packages/pip/_internal/utils/setuptools_build.py�make_setuptools_shim_args s
r )NFF)r Zpip._internal.utils.typingr �typingr r r r r r r r
�