3
”Re ã @ sf d dl Z d dlmZ er,d dlmZmZmZ dZddd„Zdd „ Z d
d„ Z
dd
„ Zdd„ Zdd„ Z
dS )é N)ÚMYPY_CHECK_RUNNING)ÚListÚOptionalÚ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 sF t jg}|r|dg7 }|dtj| ƒ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)Ú
setup_py_pathÚglobal_optionsÚno_user_configÚunbuffered_outputÚargs© r ú“/builddir/build/BUILDROOT/alt-python36-pip-20.2.4-5.el8.x86_64/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/utils/setuptools_build.pyÚmake_setuptools_shim_args s
r c C s( t | |dd�}|dd|g7 }||7 }|S )NT)r r
Úbdist_wheelz-d)r )r
r Ú
build_optionsÚdestination_dirr r r r Ú make_setuptools_bdist_wheel_args2 s r c C s t | |dd�}|ddg7 }|S )NT)r r
Úcleanz--all)r )r
r r r r r Úmake_setuptools_clean_argsG s r c C sh |o| st ‚t| ||d�}|ddg7 }||7 }|r@|d|g7 }|d k rT|d|g7 }|rd|ddg7 }|S )N)r r Údevelopz --no-depsz--prefixz--homez--userz --prefix=)ÚAssertionErrorr )r
r Úinstall_optionsr ÚprefixÚhomeÚ
use_user_siter r r r Úmake_setuptools_develop_argsU s
r c C s* t | |d�}|dg7 }|r&|d|g7 }|S )N)r Úegg_infoz
--egg-base)r )r
Úegg_info_dirr r r r r Úmake_setuptools_egg_info_argsv s
r! c C sÆ |o| st ‚|o| st ‚t| || dd�}|dd|g7 }|dg7 }|d k rX|d|g7 }|d k rl|d|g7 }|d k r€|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--rootz--prefixz--homez--userz --prefix=z --compilez--no-compilez--install-headers)r r )r
r r Úrecord_filenameÚrootr Ú
header_dirr r r Ú pycompiler r r r Úmake_setuptools_install_argsˆ s0
r' )NFF)r Úpip._internal.utils.typingr Útypingr r r r r r r r r! r' r r r r Ú