#!/usr/bin/env python # $Id$ import sys try: from setuptools import setup, Extension except ImportError: from distutils.core import setup, Extension if sys.version_info < (2, 5): sys.exit('python version not supported (< 2.5)') if 'sunos' in sys.platform: libraries = ["sendfile"] else: libraries = [] name = 'pysendfile' version = '0.2.0' download_url = "http://pysendfile.googlecode.com/files/" + name + "-" + \ version + ".tar.gz" def main(): setup(name=name, url='http://code.google.com/p/pysendfile/', version=version, description='A Python interface to sendfile(2)', long_description=open('README', 'r').read(), url='http://code.google.com/p/pysendfile/', author='Giampaolo Rodola', author_email='g.rodola@gmail.com', download_url=download_url, license='License :: OSI Approved :: MIT License', keywords=['sendfile', 'ftp'], classifiers = [ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Operating System :: POSIX :: Linux', 'Operating System :: MacOS :: MacOS X', 'Operating System :: POSIX :: BSD', 'Operating System :: POSIX :: BSD :: FreeBSD', 'Operating System :: POSIX :: SunOS/Solaris', 'Operating System :: POSIX :: AIX', 'Programming Language :: C', 'Programming Language :: Python :: 2.4', 'Programming Language :: Python :: 2.5', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.0', 'Programming Language :: Python :: 3.1', 'Programming Language :: Python :: 3.2', 'Programming Language :: Python :: 3.3', 'Topic :: System :: Networking', 'Topic :: System :: Operating System', 'Topic :: Internet :: File Transfer Protocol (FTP)', 'Topic :: Internet :: WWW/HTTP', 'License :: OSI Approved :: GNU Library or Lesser General ', ], ext_modules = [Extension('sendfile', sources=['sendfilemodule.c'], libraries=libraries)], ) main()