if sys.version_info < (2, 5): print >>sys.stderr, "You must use at least Python 2.5 for Twisted" sys.exit(3) if os.path.exists('twisted'): sys.path.insert(0, '.') # eek! need this to import twisted. sorry. from twisted import copyright from twisted.python.dist import setup, ConditionalExtension as Extension from twisted.python.dist import getPackages, getDataFiles, getScripts from twisted.python.dist import twisted_subprojects, _isCPython, _hasEpoll extensions = [ Extension("twisted.test.raiser", ["twisted/test/raiser.c"], condition=lambda _: _isCPython), Extension("twisted.python._epoll", ["twisted/python/_epoll.c"], condition=lambda builder: (_isCPython and _hasEpoll(builder) and sys.version_info[:2] < (2, 6))), Extension("twisted.internet.iocpreactor.iocpsupport", ["twisted/internet/iocpreactor/iocpsupport/iocpsupport.c", "twisted/internet/iocpreactor/iocpsupport/winsock_pointers.c"], libraries=["ws2_32"], condition=lambda _: _isCPython and sys.platform == "win32"), Extension("twisted.python._initgroups", ["twisted/python/_initgroups.c"]),
import os, sys if sys.version_info < (2, 3): print >> sys.stderr, "You must use at least Python 2.3 for Twisted" sys.exit(3) if os.path.exists('twisted'): sys.path.insert(0, '.') # eek! need this to import twisted. sorry. from twisted import copyright from twisted.python.dist import setup, ConditionalExtension as Extension from twisted.python.dist import getPackages, getDataFiles, getScripts from twisted.python.dist import twisted_subprojects extensions = [ Extension("twisted.protocols._c_urlarg", ["twisted/protocols/_c_urlarg.c"]), Extension("twisted.test.raiser", ["twisted/test/raiser.c"]), Extension("twisted.python._epoll", ["twisted/python/_epoll.c"], condition=lambda builder: builder._check_header("sys/epoll.h")), Extension("twisted.internet.iocpreactor.iocpsupport", [ "twisted/internet/iocpreactor/iocpsupport/iocpsupport.c", "twisted/internet/iocpreactor/iocpsupport/winsock_pointers.c" ], libraries=["ws2_32"], condition=lambda builder: sys.platform == "win32"), Extension("twisted.python._initgroups", ["twisted/python/_initgroups.c"]), Extension("twisted.internet._sigchld", ["twisted/internet/_sigchld.c"], condition=lambda builder: sys.platform != "win32"), ] # Figure out which plugins to include: all plugins except subproject ones
import os import sys if sys.version_info < (2, 6): print >> sys.stderr, "You must use at least Python 2.6 for Twisted" sys.exit(3) if os.path.exists('twisted'): sys.path.insert(0, '.') # eek! need this to import twisted. sorry. from twisted import copyright from twisted.python.dist import setup, ConditionalExtension as Extension from twisted.python.dist import getPackages, getDataFiles, getScripts from twisted.python.dist import twisted_subprojects, _isCPython extensions = [ Extension("twisted.test.raiser", ["twisted/test/raiser.c"], condition=lambda _: _isCPython), Extension("twisted.internet.iocpreactor.iocpsupport", [ "twisted/internet/iocpreactor/iocpsupport/iocpsupport.c", "twisted/internet/iocpreactor/iocpsupport/winsock_pointers.c" ], libraries=["ws2_32"], condition=lambda _: _isCPython and sys.platform == "win32"), Extension("twisted.python.sendmsg", sources=["twisted/python/sendmsg.c"], condition=lambda _: sys.platform != "win32"), ] if sys.version_info[:2] <= (2, 6): extensions.append( Extension("twisted.python._initgroups", ["twisted/python/_initgroups.c"]))
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. try: from twisted.python.dist import setup, ConditionalExtension as Extension except ImportError: raise SystemExit("twisted.python.dist module not found. Make sure you " "have installed the Twisted core package before " "attempting to install any other Twisted projects.") extensions = [ Extension("twisted.runner.portmap", ["twisted/runner/portmap.c"], condition=lambda builder: builder._check_header("rpc/rpc.h")), ] if __name__ == '__main__': setup( twisted_subproject="runner", # metadata name="Twisted Runner", description="Twisted Runner is a process management library and inetd " "replacement.", author="Twisted Matrix Laboratories", author_email="*****@*****.**", maintainer="Andrew Bennetts", url="http://twistedmatrix.com/trac/wiki/TwistedRunner", license="MIT", long_description="""\ Twisted Runner contains code useful for persistent process management with Python and Twisted, and has an almost full replacement for inetd. """,
import os, sys if sys.version_info < (2, 3): print >> sys.stderr, "You must use at least Python 2.3 for Twisted" sys.exit(3) if os.path.exists('twisted'): sys.path.insert(0, '.') # eek! need this to import twisted. sorry. from twisted import copyright from twisted.python.dist import setup, ConditionalExtension as Extension from twisted.python.dist import getPackages, getDataFiles, getScripts from twisted.python.dist import twisted_subprojects extensions = [ Extension("twisted.protocols._c_urlarg", ["twisted/protocols/_c_urlarg.c"]), Extension("twisted.test.raiser", ["twisted/test/raiser.c"]), Extension("twisted.python._epoll", ["twisted/python/_epoll.c"], condition=lambda builder: builder._check_header("sys/epoll.h")), Extension("twisted.internet.iocpreactor.iocpsupport", [ "twisted/internet/iocpreactor/iocpsupport/iocpsupport.c", "twisted/internet/iocpreactor/iocpsupport/winsock_pointers.c" ], libraries=["ws2_32"], condition=lambda builder: sys.platform == "win32"), Extension("twisted.internet.cfsupport", ["twisted/internet/cfsupport/cfsupport.c"], extra_compile_args=['-w'], extra_link_args=[ '-framework', 'CoreFoundation', '-framework', 'CoreServices', '-framework', 'Carbon'