403Webshell
Server IP : 61.19.30.66  /  Your IP : 216.73.216.15
Web Server : Apache/2.2.22 (Ubuntu)
System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64
User : www-data ( 33)
PHP Version : 5.3.10-1ubuntu3.48
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python2.7/dist-packages/twisted/python/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.7/dist-packages/twisted/python/dist.pyc
ó
'؀Nc	@sŲdZddlmZmZmZmZddlmZddlm	Z	ddl
mZddlZddl
Z
ddlZddlZddd	d
ddd
ddg	Zdefd„ƒYZd„Zd„Zdd„ZdddddddgZdddd d!gZd"„Zd#„Zddd$„Zddddd%„Zd&d'„Zd(ejfd)„ƒYZd*ejfd+„ƒYZd,ejfd-„ƒYZd.ejfd/„ƒYZ eed0„Z!e!ƒZ"d1„Z#dS(2sm
Distutils convenience functionality.

Don't use this outside of Twisted.

Maintainer: Christopher Armstrong
i’’’’(t
build_scriptstinstall_datat	build_exttbuild_py(tCompileError(tcore(t	ExtensionNtconchtloretmailtnamestnewstpairtrunnertwebtwordstConditionalExtensioncBseZdZd„ZRS(sj
    An extension module that will only be compiled if certain conditions are
    met.

    @param condition: A callable of one argument which returns True or False to
        indicate whether the extension should be built. The argument is an
        instance of L{build_ext_twisted}, which has useful methods for checking
        things about the platform.
    cOs/|jdd„ƒ|_tj|||ŽdS(Nt	conditioncSstS(N(tTrue(tbuilder((s7/usr/lib/python2.7/dist-packages/twisted/python/dist.pyt<lambda>$s(tpopRRt__init__(tselftargstkwargs((s7/usr/lib/python2.7/dist-packages/twisted/python/dist.pyR#s(t__name__t
__module__t__doc__R(((s7/usr/lib/python2.7/dist-packages/twisted/python/dist.pyRs	cKstjt|S(s^
    An alternative to distutils' setup() which is specially designed
    for Twisted subprojects.

    Pass twisted_subproject=projname if you want package and data
    files to automatically be found for you.

    @param conditionalExtensions: Extensions to optionally build.
    @type conditionalExtensions: C{list} of L{ConditionalExtension}
    (Rtsetuptget_setup_args(tkw((s7/usr/lib/python2.7/dist-packages/twisted/python/dist.pyR)scsöd|krįdtjdƒkr0tdƒ‚n|d}tjjd|ƒ}t|ddƒ|d<t|ƒ|d<d|d	}tjj|ƒrĮ|jd
gƒj	|j
ddƒd ƒnt|ddƒ|d
<|d=n[d|kr<g}x#|dD]}|j	d|ƒqžW|jd
gƒj|ƒ|d=nd|kr‡it
d6td6|d<tjd dkr‡t|dd<q‡nd|krņ|d‰|d=d|kr½ˆ|d<ndtf‡fd†ƒY}||jdiƒd<n|S(Nttwisted_subprojectttwistedt.sCSorry, you need to run setup.py from the toplevel source directory.tparenttpackagestversionstwisted/plugins/twisted_s.pyt
py_modulest/iż’’’t
data_filestpluginsstwisted.plugins.tcmdclassRRiiiRtconditionalExtensionstext_modulestmy_build_extcseZˆZRS((RRR+((t
extensions(s7/usr/lib/python2.7/dist-packages/twisted/python/dist.pyR-hsR(iii(tostlistdirtRuntimeErrortpathtjointgetPackagest
getVersiontexistst
setdefaulttappendtreplacetgetDataFilestextendtinstall_data_twistedtbuild_scripts_twistedtsystversion_infotbuild_py_twistedtbuild_ext_twisted(RtprojnametprojdirtpluginR&tplgR-((R.s7/usr/lib/python2.7/dist-packages/twisted/python/dist.pyR7sB



	
R!cCsd|dkr$tjj|dƒ}ntjj||dƒ}idd6}t||ƒ|djƒS(s÷
    Extract the version number for a given project.

    @param proj: the name of the project. Examples are "core",
    "conch", "words", "mail".

    @rtype: str
    @returns: The version number of the project, as a string like
    "2.0.0".
    Rs_version.pysNothing to see hereRR%(R/R2R3texecfiletbase(tprojRGtvfiletns((s7/usr/lib/python2.7/dist-packages/twisted/python/dist.pyR5ns

s{arch}tCVSs
.cvsignoret_darcstRCStSCCSs.svns	*.py[cdo]s*.s[ol]s.#*s*~s*.pycCsvg|D]}|tkr|^q}xJtD]B}g|D]/}tj||ƒr9|jdƒr9|^q9}q,W|S(sO
    Given a list of file names, return those names that should be copied.
    s.py(t
EXCLUDE_NAMEStEXCLUDE_PATTERNStfnmatchtendswith(R
tntpattern((s7/usr/lib/python2.7/dist-packages/twisted/python/dist.pyt_filterNamesˆs


 cCstjj|ƒ}tjj|ƒ}|j|ƒru|t|ƒ}|jtjƒrb|d}ntjj||ƒStd||fƒ‚dS(s
    Gets 'relativee' relative to 'basepath'.

    i.e.,

    >>> relativeTo('/home/', '/home/radix/')
    'radix'
    >>> relativeTo('.', '/home/radix/Projects/Twisted') # curdir is /home/radix
    'Projects/Twisted'

    The 'relativee' must be a child of 'basepath'.
    is%s is not a subpath of %sN(R/R2tabspatht
startswithtlentsepR3t
ValueError(RGt	relativeetbasepathtrelative((s7/usr/lib/python2.7/dist-packages/twisted/python/dist.pyt
relativeTo—s

cCs|p	d}|pg}g}xōtj|ƒD]ć\}}}g}x*tD]"}||krJ|j|ƒqJqJWx*|D]"}	|	|krw|j|	ƒqwqwWx!t|ƒD]}
|j|
ƒqŖW|r.|jt||ƒg|D]$}
t|tjj||
ƒƒ^qąfƒq.q.W|S(s
    Get all the data files that should be included in this distutils Project.

    'dname' should be the path to the package that you're distributing.

    'ignore' is a list of sub-packages to ignore.  This facilitates
    disparate package hierarchies.  That's a fancy way of saying that
    the 'twisted' package doesn't want to include the 'twisted.conch'
    package, so it will pass ['conch'] as the value.

    'parent' is necessary if you're distributing a subpackage like
    twisted.conch.  'dname' should point to 'twisted/conch' and 'parent'
    should point to 'twisted'.  This ensures that your data_files are
    generated correctly, only using relative paths for the first element
    of the tuple ('twisted/conch/*').
    The default 'parent' is the current working directory.
    R"(	R/twalkROtremoveRUR8R^R2R3(tdnametignoreR#tresultt	directorytsubdirectoriest	filenamestresultfilestexnametigtfilename((s7/usr/lib/python2.7/dist-packages/twisted/python/dist.pyR:®s$

9c

CsI|p	d}g}|r$|g}ntjj|ƒ}|p?g}||krRgS|dkrgg}n|dkr|g}ntj|ƒ}g|D]}tjj||ƒ^q’}	d|kr#|j|||gƒxIttjj|	ƒD]/}
t	|
d||gd|d|d|ƒqķWng|D]}dj|ƒ^q*}|S(	s„
    Get all packages which are under dname. This is necessary for
    Python 2.2's distutils. Pretty similar arguments to getDataFiles,
    including 'parent'.
    ts__init__.pytpkgnametresultsRbR#R"N(
R/R2tbasenametNoneR0R3R8tfiltertisdirR4(
RaRlRmRbR#tprefixtbnametsubfilestxtabssubfilestsubdirRctres((s7/usr/lib/python2.7/dist-packages/twisted/python/dist.pyR4Õs,		("RkcCsŅtjj|d|ƒ}tjj|ƒsXtjj|dƒ}tjj|ƒsXgSntj|ƒ}x3dddgD]"}||krw|j|ƒqwqwWttjjg|D]}tjj||ƒ^q°ƒS(sƒ
    Returns a list of scripts for a Twisted subproject; this works in
    any of an SVN checkout, a project-specific tarball.
    tbins.svns_preamble.pys
_preamble.pyc(R/R2R3RqR0R`Rptisfile(RBtbasedirt	scriptdirtthingiestspecialExclusionRu((s7/usr/lib/python2.7/dist-packages/twisted/python/dist.pyt
getScriptsósR@cBseZdZd„ZRS(sr
    Changes behavior in Python 2.2 to support simultaneous specification of
    `packages' and `py_modules'.
    cCsI|jr|jƒn|jr,|jƒn|j|jddƒƒdS(Ntinclude_bytecodei(R&t
build_modulesR$tbuild_packagestbyte_compiletget_outputs(R((s7/usr/lib/python2.7/dist-packages/twisted/python/dist.pytruns
	
	
(RRRR…(((s7/usr/lib/python2.7/dist-packages/twisted/python/dist.pyR@	sR=cBseZdZd„ZRS(s2Renames scripts so they end with '.py' on Windows.cCsĆtjj|ƒtjdks#dSx™tj|jƒD]…}tjj|j|ƒ}|jdƒs6ytj	|dƒWn)t
k
r£}|jddkr¤q¤nXtj||dƒq6q6WdS(Ntnts.pyisNo such file or directory(
RR…R/tnameR0t	build_dirR2R3RRtunlinktEnvironmentErrorRtrename(Rtftfpathte((s7/usr/lib/python2.7/dist-packages/twisted/python/dist.pyR…s(RRRR…(((s7/usr/lib/python2.7/dist-packages/twisted/python/dist.pyR=sR<cBseZdZd„ZRS(s>I make sure data files are installed in the package directory.cCs$|jddƒtjj|ƒdS(Ntinstalltinstall_libtinstall_dir(RR‘(tset_undefined_optionsRtfinalize_options(R((s7/usr/lib/python2.7/dist-packages/twisted/python/dist.pyR“,s	(RRRR“(((s7/usr/lib/python2.7/dist-packages/twisted/python/dist.pyR<*sRAcBs;eZdZd„Zd„Zd„Zd„Zd„ZRS(sb
    Allow subclasses to easily detect and customize Extensions to
    build at install-time.
    cCs€tjdkrdg|_n	g|_g|jD]}|j|ƒr1|^q1|_x$|jD]}|jj|jƒq_WdS(s
        Prepare the C{self.extensions} attribute (used by
        L{build_ext.build_ext}) by checking which extensions in
        L{conditionalExtensions} should be built.  In addition, if we are
        building on NT, define the WIN32 macro to 1.
        R†tWIN32iN(R”i(R/R‡t
define_macrosR+RR.R;(RRutext((s7/usr/lib/python2.7/dist-packages/twisted/python/dist.pytprepare_extensions:s	cCs|jƒtjj|ƒdS(sT
        Check to see which extension modules to build and then build them.
        N(R—Rtbuild_extensions(R((s7/usr/lib/python2.7/dist-packages/twisted/python/dist.pyR˜Ls
cCs:x3dD]+}ytj|ƒWqtk
r1qXqWdS(Ns
conftest.cs
conftest.osconftest.obj(s
conftest.cs
conftest.osconftest.obj(R/R‰RŠ(RRj((s7/usr/lib/python2.7/dist-packages/twisted/python/dist.pyt_remove_conftestTs


cCsrtddƒ}zQ|j|ƒ|jƒy|jjdgddƒWntk
rZtSXtSWd|jƒXdS(Ns
conftest.ctwt
output_dirRk(	topentwritetclosetcompilertcompileRtFalseRR™(Rtcontenttconftest((s7/usr/lib/python2.7/dist-packages/twisted/python/dist.pyt_compile_helper\s


cCs(|jjd|dƒ|jd|ƒS(s„
        Check if the given header can be included by trying to compile a file
        that contains only an #include line.
        schecking for %s ...is#include <%s>
(RŸtannounceR¤(Rtheader_name((s7/usr/lib/python2.7/dist-packages/twisted/python/dist.pyt
_check_headerks(RRRR—R˜R™R¤R§(((s7/usr/lib/python2.7/dist-packages/twisted/python/dist.pyRA4s				cCsty|jƒdkSWnYtk
roy |j\}}}|dkSWntk
rWnXd|jkrktStSXdS(s¦
    Checks if this implementation is CPython.

    On recent versions of Python, will use C{platform.python_implementation}.
    On 2.5, it will try to extract the implementation from sys.subversion. On
    older versions (currently the only supported older version is 2.4), checks
    if C{__pypy__} is in C{sys.modules}, since PyPy is the implementation we
    really care about. If it isn't, assumes CPython.

    This takes C{sys} and C{platform} kwargs that by default use the real
    modules. You shouldn't care about these -- they are for testing purposes
    only.

    @return: C{False} if the implementation is definitely not CPython, C{True}
        otherwise.
    tCPythont__pypy__N(tpython_implementationtAttributeErrort
subversiontmodulesR”R(R>tplatformtimplementationt_((s7/usr/lib/python2.7/dist-packages/twisted/python/dist.pyt
_checkCPythonus

cCs
|jdƒS(s–
    Checks if the header for building epoll (C{sys/epoll.h}) is available.

    @return: C{True} if the header is available, C{False} otherwise.
    ssys/epoll.h(R§(R((s7/usr/lib/python2.7/dist-packages/twisted/python/dist.pyt	_hasEpoll›s($Rtdistutils.commandRRRRtdistutils.errorsRt	distutilsRtdistutils.coreRRQR/R®R>ttwisted_subprojectsRRRR5RORPRUR^RoR:R4RR@R=R<RAR±t
_isCPythonR²(((s7/usr/lib/python2.7/dist-packages/twisted/python/dist.pyt<module>s<"			7		'
A#	

Youez - 2016 - github.com/yon3zu
LinuXploit