Files
wg-backend-django/acer-env/lib/python3.10/site-packages/setuptools/__pycache__/sandbox.cpython-310.pyc

132 lines
15 KiB
Plaintext
Raw Normal View History

2022-11-30 15:58:16 +07:00
o
<00>Ԅc 8<00>@s<>ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl
Z
ddl Z ddl m Z ddl mZej<0F>d<04>rRddlmmmmZnejejZzeZWn eygdZYnweZgd<05>Zd-dd<07>Zejd-dd <09><01>Z ejd
d <0B><00>Z!ejd d <0A><00>Z"ejdd<0F><00>Z#Gdd<11>de$<24>Z%Gdd<13>d<13>Z&ejdd<15><00>Z'dd<17>Z(ejdd<19><00>Z)ejdd<1B><00>Z*hd<1C>Z+dd<1E>Z,dd <20>Z-d!d"<22>Z.Gd#d$<24>d$<24>Z/e0ed%<25>r<>ej1gZ2ngZ2Gd&d'<27>d'e/<2F>Z3e<04>4ej5d(d)<29>d*<2A>6<EFBFBD>D<00><01>Z7Gd+d,<2C>d,e <0A>Z8dS).<2E>N)<01>DistutilsError)<01> working_set<65>java)<04>AbstractSandbox<6F>DirectorySandbox<6F>SandboxViolation<6F> run_setupcCs^d}t||<03><02> }|<04><01>}Wd<00>n1swY|dur!|}t||d<03>}t|||<02>dS)z.
Python 3 implementation of execfile.
<20>rbN<62>exec)<04>open<65>read<61>compiler
)<07>filename<6D>globals<6C>locals<6C>mode<64>stream<61>script<70>code<64>r<00>e/home/infidel/Sync/Project/ocp-wg-backend/acer-env/lib/python3.10/site-packages/setuptools/sandbox.py<70> _execfile$s 
<1C> rc
csR<00>tjdd<00>}|dur|tjdd<00><z |VW|tjdd<00><dS|tjdd<00><w<00>N)<02>sys<79>argv)<02>repl<70>savedrrr<00> save_argv1s<02>"rc
cs<<00>tjdd<00>}z |VW|tjdd<00><dS|tjdd<00><wr)r<00>path<74>rrrr<00> save_path<s
<02>"r ccs8<00>tj|dd<02>tj}|t_z dVW|t_dS|t_w)zL
Monkey-patch tempfile.tempdir with replacement, ensuring it exists
T)<01>exist_okN)<04>os<6F>makedirs<72>tempfile<6C>tempdir)<02> replacementrrrr<00> override_tempEs<02>r'c cs8<00>t<00><01>}t<00>|<00>z |VWt<00>|<01>dSt<00>|<01>wr)r"<00>getcwd<77>chdir)<02>targetrrrr<00>pushdVs <02>
r+c@seZdZdZedd<03><00>ZdS)<05>UnpickleableExceptionzP
An exception representing another Exception that could not be pickled.
c CsJz t<00>|<00>t<00>|<01>fWSty$ddlm}|<02>||t|<01><01><01>YSw)z<>
Always return a dumped (pickled) type and exc. If exc can't be pickled,
wrap it in UnpickleableException first.
r)r,)<07>pickle<6C>dumps<70> Exception<6F>setuptools.sandboxr,<00>dump<6D>repr)<03>type<70>exc<78>clsrrrr1es   <02>zUnpickleableException.dumpN)<06>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__doc__<5F> staticmethodr1rrrrr,`sr,c@s(eZdZdZdd<03>Zdd<05>Zdd<07>ZdS) <09>ExceptionSaverz^
A Context Manager that will save an exception, serialized, and restore it
later.
cCs|Srr<00><01>selfrrr<00> __enter__zszExceptionSaver.__enter__cCs |sdSt<00>||<02>|_||_dS<00>NT)r,r1<00>_saved<65>_tb)r=r3r4<00>tbrrr<00>__exit__}s
zExceptionSaver.__exit__cCs.dt|<00>vrdSttj|j<04>\}}|<02>|j<06><01>)z"restore and re-raise any exceptionr@N)<07>vars<72>mapr-<00>loadsr@<00>with_tracebackrA)r=r3r4rrr<00>resume<6D>s  zExceptionSaver.resumeN)r6r7r8r9r>rCrHrrrrr;ts
 r;c#sl<00>tj<01><02><00>t<03><00> }<00>VWd<00>n1swYtj<01><04><00><00>fdd<03>tjD<00>}t|<01>|<00><06>dS)z<>
Context in which imported modules are saved.
Translates exceptions internal to the context into the equivalent exception
outside the context.
Nc3s&<00>|]}|<01>vr|<01>d<00>s|VqdS)z
encodings.N<><01>
startswith)<02>.0<EFBFBD>mod_namerrr<00> <genexpr><3E>s<02><02><02>
<EFBFBD>zsave_modules.<locals>.<genexpr>)r<00>modules<65>copyr;<00>update<74>_clear_modulesrH)<02> saved_exc<78> del_modulesrrr<00> save_modules<65>s<02>
<1C> 
<06> rTcCst|<00>D]}tj|=qdSr)<03>listrrN)<02> module_namesrLrrrrQ<00>s 
<04>rQc cs.<00>t<00><01>}z |VWt<00>|<00>dSt<00>|<00>wr)<03> pkg_resources<65> __getstate__<5F> __setstate__rrrr<00>save_pkg_resources_state<74>s
<02>rZc cs"<00>tj<01>|d<01>}t<03><00>|t<04><00>`t<05><00>Mt<06>t<07><00>7t|<01><01>#t |<00><01>t
d<02>dVWd<00>n1s6wYWd<00>n1sEwYWd<00>n1sTwYWd<00>n1scwYWd<00>n1srwYWd<00>dSWd<00>dS1s<>wYdS)N<>temp<6D>
setuptools) r"r<00>joinrZrTr <00>hide_setuptoolsrr'r+<00>
__import__)<02> setup_dir<69>temp_dirrrr<00> setup_context<78>s.<02>

<1C><02><1C><02><1C><02><1C><02><1E><0E>"<22>rb><00>Cython<6F> distutilsr\rW<00>_distutils_hackcCs|<00>dd<02>d}|tvS)aH
>>> _needs_hiding('setuptools')
True
>>> _needs_hiding('pkg_resources')
True
>>> _needs_hiding('setuptools_plugin')
False
>>> _needs_hiding('setuptools.__init__')
True
>>> _needs_hiding('distutils')
True
>>> _needs_hiding('os')
False
>>> _needs_hiding('Cython')
True
<20>.<2E>r)<02>split<69>_MODULES_TO_HIDE)rL<00> base_modulerrr<00> _needs_hiding<6E>srkcCs6tj<01>dd<02>}|dur|<00><03>tttj<01>}t|<01>dS)a%
Remove references to setuptools' modules from sys.modules to allow the
invocation to import the most appropriate setuptools. This technique is
necessary to avoid issues such as #315 where setuptools upgrading itself
would fail to find a function declared in the metadata.
reN)rrN<00>get<65> remove_shim<69>filterrkrQ)rerNrrrr^<00>s
  r^c Cs
tj<01>tj<01>|<00><01>}t|<02><01>mz@|gt|<01>tjdd<01><tj<01>d|<02>t <09>
<EFBFBD>t j <0B> dd<04><00>t |<02><01>t|dd<06>}t||<03>Wd<00>n1sIwYWntyj}z|jr`|jdr`<60>WYd}~n d}~wwWd<00>dSWd<00>dS1s~wYdS)z8Run a distutils setup script, sandboxed in its directoryNrcSs|<00><00>Sr)<01>activate)<01>distrrr<00><lambda><3E>szrun_setup.<locals>.<lambda><3E>__main__)<02>__file__r6)r"r<00>abspath<74>dirnamerbrUrr<00>insertr<00>__init__<5F> callbacks<6B>appendr<00>dictr<00>
SystemExit<EFBFBD>args)<05> setup_scriptr|r`<00>ns<6E>vrrrr<00>s*

  <1C><04><14><02><02><0E><02>"rc@seZdZdZdZdd<04>Zdd<06>Zdd<08>Zd d
<EFBFBD>Zd d <0C>Z d d<0E>Z
dD]Z e e e <0B>r0e
e <0B>e<0E>e <q"d$dd<12>Zer=ede<10>Zede<11>ZdD]Z e e e <0B>rRee <0B>e<0E>e <qDdd<17>ZdD]Z e e e <0B>rgee <0B>e<0E>e <qYdd<1A>ZdD]Z e e e <0B>r|ee <0B>e<0E>e <qndd<1D>Zdd<1F>Zd d!<21>Zd"d#<23>ZdS)%rzDWrap 'os' module and 'open()' builtin for virtualizing setup scriptsFcs<00>fdd<02>tt<01>D<00><01>_dS)Ncs$g|]}|<01>d<00>st<01>|<01>r|<01>qS)<01>_)rJ<00>hasattr)rK<00>namer<rr<00>
<listcomp>s<02><02><06>z,AbstractSandbox.__init__.<locals>.<listcomp>)<03>dir<69>_os<6F>_attrsr<rr<rrws
 <0C>zAbstractSandbox.__init__cCs"|jD] }tt|t||<02><02>qdSr)r<><00>setattrr"<00>getattr)r=<00>sourcer<65>rrr<00>_copys
<04>zAbstractSandbox._copycCs(|<00>|<00>tr |jt_|jt_d|_dSr?)r<><00>_file<6C>builtins<6E>file<6C>_openr <00>_activer<rrrr>s

zAbstractSandbox.__enter__cCs$d|_trtt_tt_|<00>t<07>dS<00>NF)r<>r<>r<>r<>r<>r r<>r<>)r=<00>exc_type<70> exc_value<75> tracebackrrrrC!s
zAbstractSandbox.__exit__cCs.|<00> |<01>Wd<00>S1swYdS)zRun 'func' under os sandboxingNr)r=<00>funcrrr<00>run(s$<24>zAbstractSandbox.runc<00>tt<01><00><02><01><00>fdd<02>}|S)Ncs>|jr|j<01>||g|<03>Ri|<04><01>\}}<02>||g|<03>Ri|<04><01>Sr)r<><00> _remap_pair)r=<00>src<72>dstr|<00>kw<6B>r<><00>originalrr<00>wrap0s z3AbstractSandbox._mk_dual_path_wrapper.<locals>.wrap<61>r<>r<><00>r<>r<>rr<>r<00>_mk_dual_path_wrapper-s
z%AbstractSandbox._mk_dual_path_wrapper)<03>rename<6D>link<6E>symlinkNcs <00>ptt<01><00><02><01><00>fdd<02>}|S)Ncs6|jr|j<01>|g|<02>Ri|<03><01>}<01>|g|<02>Ri|<03><01>Sr)r<><00> _remap_input<75>r=rr|r<>r<>rrr<>>sz5AbstractSandbox._mk_single_path_wrapper.<locals>.wrapr<70>)r<>r<>r<>rr<>r<00>_mk_single_path_wrapper;sz'AbstractSandbox._mk_single_path_wrapperr<72>r )<13>stat<61>listdirr)r <00>chmod<6F>chown<77>mkdir<69>remove<76>unlink<6E>rmdir<69>utime<6D>lchown<77>chroot<6F>lstat<61> startfile<6C>mkfifo<66>mknod<6F>pathconf<6E>accesscr<>)NcsT|jr|j<01>|g|<02>Ri|<03><01>}|<00><02><00>|g|<02>Ri|<03><01><01>S<00>|g|<02>Ri|<03><01>Sr)r<>r<><00> _remap_outputr<74>r<>rrr<>csz4AbstractSandbox._mk_single_with_return.<locals>.wrapr<70>r<>rr<>r<00>_mk_single_with_return`<00>
z&AbstractSandbox._mk_single_with_return)<02>readlink<6E>tempnamcr<>)Ncs$<00>|i|<02><01>}|jr|<00><01>|<03>S|Sr)r<>r<>)r=r|r<><00>retvalr<6C>rrr<>rs z'AbstractSandbox._mk_query.<locals>.wrapr<70>r<>rr<>r<00> _mk_queryor<>zAbstractSandbox._mk_query)r(<00>tmpnamcCs|S)z=Called to remap or validate any path, whether input or outputr)r=rrrr<00>_validate_path~szAbstractSandbox._validate_pathcO<00>
|<00>|<02>S<00>zCalled for path inputs<74>r<><00>r=<00> operationrr|r<>rrrr<><00><00>
zAbstractSandbox._remap_inputcCr<>)zCalled for path outputsr<73>)r=r<>rrrrr<><00>r<>zAbstractSandbox._remap_outputcOs<|j|d|g|<04>Ri|<05><01>|j|d|g|<04>Ri|<05><01>fS)<03>?Called for path pairs like rename, link, and symlink operationsz-fromz-to)r<><00>r=r<>r<>r<>r|r<>rrrr<><00>s<04>zAbstractSandbox._remap_pairr)r6r7r8r9r<>rwr<>r>rCr<>r<>r<>r<>r<>rr<>r<>r<>r<>r<>r<>r<>r<>r<>rrrrr
sF
<02>



<02>
<02>
<02> r<00>devnullc@s<>eZdZdZe<04>gd<02><01>ZgZ efdd<04>Z dd<06>Z
e r!ddd <09>Z dd
d <0B>Z d d <0A>Z dd<0F>Zdd<11>Zdd<13>Zdd<15>Zddd<18>ZdS)rz<Restrict operations to a single subdirectory - pseudo-chroot) r r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>cCsFtj<01>tj<01>|<01><01>|_tj<01>|jd<01>|_dd<03>|D<00>|_t<08> |<00>dS)N<>cSs g|] }tj<01>tj<01>|<01><01><01>qSr)r"r<00>normcase<73>realpath)rKrrrrr<><00>s<06>z-DirectorySandbox.__init__.<locals>.<listcomp>)
r"rr<>r<><00>_sandboxr]<00>_prefix<69> _exceptionsrrw)r=<00>sandbox<6F>
exceptionsrrrrw<00>s <08>zDirectorySandbox.__init__cOsddlm}||||<03><03>)Nr)r)r0r)r=r<>r|r<>rrrr<00>
_violation<EFBFBD>s  zDirectorySandbox._violation<6F>rcO<00>F|dvr|<00>|<01>s|jd||g|<03>Ri|<04><01>t||g|<03>Ri|<04><01>S)N<>r<><00>rtr <00>rU<72>Ur<55>)<03>_okr<6B>r<><00>r=rrr|r<>rrrr<><00><00>zDirectorySandbox._filecOr<>)Nr<4E>r )r<>r<>r<>r<>rrrr<><00>r<>zDirectorySandbox._opencCs|<00>d<01>dS)Nr<4E>)r<>r<rrrr<><00>szDirectorySandbox.tmpnamcCsR|j}z!d|_tj<02>tj<02>|<01><01>}|<00>|<03>p ||jkp |<03>|j<08>W||_S||_wr<>) r<>r"rr<>r<><00> _exemptedr<64>rJr<>)r=r<00>activer<65>rrrr<><00>s
<02>
<02>zDirectorySandbox._okcs<<00>fdd<02>|jD<00>}<02>fdd<02>|jD<00>}t<02>||<03>}t|<04>S)Nc3s<00>|]}<01><00>|<01>VqdSrrI)rK<00> exception<6F><01>filepathrrrM<00>s<02>

<EFBFBD>z-DirectorySandbox._exempted.<locals>.<genexpr>c3s<00>|] }t<00>|<01><00>VqdSr)<02>re<72>match)rK<00>patternr<6E>rrrM<00>s<02> 
<EFBFBD>)r<><00>_exception_patterns<6E> itertools<6C>chain<69>any)r=r<><00> start_matches<65>pattern_matches<65>
candidatesrr<>rr<><00>s
<06>
<06> zDirectorySandbox._exemptedcOs:||jvr|<00>|<02>s|j|tj<04>|<02>g|<03>Ri|<04><01>|Sr<>)<06> write_opsr<73>r<>r"rr<>r<>rrrr<><00>s"zDirectorySandbox._remap_inputcOs8|<00>|<02>r
|<00>|<03>s|j|||g|<04>Ri|<05><01>||fS)r<>)r<>r<>r<>rrrr<><00>szDirectorySandbox._remap_pair<69><72>cOsL|t@r|<00>|<01>s|jd|||g|<04>Ri|<05><01>tj|||g|<04>Ri|<05><01>S)zCalled for low-level os.open()zos.open)<05> WRITE_FLAGSr<53>r<>r<>r )r=r<><00>flagsrr|r<>rrrr <00>szDirectorySandbox.openN)r<>)r<>)r6r7r8r9rz<00>fromkeysr<73>r<><00> _EXCEPTIONSrwr<>r<>r<>r<>r<>r<>r<>r<>r rrrrr<00>s$<04> 

 
rcCsg|]}tt|d<00><03>qS)rr<>)rK<00>arrrr<><00>s
<EFBFBD><06>r<EFBFBD>z4O_WRONLY O_RDWR O_APPEND O_CREAT O_TRUNC O_TEMPORARYc@s&eZdZdZe<04>d<02><01><06>Zdd<04>ZdS)rzEA setup script attempted to modify the filesystem outside the sandboxa
SandboxViolation: {cmd}{args!r} {kwargs}
The package setup script has attempted to modify files on your system
that are not within the EasyInstall build area, and has been aborted.
This package cannot be safely installed by EasyInstall, and may not
support alternate installation locations even if you run its setup
script by hand. Please inform the package's author and the EasyInstall
maintainers to find out if a fix or workaround is available.
cCs |j\}}}|jjdit<03><00><01>S)Nr)r|<00>tmpl<70>formatr)r=<00>cmdr|<00>kwargsrrr<00>__str__s zSandboxViolation.__str__N) r6r7r8r9<00>textwrap<61>dedent<6E>lstripr<70>r<>rrrrr<00>s<02> <02> rr)9r"rr$<00>operator<6F> functoolsr<73>r<><00>
contextlibr-r<>r<>rW<00>distutils.errorsrr<00>platformrJ<00>$org.python.modules.posix.PosixModule<6C>pythonrN<00>posix<69> PosixModuler<65>r<>r<>r<><00> NameErrorr r<><00>__all__r<00>contextmanagerrr r'r+r/r,r;rTrQrZrbrirkr^rrr<>r<>r<>r<00>reduce<63>or_rhr<>rrrrr<00><module>sv      <02>
 


 


 
^<04><04>