Re@sddlZddlmZer>ddlmZmZmZdZdddddZdd Z d d Z d d Z ddZ ddZ dS)N)MYPY_CHECK_RUNNING)ListOptionalSequencezimport 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'))FcCs_tjg}|r|dg7}|dtj|g7}|rH||7}|r[|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_SHIMformat) setup_py_pathglobal_optionsno_user_configunbuffered_outputargsr/builddir/build/BUILDROOT/alt-python35-pip-20.2.4-5.el8.x86_64/opt/alt/python35/lib/python3.5/site-packages/pip/_internal/utils/setuptools_build.pymake_setuptools_shim_argss    rcCs9t|d|dd}|dd|g7}||7}|S)Nr r T bdist_wheelz-d)r)r r build_optionsdestination_dirrrrr make_setuptools_bdist_wheel_args2s   rcCs,t|d|dd}|ddg7}|S)Nr r Tcleanz--all)r)r r rrrrmake_setuptools_clean_argsGs  rcCs|o | stt|d|d|}|ddg7}||7}|r[|d|g7}|dk rw|d|g7}|r|ddg7}|S) Nr r developz --no-depsz--prefixz--homez--userz --prefix=)AssertionErrorr)r r install_optionsr prefixhome use_user_siterrrrmake_setuptools_develop_argsUs    rcCs9t|d|}|dg7}|r5|d|g7}|S)Nr egg_infoz --egg-base)r)r egg_info_dirr rrrrmake_setuptools_egg_info_argsvs  r!c Cs|o | st|o| s&tt|d|d| dd} | dd|g7} | dg7} |dk r| d|g7} |dk r| d |g7} |dk r| d |g7} |r| d d g7} | r| d g7} n | dg7} |r| d|g7} | |7} | S)Nr r r Tinstallz--recordz#--single-version-externally-managedz--rootz--prefixz--homez--userz --prefix=z --compilez --no-compilez--install-headers)rr) r r rrecord_filenamerootr header_dirrrr pycompilerrrrmake_setuptools_install_argss0       r')rpip._internal.utils.typingrtypingrrrrrrrrr!r'rrrrs      !