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    
contego / home / tvault / .virtenv / lib / python2.7 / site.pyc
Size: Mime:
ó
ŠEYc@s0dZddlZddlZyddlZWnek
rMddlZnXyeWn!ek
ryddlm	ZnXej
ejgZdadadaeeddƒp¼eedƒd(kZeedƒZejd	 d
kZerüeeƒZnd„Zd„Zd
„Zd„Zd„Zd„Zdd„Zej
ejd„Z d„Z!d„Z"d„Z#d„Z$de%fd„ƒYZ&d„Z'de%fd„ƒYZ(d„Z)d„Z*d„Z+d„Z,d „Z-d!„Z.d"„Z/d#„Z0d$„Z1d%„Z2e2ƒd&„Z3e4d'kr,e3ƒndS()s‡
Append module search paths for third-party packages to sys.path.

****************************************************************
* This module is automatically imported during initialization. *
****************************************************************

In earlier versions of Python (up to 1.5a3), scripts or modules that
needed to use site-specific modules would place ``import site''
somewhere near the top of their code.  Because of the automatic
import, this is no longer necessary (but code that does it still
works).

This will append site-specific paths to the module search path.  On
Unix, it starts with sys.prefix and sys.exec_prefix (if different) and
appends lib/python<version>/site-packages as well as lib/site-python.
It also supports the Debian convention of
lib/python<version>/dist-packages.  On other platforms (mainly Mac and
Windows), it uses just sys.prefix (and sys.exec_prefix, if different,
but this is unlikely).  The resulting directories, if they exist, are
appended to sys.path, and also inspected for path configuration files.

FOR DEBIAN, this sys.path is augmented with directories in /usr/local.
Local addons go into /usr/local/lib/python<version>/site-packages
(resp. /usr/local/lib/site-python), Debian addons install into
/usr/{lib,share}/python<version>/dist-packages.

A path configuration file is a file whose name has the form
<package>.pth; its contents are additional directories (one per line)
to be added to sys.path.  Non-existing directories (or
non-directories) are never added to sys.path; no directory is added to
sys.path more than once.  Blank lines and lines beginning with
'#' are skipped. Lines starting with 'import' are executed.

For example, suppose sys.prefix and sys.exec_prefix are set to
/usr/local and there is a directory /usr/local/lib/python2.X/site-packages
with three subdirectories, foo, bar and spam, and two path
configuration files, foo.pth and bar.pth.  Assume foo.pth contains the
following:

  # foo package configuration
  foo
  bar
  bletch

and bar.pth contains:

  # bar package configuration
  bar

Then the following directories are added to sys.path, in this order:

  /usr/local/lib/python2.X/site-packages/bar
  /usr/local/lib/python2.X/site-packages/foo

Note that bletch is omitted because it doesn't exist; bar precedes foo
because bar.pth comes alphabetically before foo.pth; and spam is
omitted because it is not mentioned in either path configuration file.

After these path manipulations, an attempt is made to import a module
named sitecustomize, which can perform arbitrary additional
site-specific customizations.  If this import fails with an
ImportError exception, it is silently ignored.

iÿÿÿÿN(tSettmaxsizetmaxintii tpypy_version_infoitjavacGsetjj|Œ}tr=|dks3|jdƒr=||fStjj|ƒ}|tjj|ƒfS(Nt
__classpath__t__pyclasspath__(tostpathtjoint
_is_jythont
startswithtabspathtnormcase(tpathstdir((s-/home/tvault/.virtenv/lib64/python2.7/site.pytmakepath\s
cCs‚x{tjjƒD]j}tr,t|tƒst|dƒrAqnt|ddƒ}|dkreqnt	j
j|ƒ|_qWdS(s6Set all module' __file__ attribute to an absolute patht
__loader__t__file__N(
tsystmodulestvaluesR
t
isinstancet
ModuleTypethasattrtgetattrtNoneRRRR(tmtf((s-/home/tvault/.virtenv/lib64/python2.7/site.pytabs__file__dscCslg}tƒ}xLtjD]A}t|ƒ\}}||kr|j|ƒ|j|ƒqqW|tj(|S(sK Remove duplicate entries from sys.path along with making them
    absolute(tsetRRRtappendtadd(tLtknown_pathsRtdircase((s-/home/tvault/.virtenv/lib64/python2.7/site.pytremoveduppathsqs	

cCs~ddlm}d|ƒtjf}ttdƒrB|d7}ntjjtjjtjdƒ|ƒ}tjj	|ƒdS(sbAppend ./build/lib.<platform> in case we're running in the build dir
    (especially for Guido :-)iÿÿÿÿ(tget_platformsbuild/lib.%s-%.3stgettotalrefcounts-pydebugN(
tdistutils.utilR%RtversionRRRR	tdirnameR(R%ts((s-/home/tvault/.virtenv/lib64/python2.7/site.pytaddbuilddir…s
(cCsptƒ}x`tjD]U}y8tjj|ƒrPt|ƒ\}}|j|ƒnWqtk
rgqqXqW|S(sDReturn a set containing all existing directory entries from sys.path(RRRRtisdirRR t	TypeError(tdRR#((s-/home/tvault/.virtenv/lib64/python2.7/site.pyt_init_pathinfos	
c	Bs&|dkreƒd}nd}ejj||ƒ}ye|dƒ}Wnek
r^dSXz¦xŸ|D]—}|jdƒr„qin|jdƒr¡|dUqin|jƒ}e	||ƒ\}}||kriejj
|ƒriejj|ƒ|j
|ƒqiqiWWd|jƒX|r"d}n|S(soAdd a new path to known_paths by combining sitedir and 'name' or execute
    sitedir if it starts with 'import'iitrUNt#timport(RR/RRR	topentIOErrorRtrstripRtexistsRRR tclose(	tsitedirtnameR"tresettfullnameRtlineRR#((s-/home/tvault/.virtenv/lib64/python2.7/site.pyt
addpackage›s2	

	cCs×|dkrtƒ}d}nd}t|ƒ\}}||krUtjj|ƒnytj|ƒ}Wntjk
rdSX|j	ƒx7|D]/}|j
tjdƒr‘t|||ƒq‘q‘W|rÓd}n|S(sTAdd 'sitedir' argument to sys.path if missing and handle .pth files in
    'sitedir'iiNtpth(
RR/RRRRRtlistdirterrortsorttendswithtextsepR=(R8R"R:tsitedircasetnamesR9((s-/home/tvault/.virtenv/lib64/python2.7/site.pyt
addsitedirºs$		

	c
Cs
tjj|dƒ|g}||krF|jtjj|dƒƒnx½|D]µ}|rMtjdksntrŒtjj|ddƒg}nØtr­tjj|dƒg}n·tjdkr@||kr@|jdƒrtjjdtj	d	 dƒtjj|d
ddƒg}qdtjj|ddtj	d	 dƒg}n$tj
d
krFtjj|ddtj	d	 dƒtjj|ddƒtjj|dtj	d	 dƒg}tjj|ddtj	d	 dƒ}tjj|ƒrEtjj|ƒg|D]}tjj|ƒ^qûkrEt
r5|jd|ƒqE|j|ƒny.tj|jdtjj|ddƒƒWntk
r†nXtj	ddkrÊ|jtjj|ddtj	d	 dƒƒn-|jtjj|ddtj	ddƒƒ|jtjj|ddtj	d	 dƒƒ|jtjj|ddƒƒn|tjj|ddƒg}tjdkrÌd|krÌtjjdƒ}|rÉ|jtjj|ddtj	d	 dƒƒqÉqÌnx3|D](}	tjj|	ƒrÓt|	|ƒqÓqÓWqMqMWdS(s8Add site-packages (and possibly site-python) to sys.pathtlocaltos2emxtriscostLibs
site-packagestdarwins/System/Library/Frameworks/s/Library/PythonitExtrastlibtpythont/ssite-pythonslib-dynloadtlib64itdebugt2s
dist-packagess	local/libsdist-pythonsPython.frameworktHOMEtLibrarytPython(RHRIN(RRR	RRtplatformR
t_is_pypyRR(tsepR6trealpatht	_is_64bittinsertt
getobjectstAttributeErrortenvirontgetR,RFR(
R"t
sys_prefixtexec_prefixtprefixestprefixtsitedirst	lib64_dirtpthomeR8((s-/home/tvault/.virtenv/lib64/python2.7/site.pytaddsitepackagesÑsv
!&&7'



"

cCs¦ttdƒr(ttjdtƒr(tSttdƒrettdƒretjƒtjƒkredSnttdƒr¢ttdƒr¢tj	ƒtj
ƒkr¢dSntS(s,Check if user site directory is safe for inclusion

    The function tests for the command line flag (including environment var),
    process uid/gid equal to effective uid/gid.

    None: Disabled for security reasons
    False: Disabled by user (command line option)
    True: Safe and enabled
    tflagstno_user_sitetgetuidtgeteuidtgetgidtgetegidN(RRRRitFalseRRlRkRRnRmtTrue(((s-/home/tvault/.virtenv/lib64/python2.7/site.pytcheck_enableusersites
$c	Csftjjddƒ}d„}tjdkr”tjjdƒpBd}|rT|an||dƒatjjtdtj	dtj	dd	ƒa
nD|r£|an|dd
ƒatjjtddtj	d
 d	ƒa
trtjjt
ƒrt
t
|ƒntrbxYdD]N}tjjt|dtj	d
 dƒ}tjj|ƒr
t
||ƒq
q
Wn|S(s'Add a per user site-package to sys.path

    Each user has its own python directory with site-packages in the
    home directory.

    USER_BASE is the root directory for all Python versions

    USER_SITE is the user specific site-packages directory

    USER_SITE/.. can be used for data.
    tPYTHONUSERBASEcWstjjtjj|ŒƒS(N(RRt
expanduserR	(targs((s-/home/tvault/.virtenv/lib64/python2.7/site.pytjoinuserDstnttAPPDATAt~RUiis
site-packagess.localRMRNis	local/libs
dist-packagesN(slibs	local/lib(RR^R_RR9t	USER_BASERR	RR(t	USER_SITEtENABLE_USER_SITER,RF(R"tenv_baseRutbasetdist_libdirt	user_site((s-/home/tvault/.virtenv/lib64/python2.7/site.pytaddusersitepackages5s4
				
	cCsotjjtjddƒ}tjdjdƒ}|drK|j|ƒn
||d<dj|ƒtjd<dS(sEThe OS/2 EMX port has optional extension modules that do double duty
    as DLLs (and must use the .DLL file extension) for other extensions.
    The library search path needs to be amended so these will be found
    during module import.  Use BEGINLIBPATH so that these are at the start
    of the library search path.

    RJslib-dynloadtBEGINLIBPATHt;iÿÿÿÿN(RRR	RRcR^tsplitR(tdllpathtlibpath((s-/home/tvault/.virtenv/lib64/python2.7/site.pytsetBEGINLIBPATHjs

csttjdkrd‰ntjdkr0d‰nd‰dtf‡fd†ƒY}|dƒt_|d	ƒt_d
S(snDefine new built-ins 'quit' and 'exit'.
    These are simply strings that display a hint on how to exit.

    t:sCmd-Qs\sCtrl-Z plus ReturnsCtrl-D (i.e. EOF)tQuittercs,eZd„Z‡fd†Zdd„ZRS(cSs
||_dS(N(R9(tselfR9((s-/home/tvault/.virtenv/lib64/python2.7/site.pyt__init__ˆscsd|jˆfS(NsUse %s() or %s to exit(R9(R‰(teof(s-/home/tvault/.virtenv/lib64/python2.7/site.pyt__repr__ŠscSs+ytjjƒWnnXt|ƒ‚dS(N(RtstdinR7t
SystemExit(R‰tcode((s-/home/tvault/.virtenv/lib64/python2.7/site.pyt__call__Œs
N(t__name__t
__module__RŠRŒRR((R‹(s-/home/tvault/.virtenv/lib64/python2.7/site.pyRˆ‡s	tquittexitN(RRXtobjecttbuiltinsR“R”(Rˆ((R‹s-/home/tvault/.virtenv/lib64/python2.7/site.pytsetquit{s		
t_PrintercBs>eZdZdZddd„Zd„Zd„Zd„ZRS(sninteractive prompt objects for printing the license text, a list of
    contributors and the copyright notice.icCs1||_||_||_||_d|_dS(N(t_Printer__namet_Printer__datat_Printer__filest_Printer__dirsRt_Printer__lines(R‰R9tdatatfilestdirs((s-/home/tvault/.virtenv/lib64/python2.7/site.pyRŠžs
				cCsÒ|jr
dSd}x‚|jD]w}xd|jD]Y}tjj||ƒ}y*t|dƒ}|jƒ}|j	ƒPWq-t
k
r…q-Xq-W|rPqqW|sª|j}n|jdƒ|_t
|jƒ|_dS(NR0s
(RRRœR›RRR	R3treadR7R4RšRƒtlent_Printer__linecnt(R‰RžRtfilenametfp((s-/home/tvault/.virtenv/lib64/python2.7/site.pyt__setup¥s&	

cCsH|jƒt|jƒ|jkr2dj|jƒSd|jfdSdS(Ns
s!Type %s() to see the full %s texti(t_Printer__setupR¢RtMAXLINESR	R™(R‰((s-/home/tvault/.virtenv/lib64/python2.7/site.pyRŒºs
cCsá|jƒd}d}xÄy1x*t|||jƒD]}|j|GHq3WWntk
r^PqX||j7}d}xU|dkrÉyt|ƒ}Wntk
r°t|ƒ}nX|dkrud}ququW|dkrPqqdS(Ns0Hit Return for more, or q (and Return) to quit: ittq(R©Rª(	R§trangeR¨Rt
IndexErrorRt	raw_inputt	NameErrortinput(R‰tprompttlinenotitkey((s-/home/tvault/.virtenv/lib64/python2.7/site.pyRÁs(




(((R‘R’t__doc__R¨RŠR§RŒR(((s-/home/tvault/.virtenv/lib64/python2.7/site.pyR˜˜s		cCs¹tdtjƒt_tr0tddƒt_n-trKtddƒt_ntddƒt_tjj	tj
ƒ}tddtjdd	gtjj|tj
ƒ|tjgƒt_d
S(s,Set 'copyright' and 'credits' in __builtin__t	copyrighttcreditss?Jython is maintained by the Jython developers (www.jython.org).sDPyPy is maintained by the PyPy developers: http://codespeak.net/pypysž    Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands
    for supporting Python development.  See www.python.org for more information.tlicenses+See http://www.python.org/%.3s/license.htmlsLICENSE.txttLICENSEN(R˜RRµR–R
R¶RWRRR)RR(R	tpardirtcurdirR·(there((s-/home/tvault/.virtenv/lib64/python2.7/site.pytsetcopyrightØs 
	t_HelpercBs eZdZd„Zd„ZRS(sYDefine the built-in 'help'.
    This is a wrapper around pydoc.help (with a twist).

    cCsdS(NsHType help() for interactive help, or help(object) for help about object.((R‰((s-/home/tvault/.virtenv/lib64/python2.7/site.pyRŒôscOsddl}|j||ŽS(Niÿÿÿÿ(tpydocthelp(R‰RttkwdsR¾((s-/home/tvault/.virtenv/lib64/python2.7/site.pyR÷s(R‘R’R´RŒR(((s-/home/tvault/.virtenv/lib64/python2.7/site.pyR½îs	cCstƒt_dS(N(R½R–R¿(((s-/home/tvault/.virtenv/lib64/python2.7/site.pyt	sethelperûscCs¡tjdkrddl}ddl}|jƒd}|jdƒry|j|ƒWqštk
r–ddl}|j	|j
|<d|jj|<qšXqndS(s·On Windows, some default encodings are not provided by Python,
    while they are always available as "mbcs" in each locale. Make
    them usable by aliasing to "mbcs" in such a case.twin32iÿÿÿÿNitcptmbcs(RRVtlocaletcodecstgetdefaultlocaleRtlookuptLookupErrort	encodingst_unknownt_cachetaliases(RÅRÆtencRÊ((s-/home/tvault/.virtenv/lib64/python2.7/site.pyt	aliasmbcsþs
cCs&d}|dkr"tj|ƒndS(s–Set the string encoding used by the Unicode implementation.  The
    default is 'ascii', but if you're willing to experiment, you can
    change this.tasciiN(Rtsetdefaultencoding(tencoding((s-/home/tvault/.virtenv/lib64/python2.7/site.pytsetencoding
scCs(yddl}Wntk
r#nXdS(s,Run custom site specific code, if available.iÿÿÿÿN(t
sitecustomizetImportError(RÔ((s-/home/tvault/.virtenv/lib64/python2.7/site.pytexecsitecustomize!s
c
Csïttjjtjjtƒdƒƒ}|jƒjƒt_	|j
ƒd}g}tjddkrr|d7}ntr–tjjtj	dƒg}n}tr»tj
dkr¿dtj
d}n4tjdkrâd
tj
d }ndtj
d }tjjtj	dƒtjjtj	d
|ƒg}tjdkra|jdtjjtj	d
d|ƒƒn|}x¨|D]D}tjj|dtjƒ}tjj|ƒrp|j|ƒqpqpWnXtjdkrýtjjtj	dƒtjjtj	dƒg}ntjjtj	ddtjd ƒg}|}tjjtj	ddtjd ƒ}tjj|ƒrŽtr~|jd|ƒqŽ|j|ƒnyttdtƒj}Wntk
rÃtj}nXtjjtj	ddtjd d|ƒ}tjj|ƒr|j|ƒnxKt|ƒD]=}tjj|dƒ}	tjj|	ƒr |j|	ƒq q WtjdkrÛg|D](}
dD]}tjj|
|ƒ^qqw}x3|D](}tjj|ƒr¬|j|ƒq¬q¬Wntjj|ƒdS( Nsorig-prefix.txtiiR©iRJis%dis%d.%ds%d.%d.%dtlib_pypys
lib-pythoni	smodified-%ssplat-%sRÂtDLLsRMRNRPtimplementationslib-tkRKsplat-darwinsplat-macsplat-mac/lib-scriptpackages(ii(ii(ii	(splat-darwinsplat-macsplat-mac/lib-scriptpackages(R3RRR	R)RR¡tstripRtreal_prefixR7R
RWtversion_infoRR[RVR6RR(RZRt
_multiarchR]tlisttextend(
Rtposthardcoded_relative_dirsRtcpyverRt	plat_patht
lib64_pathtarchttk_dirtrelative_dirtmodulethardcoded_paths((s-/home/tvault/.virtenv/lib64/python2.7/site.pytvirtual_install_main_packages(sn'

3)&



(
cCsjttddƒ}xDttjƒD]3\}}||kr"|jtjƒr"|}q"q"W|dt_dS(s
    Force easy_installed eggs in the global environment to get placed
    in sys.path after all packages inside the virtualenv.  This
    maintains the "least surprise" result that packages in the
    virtualenv always mask global packages, never the other way
    around.

    t__egginsertiiN(RRt	enumerateRRRcRë(t	egginsertR²R((s-/home/tvault/.virtenv/lib64/python2.7/site.pyt+force_global_eggs_after_local_site_packagesss
	
cCstƒt|dtjƒS(NR`(RîRhRRÛ(R"((s-/home/tvault/.virtenv/lib64/python2.7/site.pytvirtual_addsitepackages‚scCsug}g}xItjD]>}|dks7|jdƒrG|j|ƒq|j|ƒqW|t_tjj|ƒdS(sƒAdjust the special classpath sys.path entries for Jython. These
    entries should follow the base virtualenv lib directories.
    RRN(RRRRRß(Rt
classpathsR((s-/home/tvault/.virtenv/lib64/python2.7/site.pytfixclasspath†s	cCs(yddl}Wntk
r#nXdS(s,Run custom user specific code, if available.iÿÿÿÿN(t
usercustomizeRÕ(Rò((s-/home/tvault/.virtenv/lib64/python2.7/site.pytexecusercustomize”s
cCsYtƒtƒtƒ}tjdkrXtjrXtjjtjdƒdkrXtƒnt	rht
ƒntjjtjjtjj
tƒdƒƒ}|s¥tantdkr½tƒant|ƒ}t|ƒ}|rêt|ƒ}ntjdkrtƒntƒtƒtƒtƒtƒtƒtr=tƒnttdƒrUt` ndS(NtposixiÿÿÿÿtModulessno-global-site-packages.txtRHRÑ(!RêRR$RR9RRtbasenameR+R
RñR6R	R)RRoR{RRqRhR€RïRVR†R—R¼RÁRÏRÓRÖRóRRÑ(tpaths_in_systGLOBAL_SITE_PACKAGES((s-/home/tvault/.virtenv/lib64/python2.7/site.pytmainœs:	

.	

cCsd}tjd}|sdGHxtjD]}d|fGHq(WdGHd„}dt|tƒfGHdt|tƒfGHd	tGHtjd
ƒng}d|kr±|jtƒnd|krÍ|jtƒn|rBtj	j
|ƒGHtrútjd
ƒq}ttkrtjdƒq}tdkr2tjd
ƒq}tjdƒn;ddl
}|j|tjd
tj	fƒGHtjdƒdS(Ns²    %s [--user-base] [--user-site]

    Without arguments print some useful information
    With arguments print the value of USER_BASE and/or USER_SITE separated
    by '%s'.

    Exit codes with --user-base or --user-site:
      0 - user site directory is enabled
      1 - user site directory is disabled by user
      2 - uses site directory is disabled by super user
          or for security reasons
     >2 - unknown error
    issys.path = [s    %r,t]cSstjj|ƒrdSdSdS(NR6s
doesn't exist(RRR,(R((s-/home/tvault/.virtenv/lib64/python2.7/site.pyR6ÖssUSER_BASE: %r (%s)sUSER_SITE: %r (%s)sENABLE_USER_SITE: %ris--user-bases--user-siteiiiÿÿÿÿi
(RtargvRRyRzR{R”RRtpathsepR	RoRttextwraptdedent(R¿RtRR6tbufferRý((s-/home/tvault/.virtenv/lib64/python2.7/site.pyt_scriptÁs:
		"t__main__I(5R´RRt__builtin__R–RÕRR®tsetsRRcRatPREFIXESRR{RzRyRRZRRWRVR
ttypeRRRR$R+R/R=RFRhRqR€R†R—R•R˜R¼R½RÁRÏRÓRÖRêRîRïRñRóRùRR‘(((s-/home/tvault/.virtenv/lib64/python2.7/site.pyt<module>@s`

'		
		
		L		5		@	
					K					#	4