2bi SSKrSSKrSSKrSSKrSSKrSSKJrJr \R"\ 5r \R"S5r S\ 4SjrS\ 4SjrS\ 4SjrS\\\4SjrS\ 4S jrS\ 4S jrS\ 4S jrg) N)ListOptionalz8include-system-site-packages\s*=\s*(?Ptrue|false)returncb[R[[S[R5:g$)zfChecks if sys.base_prefix and sys.prefix match. This handles PEP 405 compliant virtual environments. base_prefix)sysprefixgetattrڐ/builddir/build/BUILDROOT/alt-python313-pip-23.3.1-3.el8.x86_64/opt/alt/python313/lib/python3.13/site-packages/pip/_internal/utils/virtualenv.py_running_under_venvrs ::mSZZ@ @@r c"[[S5$)zeChecks if sys.real_prefix is set. This handles virtual environments created with pypa's virtualenv. real_prefix)hasattrrr r r _running_under_legacy_virtualenvrs 3 &&r c8[5=(d [5$)zDTrue if we're running inside a virtual environment, False otherwise.)rrr r r running_under_virtualenvrs  F$D$FFr c[RR[RS5n[ USS9nUR 5R5sSSS5 $!,(df  g=f![a gf=f)z}Reads {sys.prefix}/pyvenv.cfg and returns its contents as list of lines Returns None, if it could not read/access the file. z pyvenv.cfgzutf-8)encodingN) ospathjoinrr openread splitlinesOSError)pyvenv_cfg_filefs r _get_pyvenv_cfg_linesr $s^ ggll3::|>6 77r ch[5(a [5$[5(a [5$g)zHReturns a boolean, whether running in venv with no system site-packages.F)rr+rr4r r r virtualenv_no_globalr6^s+$&&'))133 r )loggingrrer/rtypingrr getLogger__name__r$compiler&boolrrrstrr r+r4r6r r r r?s !   8 $&(jj?'# ATA'$'G$G xS 2 t: 8D 8 d r