^iYddlZddlmZmZmZdZ ddedeededed eef d Zdedeed eed ed eef d Z dedeed eefdZ dedeedeededeedeeded eefdZ dedeeded eefdZ dedeedeededeedeedeedeedededed eefdZ 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_outputreturnctjg}|r|dgz }|dt|gz }|r||z }|r|dgz }|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)rrrr argss /builddir/build/BUILDROOT/alt-python311-pip-21.3.1-4.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/pip/_internal/utils/setuptools_build.pymake_setuptools_shim_argsrsk N D T#**=99 ::D " !! K build_optionsdestination_dircDt||d}|dd|gz }||z }|S)NTrr bdist_wheelz-dr)rrrrrs r make_setuptools_bdist_wheel_argsr/sA %n   D ]D/ 22DMD Krc8t||d}|ddgz }|S)NTrcleanz--allr)rrrs rmake_setuptools_clean_argsrAs5 %n   D Wg D Krinstall_optionsprefixhome use_user_sitec|r|rJt|||}|ddgz }||z }|r|d|gz }||d|gz }|r|ddgz }|S)N)rrdevelopz --no-deps--prefixz --install-dir--user --prefix=r)rrrrrr r!rs rmake_setuptools_develop_argsr'Ls)&)) ) $%%   D  Y $$DOD % V$$  $''( ;'' Kr egg_info_dircFt||}|dgz }|r|d|gz }|S)N)regg_infoz --egg-baser)rr(rrs rmake_setuptools_egg_info_argsr+ls> %]> R R RDZLD- |,, Krrecord_filenameroot header_dir pycompilec |r|rJ|r|rJt||| d} | dd|gz } | dgz } || d|gz } || d|gz } || d|gz } |r| d d gz } | r| d gz } n| d gz } |r| d |gz } | |z } | S)NT)rrr installz--recordz#--single-version-externally-managedz--rootr$z--homer%r&z --compilez --no-compilez--install-headersr) rrrr,r-rr.r r!rr/rs rmake_setuptools_install_argsr2{s)&)) )'$'' ' $%%    D  Y O 44D 2 33D  4    V$$  4  ( ;''!     2 $j11OD Kr)NFF)r typingrrrrstrboolrrrr'r+r2rrr7sw ++++++++++,%) # SM   #Y 4SMC=   #Y $SM #YSMc]  SM  3-  #Y@  3-   #Y    ,,SM,c], , 3- , SM , , 3-,,,, #Y,,,,,,r