U
    ™P^_  ã                   @   s:   d dl Z d dlmZ er(d dlmZmZ dZddd„ZdS )	é    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 jg}|r| d¡ | dt | ¡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_pathÚglobal_optionsZno_user_configZunbuffered_outputÚargs© r   úE/tmp/pip-install-220asx0h/pip/pip/_internal/utils/setuptools_build.pyÚmake_setuptools_shim_args   s    


r   )NFF)r   Úpip._internal.utils.typingr   Útypingr   r   r	   r   r   r   r   r   Ú<module>   s   	ÿ   ü