3 ”ReÂã@sfddlZddlmZer,ddlmZmZmZdZddd„Zdd „Z d d „Z d d „Z dd„Z dd„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'))FcCsFtjg}|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_argss  rcCs(t||dd�}|dd|g7}||7}|S)NT)r r Ú bdist_wheelz-d)r)r r Ú build_optionsÚdestination_dirrrrrÚ make_setuptools_bdist_wheel_args2s rcCst||dd�}|ddg7}|S)NT)r r Úcleanz--all)r)r r rrrrÚmake_setuptools_clean_argsGs  rcCsh|o| st‚t|||d�}|ddg7}||7}|r@|d|g7}|dk 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_siterrrrÚmake_setuptools_develop_argsUs     rcCs*t||d�}|dg7}|r&|d|g7}|S)N)r Úegg_infoz --egg-base)r)r Ú egg_info_dirr rrrrÚmake_setuptools_egg_info_argsvs    r!c CsÆ|o| st‚|o| st‚t||| dd�} | dd|g7} | dg7} |dk rX| d|g7} |dk rl| d|g7} |dk r€| d|g7} |r�| d d g7} | r | d g7} n | d g7} |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)rr) r r rÚrecord_filenameÚrootrÚ header_dirrrr Ú pycompilerrrrÚmake_setuptools_install_argsˆs0        r')NFF)rÚpip._internal.utils.typingrÚtypingrrrrrrrrr!r'rrrrÚs    !