7i UddlZddlZddlZddlZddlZddlZddlmZddlm Z ddl m Z e jdZ ejdZeed<defd Zd ed edefd Zdefd Z ej*Zej.eed<ej4ddefdZy#e$rej2ZY0wxYw)N)InstallationError)appdirs)running_under_virtualenvpippurelib site_packagesreturnc<djtjS)ze Return the major-minor version of the current Python as a string, e.g. "3.7" or "3.10". z{}.{})formatsys version_infoe/mnt/ssd/data/python-lab/ChefSystem/venv/lib/python3.12/site-packages/pip/_internal/locations/base.pyget_major_minor_versionrs 7>>3++ ,,rnew_rootpathnamectjdk(rbtjj|s tjj ||Stjj ||ddStjdk(rOtjj |\}}|ddk(r|dd}tjj ||St dtjd) aQReturn 'pathname' with 'new_root' prepended. If 'pathname' is relative, this is equivalent to os.path.join(new_root, pathname). Otherwise, it requires making 'pathname' relative and then joining the two, which is tricky on DOS/Windows and Mac OS. This is borrowed from Python's standard library's distutils module. posixNntr\zUnknown platform: z5 Can not change root path prefix on unknown platform.)osnamepathisabsjoin splitdriver)rrdrivers r change_rootr s ww'ww}}X&77<<(3 377<<(12,7 7 D**84  7d?8Dww||Hd++   *C C  rc`tr/tjjtj d}n3 tjjtj d}tjjS#t$rt jdY?wxYw)Nsrcz=The folder you are executing pip from can no longer be found.) rrrrr prefixgetcwdOSErrorexitabspath) src_prefixs rget_src_prefixr)7su!WW\\#**e4  Vbiik59J 77??: &&  V HHT U Vs2B B-,B- user_site)maxsizec>ttjdS)NPYTHONFRAMEWORK)bool sysconfigget_config_varrrris_osx_frameworkr1Os  (():; <rBs  6'C(''.(Y'' 2 s2-- #   8 ' ' '?d&>&>&@Ivs#@ T"=$=#= Is,#B,,C?C