Your IP : 216.73.216.213


Current Path : /opt/alt/python37/lib64/python3.7/site-packages/twisted/python/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib64/python3.7/site-packages/twisted/python/__pycache__/_setup.cpython-37.pyc

B

��d^�7�!@spdZddlZddlZddlZddlZddlZddlmZddlm	Z	ddl
mZmZddl
mZejdkrpdZnd	Zed
ddd
ddddddd�ddddddgdd�Zdddd d!gZes�ed"d#g7Zeed$d%d&gd'd(d)d*gd+gd,d-gd.d/d0gd1gd2d3gd4�Zed5ed6ed7ed8ed9Zed:ed5ed6ed7ed8ed9eed;eed<ed=�	Zed>ed?<d@dAdBdCdDdEdFdGdHg	ZGdIdJ�dJee�ZedKdLgdMdN�dO�edPdQdRgdSgdTdN�dU�edVdWgdXdN�dO�gZdYdZ�Zed[fd\d]�ZGd^d_�d_ee�ZGd`da�daeje�Zeefdbdc�Ze�Z dddedfdgdhdidjdkdldmdndodpdqdrdsdtdudvdwdxdydzd{d|d}d~dd�d�d�d�d�g!Z!dS)�a:
Setuptools convenience functionality.

This file must not import anything from Twisted, as it is loaded by C{exec} in
C{setup.py}. If you need compatibility functions for this code, duplicate them
here.

@var _EXTRA_OPTIONS: These are the actual package names and versions that will
    be used by C{extras_require}.  This is not passed to setup directly so that
    combinations of the packages can be created without the need to copy
    package names multiple times.

@var _EXTRAS_REQUIRE: C{extras_require} is a dictionary of items that can be
    passed to setup.py to install optional dependencies.  For example, to
    install the optional dev dependencies one would type::

        pip install -e ".[dev]"

    This has been supported by setuptools since 0.5a4.

@var _PLATFORM_INDEPENDENT: A list of all optional cross-platform dependencies,
    as setuptools version specifiers, used to populate L{_EXTRAS_REQUIRE}.

@var _EXTENSIONS: The list of L{ConditionalExtension} used by the setup
    process.

@var notPortedModules: Modules that are not yet ported to Python 3.
�N)�	build_ext)�CompileError)�	Extension�
find_packages)�build_py)�rFT�Twistedz6An asynchronous networking framework written in PythonzTwisted Matrix Laboratoriesz twisted-python@twistedmatrix.comzGlyph Lefkowitzzglyph@twistedmatrix.comzhttps://twistedmatrix.com/z,https://twistedmatrix.com/documents/current/z"https://github.com/twisted/twistedz%https://twistedmatrix.com/trac/report)�
Documentation�Source�Issues�MITz%Programming Language :: Python :: 2.7z#Programming Language :: Python :: 3z%Programming Language :: Python :: 3.5z%Programming Language :: Python :: 3.6z%Programming Language :: Python :: 3.7z->=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*)�name�description�author�author_email�
maintainer�maintainer_email�url�project_urls�license�classifiers�python_requireszpyflakes >= 1.0.0ztwisted-dev-tools >= 0.0.2zpython-subunitzsphinx >= 1.3.1ztowncrier >= 17.4.0ztwistedchecker >= 0.4.0zpydoctor >= 16.2.0zpyopenssl >= 16.0.0zservice_identity >= 18.1.0zidna >= 0.6, != 2.3�pyasn1zcryptography >= 2.5zappdirs >= 1.4.0zbcrypt >= 3.0.0�soappyzpyserial >= 3.0z,pywin32 != 226; platform_system == "Windows"zpyobjc-corezpyobjc-framework-CFNetworkzpyobjc-framework-Cocoazpywin32 != 226zh2 >= 3.0, < 4.0zpriority >= 1.1.0, < 2.0)�dev�tls�conch�soap�serial�macos�windows�http2rrrrr!rrr )	rrrrrr!�all_non_platform�macos_platform�windows_platformr#�osx_platformz+ckeygen = twisted.conch.scripts.ckeygen:runz%cftp = twisted.conch.scripts.cftp:runz'conch = twisted.conch.scripts.conch:runz,mailmail = twisted.mail.scripts.mailmail:runz)pyhtmlizer = twisted.scripts.htmlizer:runz+tkconch = twisted.conch.scripts.tkconch:runz!trial = twisted.scripts.trial:runz3twist = twisted.application.twist._twist:Twist.mainz#twistd = twisted.scripts.twistd:runc@seZdZdZdd�ZdS)�ConditionalExtensionaj
    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(|�ddd��|_tj|f|�|�dS)N�	conditioncSsdS)NT�)�builderr(r(�H/opt/alt/python37/lib64/python3.7/site-packages/twisted/python/_setup.py�<lambda>��z/ConditionalExtension.__init__.<locals>.<lambda>)�popr'r�__init__)�self�args�kwargsr(r(r*r.�szConditionalExtension.__init__N)�__name__�
__module__�__qualname__�__doc__r.r(r(r(r*r&�s	r&ztwisted.test.raiserzsrc/twisted/test/raiser.ccCstS)N)�
_isCPython)�_r(r(r*r+�r,r+)�sourcesr'z(twisted.internet.iocpreactor.iocpsupportz:src/twisted/internet/iocpreactor/iocpsupport/iocpsupport.cz?src/twisted/internet/iocpreactor/iocpsupport/winsock_pointers.c�ws2_32cCstotjdkS)N�win32)r6�sys�platform)r7r(r(r*r+�r,)r8�	librariesr'ztwisted.python._sendmsgzsrc/twisted/python/_sendmsg.ccCstotjdkS)Nr:)�_PY3r;r<)r7r(r(r*r+�r,c	Cs@tj|dd��}|��}WdQRXtjdd|tjd�}|dd�S)	z�
    Generate a PyPI long description from the readme.

    @param readme: Path to the readme reStructuredText file.
    @type readme: C{str}

    @return: Keyword arguments to be passed to C{setuptools.setup()}.
    @rtype: C{str}
    zutf-8)�encodingNz#`([^`]+)\s+<(?!https?://)([^>]+)>`_z8`\1 <https://github.com/twisted/twisted/blob/trunk/\2>`_)�flagsz
text/x-rst)�long_description�long_description_content_type)�io�open�read�re�sub�I)�readme�f�	readmeRst�longDescr(r(r*�_longDescriptionArgsFromReadme�s

rMz
README.rstcs�t��}|r|�t|���|d<G�fdd�dt�}d|i}tjddkrTt|d<dd	d
ddd
dg}|�tt	d�dd
g|dt
i|dddddddgidtddid��|S)a�
    Generate arguments for C{setuptools.setup()}

    @param extensions: C extension modules to maybe build. This argument is to
        be used for testing.
    @type extensions: C{list} of C{ConditionalExtension}

    @param readme: Path to the readme reStructuredText file. This argument is
        to be used for testing.
    @type readme: C{str}

    @return: The keyword arguments to be used by the setup method.
    @rtype: L{dict}
    �ext_modulescseZdZ�ZdS)z"getSetupArgs.<locals>.my_build_extN)r2r3r4�conditionalExtensionsr()�
extensionsr(r*�my_build_extsrQrrrrzzope.interface >= 4.4.2zconstantly >= 15.1zincremental >= 16.10.1zAutomat >= 0.3.0zhyperlink >= 17.1.1zPyHamcrest >= 1.9.0, != 1.10.0zattrs >= 19.2.0�srcT�console_scripts�z*.cz*.hz*.pxiz*.pyxz	build.batF)�packages�use_incremental�setup_requires�install_requires�entry_points�cmdclass�include_package_data�exclude_package_data�zip_safe�extras_require�package_dir)�STATIC_PACKAGE_METADATA�copy�updaterM�build_ext_twistedr;�version_info�BuildPy3�dictr�_CONSOLE_SCRIPTS�_EXTRAS_REQUIRE)rPrI�	argumentsrQ�command_classes�requirementsr()rPr*�getSetupArgs�s8
rlc@seZdZdZdd�ZdS)rezh
    A version of build_py that doesn't install the modules that aren't yet
    ported to Python 3.
    cCsdd�t�|||�D�}|S)NcSs*g|]"}d�|d|dg�tkr|�qS)�.r�)�join�notPortedModules)�.0�moduler(r(r*�
<listcomp>8sz1BuildPy3.find_package_modules.<locals>.<listcomp>)r�find_package_modules)r/�packager_�modulesr(r(r*rt6szBuildPy3.find_package_modulesN)r2r3r4r5rtr(r(r(r*re1srec@s8eZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�ZdS)
rczb
    Allow subclasses to easily detect and customize Extensions to
    build at install-time.
    csvtjdkrdg�_ng�_tj�d�r>�j�d��j�d��fdd��jD��_x�jD]}|j�	�j�q\WdS)	a
        Prepare the C{self.extensions} attribute (used by
        L{build_ext.build_ext}) by checking which extensions in
        I{conditionalExtensions} should be built.  In addition, if we are
        building on NT, define the WIN32 macro to 1.
        �nt)�WIN32rn�sunos)�
_XOPEN_SOURCErn)�_XOPEN_SOURCE_EXTENDEDrncsg|]}|���r|�qSr()r')rq�x)r/r(r*rs`sz8build_ext_twisted.prepare_extensions.<locals>.<listcomp>N)
�osr
�
define_macrosr;r<�
startswith�appendrOrP�extend)r/�extr()r/r*�prepare_extensionsHs

z$build_ext_twisted.prepare_extensionscCs|��tj�|�dS)zT
        Check to see which extension modules to build and then build them.
        N)r�r�build_extensions)r/r(r(r*r�gsz"build_ext_twisted.build_extensionsc	Cs6x0dD](}yt�|�Wqtk
r,YqXqWdS)N)z
conftest.cz
conftest.ozconftest.obj)r}�unlink�EnvironmentError)r/�filenamer(r(r*�_remove_conftestos

z"build_ext_twisted._remove_conftestc	Csdtdd�}zJ|�|�|�WdQRXy|jjdgdd�Wntk
rPdSXdS|��XdS)Nz
conftest.c�wrT)�
output_dirFT)rD�write�compiler�compilerr�)r/�content�conftestr(r(r*�_compile_helperws
z!build_ext_twisted._compile_helpercCs$|j�d�|�d�|�d�|��S)z�
        Check if the given header can be included by trying to compile a file
        that contains only an #include line.
        zchecking for {} ...rz#include <{}>
)r��announce�formatr�)r/�header_namer(r(r*�
_check_header�szbuild_ext_twisted._check_headerN)	r2r3r4r5r�r�r�r�r�r(r(r(r*rcBsrccCs|��dkS)aj
    Checks if this implementation is CPython.

    This uses C{platform.python_implementation}.

    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.
    �CPython)�python_implementation)r;r<r(r(r*�
_checkCPython�s
r�ztwisted.mail.aliasztwisted.mail.bounceztwisted.mail.mailztwisted.mail.maildirztwisted.mail.pbztwisted.mail.relaymanagerztwisted.mail.scripts.__init__ztwisted.mail.tapztwisted.mail.test.test_bounceztwisted.mail.test.test_mailztwisted.mail.test.test_optionsztwisted.mail.test.test_scriptsztwisted.news.__init__ztwisted.news.databaseztwisted.news.newsztwisted.news.nntpztwisted.news.tapztwisted.news.test.__init__ztwisted.news.test.test_databaseztwisted.news.test.test_newsztwisted.news.test.test_nntpztwisted.plugins.twisted_mailztwisted.plugins.twisted_newsztwisted.protocols.shoutcastztwisted.python._pydoctorztwisted.python.finalizeztwisted.python.hookz#twisted.python.test.cmodulepullpipez!twisted.python.test.test_pydoctorztwisted.python.test.test_win32ztwisted.test.test_hookztwisted.web.soapztwisted.web.test.test_soap)"r5rCr}r<rFr;�distutils.commandr�distutils.errorsr�
setuptoolsrr�setuptools.command.build_pyrrdr>rfr`�_dev�_EXTRA_OPTIONS�_PLATFORM_INDEPENDENTrhrg�objectr&�_EXTENSIONSrMrlrercr�r6rpr(r(r(r*�<module>"s





IN