7fSddlZddlZddlmZmZmZejdZ dde deee de de d ee f d Z de dee d ee d e d ee f d Z de dee d ee fdZ de dee de dee dee de d ee fdZde dee de d ee fdZdS)N)ListOptionalSequenceah exec(compile(''' # This is -- a caller that pip uses to run setup.py # # - It imports setuptools before invoking setup.py, to enable projects that directly # import from `distutils.core` to work with newer packaging standards. # - It provides a clear error message when setuptools is not installed. # - It sets `sys.argv[0]` to the underlying `setup.py`, when invoking `setup.py` so # setuptools doesn't think the script is `-c`. This avoids the following warning: # manifest_maker: standard file '-c' not found". # - It generates a shim setup.py, for handling setup.cfg-only projects. import os, sys, tokenize try: import setuptools except ImportError as error: print( "ERROR: Can not execute `setup.py` since setuptools is not available in " "the build environment.", file=sys.stderr, ) sys.exit(1) __file__ = %r sys.argv[0] = __file__ if os.path.exists(__file__): filename = __file__ with tokenize.open(__file__) as f: setup_py_code = f.read() else: filename = "" setup_py_code = "from setuptools import setup; setup()" exec(compile(setup_py_code, filename, "exec")) ''' % ({!r},), "", "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/BUILD/imunify360-venv-2.3.5/opt/imunify360/venv/lib/python3.11/site-packages/pip/_internal/utils/setuptools_build.pymake_setuptools_shim_argsr1sk N D T#**=99 ::D " !! K build_optionsdestination_dircDt||d}|dd|gz }||z }|S)NTrr bdist_wheelz-dr)rrrrrs r make_setuptools_bdist_wheel_argsrKsA %n   D ]D/ 22DMD Krc8t||d}|ddgz }|S)NTrcleanz--allr)rrrs rmake_setuptools_clean_argsr]s5 %n   D Wg D Krprefixhome use_user_sitecz|r|rJt|||}|ddgz }|r|d|gz }||d|gz }|r|ddgz }|S)N)rrdevelopz --no-depsz--prefixz --install-dirz--userz --prefix=r)rrrrrr rs rmake_setuptools_develop_argsr#hs)&)) ) $%%   D  Y $$D % V$$  $''( ;'' Kr egg_info_dircFt||}|dgz }|r|d|gz }|S)N)regg_infoz --egg-baser)rr$rrs rmake_setuptools_egg_info_argsr's> %]> R R RDZLD- |,, Kr)NFF)r textwraptypingrrrdedentrstriprstrboolrrrr#r'rrr/s ++++++++++ #8?$&&L &((MV/3 # Xc]+   #Y 4SMC=   #Y $SM #YSM  SM  3-  #Y<  3-   #Y      r