관리-도구
편집 파일: setuptools_build.cpython-39.pyc
a [��fY � @ s d dl Z d dlmZmZmZ dZdeee eeee d�dd�Zeee ee eee d�d d �Z eee ee d�dd �Z eee ee eee ee eee d�dd�Zeee eee d�dd�Zeee ee eee ee ee ee eeeee d�dd�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 C sF t jg}|r|dg7 }|dt�| �g7 }|r4||7 }|rB|dg7 }|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)r r r r �args� r �H/usr/lib/python3.9/site-packages/pip/_internal/utils/setuptools_build.py�make_setuptools_shim_args s r )r r � build_options�destination_dirr c C s( t | |dd�}|dd|g7 }||7 }|S )NT�r r Zbdist_wheelz-d�r )r r r r r r r r � make_setuptools_bdist_wheel_args/ s �r )r r r c C s t | |dd�}|ddg7 }|S )NTr Zcleanz--allr )r r r r r r �make_setuptools_clean_argsA s �r )r r �install_optionsr �prefix�home� use_user_siter c C sf |r|rJ �t | ||d�}|ddg7 }||7 }|r>|d|g7 }|d urR|d|g7 }|rb|ddg7 }|S )N)r r Zdevelopz --no-deps�--prefixz --install-dir�--user� --prefix=r )r r r r r r r r r r r �make_setuptools_develop_argsL s �r )r �egg_info_dirr r c C s* t | |d�}|dg7 }|r&|d|g7 }|S )N)r Zegg_infoz --egg-baser )r r r r r r r �make_setuptools_egg_info_argsl s r! )r r r �record_filename�rootr � header_dirr r r � pycompiler c C s� |r|rJ �|r|rJ �t | || dd�}|dd|g7 }|dg7 }|d urT|d|g7 }|d urh|d|g7 }|d ur||d|g7 }|r�|d d g7 }| r�|dg7 }n |dg7 }|r�|d |g7 }||7 }|S )NT)r r r �installz--recordz#--single-version-externally-managedz--rootr z--homer r z --compilez--no-compilez--install-headersr )r r r r"