ó ïRec@sdZddlZddlZddlZddlZddlmZddlmZddl m Z ddl m Z m Z mZddlmZddlmZdd lmZdd lmZmZdd lmZer/dd lmZdd lmZmZm Z m!Z!m"Z"m#Z#ddl$m%Z%nej&e'ƒZ(ddd„ƒYZ)de*fd„ƒYZ+de+fd„ƒYZ,dS(s;Build Environment used for isolation during sdist building iÿÿÿÿN(t OrderedDict(tget_python_lib(t get_paths(t RequirementtVersionConflictt WorkingSet(t__file__(t open_spinner(tcall_subprocess(t TempDirectoryt tempdir_kinds(tMYPY_CHECK_RUNNING(t TracebackType(tTupletSettIterabletOptionaltListtType(t PackageFindert_PrefixcBseZd„ZRS(cCs¦||_t|_ttjdkr*dnddi|d6|d6ƒd|_tdtd|ƒ}tdtd|ƒ}||kr“|g|_ n||g|_ dS( Ntntt posix_prefixtvarstbasetplatbasetscriptst plat_specifictprefix( tpathtFalsetsetupRtostnametbin_dirRtTruetlib_dirs(tselfRtpurelibtplatlib((s†/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/build_env.pyt__init__s    (t__name__t __module__R((((s†/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/build_env.pyRstBuildEnvironmentcBs;eZdZd„Zd„Zd„Zd„Zd„ZRS(sFCreates and manages an isolated environment to install build deps c sYtdtjdtƒ‰t‡fd†dDƒƒ|_g|_g|_xItt |jj ƒƒƒD],}|jj |j ƒ|jj |jƒqeWd„tdtƒtdtƒfDƒ}tjjˆjdƒ|_tjj|jƒstj|jƒnttjj|jd ƒd ƒ2}|jtjd ƒjd |d |jƒƒWdQXdS(Ntkindtglobally_managedc3s3|])}|ttjjˆj|ƒƒfVqdS(N(RR Rtjoin(t.0R!(ttemp_dir(s†/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/build_env.pys ;stnormaltoverlaycSs"h|]}tjj|ƒ’qS((R Rtnormcase(R/tsite((s†/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/build_env.pys Is RR4ssitecustomize.pytwsŸ import os, site, sys # First, drop system-sites related paths. original_sys_path = sys.path[:] known_paths = set() for path in {system_sites!r}: site.addsitedir(path, known_paths=known_paths) system_paths = set( os.path.normcase(path) for path in sys.path[len(original_sys_path):] ) original_sys_path = [ path for path in original_sys_path if os.path.normcase(path) not in system_paths ] sys.path = original_sys_path # Second, add lib directories. # ensuring .pth file are processed. for path in {lib_dirs!r}: assert not path in sys.path site.addsitedir(path) t system_sitesR$(R1R2(R R t BUILD_ENVR#Rt _prefixest _bin_dirst _lib_dirstreversedtlisttvaluestappendR"textendR$RRR RR.t _site_dirtexiststmkdirtopentwritettextwraptdedenttformat(R%RR6tfp((R0s†/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/build_env.pyR(4s(   " $  cCs™d„dDƒ|_|j}|jd}|rL|j|jtjƒƒn|jg}tjjitjj |ƒd6dd6tjj |ƒd6ƒdS(NcSs(i|]}tjj|dƒ|“qS(N(R tenvirontgettNone(R/R!((s†/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/build_env.pys ps tPATHtPYTHONNOUSERSITEt PYTHONPATHt1(RLRMRN( t _save_envR9R?tsplitR tpathsepR@RItupdateR.(R%Rtold_patht pythonpath((s†/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/build_env.pyt __enter__ms     cCsSxL|jjƒD];\}}|dkr>tjj|dƒq|tj|tgetattrtformat_controlR?treplaceR.tsortedt index_urlst find_linkst trusted_hoststallow_all_prereleasest prefer_binaryRR(R%tfindert requirementstprefix_as_stringtmessageRRdR~tformatsRt extra_indextlinkthostRs((s†/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/build_env.pytinstall_requirements¡s@    &      (R)R*t__doc__R(RVR^RlRŽ(((s†/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/build_env.pyR+0s  9  tNoOpBuildEnvironmentcBs;eZdZd„Zd„Zd„Zd„Zd„ZRS(s5A no-op drop-in replacement for BuildEnvironment cCsdS(N((R%((s†/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/build_env.pyR(ÔscCsdS(N((R%((s†/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/build_env.pyRVØscCsdS(N((R%RYRZR[((s†/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/build_env.pyR^ÜscCsdS(N((R%((s†/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/build_env.pytcleanupåscCs tƒ‚dS(N(tNotImplementedError(R%R†R‡RˆR‰((s†/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/build_env.pyRŽés(R)R*RR(RVR^R‘RŽ(((s†/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/build_env.pyRÐs    ((-RR{R RuREt collectionsRtdistutils.sysconfigRt sysconfigRtpip._vendor.pkg_resourcesRRRtpipRRxtpip._internal.cli.spinnersRtpip._internal.utils.subprocessRtpip._internal.utils.temp_dirR R tpip._internal.utils.typingR ttypesR ttypingR RRRRRt"pip._internal.index.package_finderRt getLoggerR)RyRtobjectR+R(((s†/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/build_env.pyts*    .