o aiY @ sP d dl Z d dlmZmZmZ dZ d!dedee deded ee f d dZdedee dee d ed ee f ddZ dedee d ee fddZ dedee dee dedee dee ded ee fddZdedee ded ee fddZdedee dee dedee dee dee dee dededed ee fdd Z dS )" N)ListOptionalSequencea' 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_pathglobal_optionsno_user_configunbuffered_outputreturnc C sF t jg}|r|dg7 }|dt| g7 }|r||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)r r r r args r /builddir/build/BUILDROOT/alt-python310-pip-21.3.1-5.el8.x86_64/opt/alt/python310/lib/python3.10/site-packages/pip/_internal/utils/setuptools_build.pymake_setuptools_shim_args s r build_optionsdestination_dirc C s( t | |dd}|dd|g7 }||7 }|S )NTr r bdist_wheelz-dr )r r r r r r r r make_setuptools_bdist_wheel_args/ s r c C s t | |dd}|ddg7 }|S )NTr cleanz--allr )r r r r r r make_setuptools_clean_argsA s r install_optionsprefixhome use_user_sitec C sf |r|rJ t | ||d}|ddg7 }||7 }|r|d|g7 }|d ur)|d|g7 }|r1|ddg7 }|S )N)r r developz --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" egg_info_dirc C s* t | |d}|dg7 }|r|d|g7 }|S )N)r egg_infoz --egg-baser )r r# r r r r r make_setuptools_egg_info_argsl s r% record_filenameroot header_dir pycompilec C s |r|rJ |r|rJ t | || dd}|dd|g7 }|dg7 }|d ur*|d|g7 }|d ur4|d|g7 }|d ur>|d|g7 }|rF|d d g7 }| rN|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&