Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
ó
øðuYc@s¾ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl	Z	ddl
mZddlm
Z
mZddlZejjdƒr×ddljjjjZnejejZy
eZWnek
r
dZnXeZddl m!Z!ddlm"Z"ddd	d
gZ#dd„Z$ej%dd„ƒZ&ej%d
„ƒZ'ej%d„ƒZ(ej%d„ƒZ)de*fd„ƒYZ+dd!d„ƒYZ,ej%d„ƒZ-d„Z.ej%d„ƒZ/ej%d„ƒZ0d„Z1d„Z2d„Z3dd"d„ƒYZ4e5edƒrNej6gZ7ngZ7de4fd„ƒYZ8ej9ej:gdj;ƒD]Z<e=ee<dƒ^qƒƒZ>d	e!fd „ƒYZ?dS(#iÿÿÿÿN(tsix(tbuiltinstmaptjava(tDistutilsError(tworking_settAbstractSandboxtDirectorySandboxtSandboxViolationt	run_setupcBs¿d}e||ƒ}|jƒ}WdQXejd dkscejd dkrŠejd d
krŠ|jddƒ}|jd	dƒ}n|dkrŸ|}ne||d
ƒ}|||UdS(s.
    Python 3 implementation of execfile.
    trbNiiiis
s
s
texec(ii(ii(ii(topentreadtsystversion_infotreplacetNonetcompile(tfilenametglobalstlocalstmodetstreamtscripttcode((s6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pyt	_execfile#s9	ccs>tj}|dk	r#|tj(nz	|VWd|tj(XdS(N(RtargvR(trepltsaved((s6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pyt	save_argv4s

	ccs%tj}z	|VWd|tj(XdS(N(Rtpath(R((s6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pyt	save_path?s
	ccsBtjj|dtƒtj}|t_z	dVWd|t_XdS(sL
    Monkey-patch tempfile.tempdir with replacement, ensuring it exists
    texist_okN(t
pkg_resourcest
py31compattmakedirstTruettempfilettempdir(treplacementR((s6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pyt
override_tempHs			ccs7tjƒ}tj|ƒz	|VWdtj|ƒXdS(N(tostgetcwdtchdir(ttargetR((s6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pytpushdYs

	tUnpickleableExceptioncBseZdZed„ƒZRS(sP
    An exception representing another Exception that could not be pickled.
    cCsay tj|ƒtj|ƒfSWn:tk
r\ddlm}|j||t|ƒƒƒSXdS(s‰
        Always return a dumped (pickled) type and exc. If exc can't be pickled,
        wrap it in UnpickleableException first.
        iÿÿÿÿ(R/N(tpickletdumpst	Exceptiontsetuptools.sandboxR/tdumptrepr(ttypetexctcls((s6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pyR4hs
 
(t__name__t
__module__t__doc__tstaticmethodR4(((s6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pyR/cstExceptionSavercBs)eZdZd„Zd„Zd„ZRS(s^
    A Context Manager that will save an exception, serialized, and restore it
    later.
    cCs|S(N((tself((s6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pyt	__enter__|scCs,|s
dStj||ƒ|_||_tS(N(R/R4t_savedt_tbR%(R>R6R7ttb((s6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pyt__exit__s
	cCsKdt|ƒkrdSttj|jƒ\}}tj|||jƒdS(s"restore and re-raise any exceptionR@N(tvarsRR0tloadsR@RtreraiseRA(R>R6R7((s6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pytresumeŠs(R9R:R;R?RCRG(((s6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pyR=vs		c#sgtjjƒ‰tƒ}ˆVWdQXtjjˆƒ‡fd†tjDƒ}t|ƒ|jƒdS(s 
    Context in which imported modules are saved.

    Translates exceptions internal to the context into the equivalent exception
    outside the context.
    Nc3s1|]'}|ˆkr|jdƒr|VqdS(s
encodings.N(t
startswith(t.0tmod_name(R(s6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pys	<genexpr>£s(RtmodulestcopyR=tupdatet_clear_modulesRG(t	saved_exctdel_modules((Rs6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pytsave_modules”s
cCs%xt|ƒD]}tj|=q
WdS(N(tlistRRK(tmodule_namesRJ((s6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pyRN­sccs*tjƒ}z	|VWdtj|ƒXdS(N(R"t__getstate__t__setstate__(R((s6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pytsave_pkg_resources_state²s	ccs•tjj|dƒ}tƒqtƒatƒtƒJtƒ:t|ƒ't	|ƒt
dƒdVWdQXWdQXWdQXWdQXWdQXWdQXdS(Nttempt
setuptools(R*RtjoinRVRQthide_setuptoolsR RR)R.t
__import__(t	setup_dirttemp_dir((s6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pyt
setup_context»s






cCs"tjdƒ}t|j|ƒƒS(sH
    >>> _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
    s1(setuptools|pkg_resources|distutils|Cython)(\.|$)(treRtbooltmatch(RJtpattern((s6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pyt
_needs_hidingÊscCs tttjƒ}t|ƒdS(s%
    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.
    N(tfilterRcRRKRN(RK((s6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pyRZßsc
Cstjjtjj|ƒƒ}t|ƒáyª|gt|ƒtj(tjjd|ƒt	j
ƒt	jjd„ƒt
|tƒrŠ|n|jtjƒƒ}t|ƒ'td|ddƒ}t||ƒWdQXWn/tk
r}|jr|jdr‚qnXWdQXdS(s8Run a distutils setup script, sandboxed in its directoryicSs
|jƒS(N(tactivate(tdist((s6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pyt<lambda>óst__file__R9t__main__N(R*RtabspathtdirnameR^RRRRtinsertRt__init__t	callbackstappendt
isinstancetstrtencodetgetfilesystemencodingRtdictRt
SystemExittargs(tsetup_scriptRvR\tdunder_filetnstv((s6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pyR	ês


cBsÙeZdZeZd„Zd„Zd„Zd„Zd„Z	d„Z
x<ddd	gD]+Zee
eƒrXe
eƒeƒe<qXqXWd)d
„Zer«edeƒZnedeƒZxld
ddddddddddddddddddgD]+Zee
eƒrúeeƒeƒe<qúqúWd„Zx9d d!gD]+Zee
eƒr?eeƒeƒe<q?q?Wd"„Zx9d#d$gD]+Zee
eƒr„eeƒeƒe<q„q„Wd%„Zd&„Zd'„Zd(„ZRS(*sDWrap 'os' module and 'open()' builtin for virtualizing setup scriptscCsEgttƒD]+}|jdƒr
t||ƒr
|^q
|_dS(Nt_(tdirt_osRHthasattrt_attrs(R>tname((s6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pyRm
scCs1x*|jD]}tt|t||ƒƒq
WdS(N(RtsetattrR*tgetattr(R>tsourceR€((s6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pyt_copyscCs;|j|ƒtr"|jt_n|jt_t|_dS(N(R„t_fileRtfilet_openRR%t_active(R>((s6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pyR?s

cCs5t|_trtt_ntt_|jtƒdS(N(	tFalseRˆR…RR†R‡RR„R}(R>texc_typet	exc_valuet	traceback((s6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pyRCs
		cCs||ƒSWdQXdS(sRun 'func' under os sandboxingN((R>tfunc((s6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pytrun"scs%ttˆƒ‰‡‡fd†}|S(Ncs@|jr-|jˆ||||Ž\}}nˆ||||ŽS(N(Rˆt_remap_pair(R>tsrctdstRvtkw(R€toriginal(s6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pytwrap*s	$(R‚R}(R€R”((R€R“s6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pyt_mk_dual_path_wrapper'strenametlinktsymlinkcs+ˆpttˆƒ‰‡‡fd†}|S(Ncs4|jr$|jˆ|||Ž}nˆ|||ŽS(N(Rˆt_remap_input(R>RRvR’(R€R“(s6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pyR”8s	(R‚R}(R€R“R”((R€R“s6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pyt_mk_single_path_wrapper5sR†RtstattlistdirR,tchmodtchowntmkdirtremovetunlinktrmdirtutimetlchowntchroottlstatt	startfiletmkfifotmknodtpathconftaccesscs%ttˆƒ‰‡‡fd†}|S(NcsM|jr=|jˆ|||Ž}|jˆˆ|||ŽƒSˆ|||ŽS(N(RˆR™t
_remap_output(R>RRvR’(R€R“(s6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pyR”Ms	(R‚R}(R€R”((R€R“s6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pyt_mk_single_with_returnJstreadlinkttempnamcs%ttˆƒ‰‡‡fd†}|S(Ncs,ˆ||Ž}|jr(|jˆ|ƒS|S(N(RˆR¬(R>RvR’tretval(R€R“(s6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pyR”\s	(R‚R}(R€R”((R€R“s6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pyt	_mk_queryYsR+ttmpnamcCs|S(s=Called to remap or validate any path, whether input or output((R>R((s6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pyt_validate_pathhscOs
|j|ƒS(sCalled for path inputs(R³(R>t	operationRRvR’((s6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pyR™lscCs
|j|ƒS(sCalled for path outputs(R³(R>R´R((s6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pyR¬pscOs6|j|d|||Ž|j|d|||ŽfS(s?Called for path pairs like rename, link, and symlink operationss-froms-to(R™(R>R´RR‘RvR’((s6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pyRtsN(R9R:R;R‰RˆRmR„R?RCRŽR•R€R~R}RRRšR…R‡R­R±R³R™R¬R(((s6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pyRsB						

					tdevnullcBs¼eZdZejddddddddd	d
ddd
g
ƒZdgZed„Zd„Z	e
rudd„Z
ndd„Zd„Zd„Z
d„Zd„Zd„Zdd„ZRS(s<Restrict operations to a single subdirectory - pseudo-chrootRRRžRŸR R¡R¢R£R¤R¥R¨R©R¯s.*lib2to3.*\.pickle$cCstjjtjj|ƒƒ|_tjj|jdƒ|_g|D]$}tjjtjj|ƒƒ^qC|_tj	|ƒdS(Nt(
R*Rtnormcasetrealpatht_sandboxRYt_prefixt_exceptionsRRm(R>tsandboxt
exceptionsR((s6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pyRms
!1cOs&ddlm}||||ƒ‚dS(Niÿÿÿÿ(R(R3R(R>R´RvR’R((s6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pyt
_violation™strcOsK|dkr8|j|ƒr8|jd||||Žnt||||ŽS(NR¿trtR
trUtUR†(R¿RÀsrbsrURÂ(t_okR¾R…(R>RRRvR’((s6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pyR…ŸscOsK|dkr8|j|ƒr8|jd||||Žnt||||ŽS(NR¿RÀR
RÁRÂR(R¿srtsrbsrURÂ(RÃR¾R‡(R>RRRvR’((s6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pyR‡¤scCs|jdƒdS(NR²(R¾(R>((s6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pyR²©scCss|j}zYt|_tjjtjj|ƒƒ}|j|ƒp`||jkp`|j|j	ƒSWd||_XdS(N(
RˆR‰R*RR·R¸t	_exemptedR¹RHRº(R>RtactiveR¸((s6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pyRìs		csN‡fd†|jDƒ}‡fd†|jDƒ}tj||ƒ}t|ƒS(Nc3s|]}ˆj|ƒVqdS(N(RH(RIt	exception(tfilepath(s6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pys	<genexpr>»sc3s!|]}tj|ˆƒVqdS(N(R_Ra(RIRb(RÇ(s6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pys	<genexpr>¿s(R»t_exception_patternst	itertoolstchaintany(R>RÇt
start_matchestpattern_matchest
candidates((RÇs6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pyRĹs

cOsH||jkrD|j|ƒrD|j|tjj|ƒ||Žn|S(sCalled for path inputs(t	write_opsRÃR¾R*RR¸(R>R´RRvR’((s6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pyR™Ås%cOsF|j|ƒs |j|ƒr<|j|||||Žn||fS(s?Called for path pairs like rename, link, and symlink operations(RÃR¾(R>R´RR‘RvR’((s6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pyRËs iÿcOsR|t@r9|j|ƒr9|jd|||||Žntj|||||ŽS(sCalled for low-level os.open()sos.open(tWRITE_FLAGSRÃR¾R}R(R>R†tflagsRRvR’((s6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pyRÑs(R9R:R;RttfromkeysRÏRÈt_EXCEPTIONSRmR¾R…R‡R²RÃRÄR™RR(((s6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pyR‚s 					
			s4O_WRONLY O_RDWR O_APPEND O_CREAT O_TRUNC O_TEMPORARYicBs,eZdZejdƒjƒZd„ZRS(sEA setup script attempted to modify the filesystem outside the sandboxs
        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\}}}|jjtƒS(N(RvttmpltformatR(R>tcmdRvtkwargs((s6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pyt__str__ís(R9R:R;ttextwraptdedenttlstripRÔRØ(((s6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pyRÞs
(((@R*RR&toperatort	functoolsRÉR_t
contextlibR0RÙtsetuptools.externRtsetuptools.extern.six.movesRRtpkg_resources.py31compatR"tplatformRHt$org.python.modules.posix.PosixModuletpythonRKtposixtPosixModuleR}R€R†R…t	NameErrorRRR‡tdistutils.errorsRRt__all__RtcontextmanagerRR R)R.R2R/R=RQRNRVR^RcRZR	RR~RµRÓRtreducetor_tsplittaR‚RÐR(((s6/tmp/pip-build-NDUwcL/setuptools/setuptools/sandbox.pyt<module>s^



	
					wV	+