~gearman-developers/gearman-interface/gearman-interface

« back to all changes in this revision

Viewing changes to python/setup.py

  • Committer: Monty Taylor
  • Date: 2009-07-21 20:41:39 UTC
  • Revision ID: mordred@inaugust.com-20090721204139-rcyse999id1lbu1h
Python worker initial import.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python
 
2
# -*- mode: python; c-basic-offset: 2; indent-tabs-mode: nil; -*-
 
3
#  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
 
4
##  drizzle-interface: Interface Wrappers for Drizzle
 
5
##  Copyright (C) 2008 Sun Microsystems, Inc.
 
6
##    
 
7
##    This program is free software; you can redistribute it and/or modify
 
8
##    it under the terms of the GNU General Public License as published by
 
9
##    the Free Software Foundation; either version 2 of the License, or 
 
10
##    (at your option) any later version.
 
11
##    
 
12
##    This program is distributed in the hope that it will be useful,
 
13
##    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
##    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
##    GNU General Public License for more details.
 
16
##
 
17
##    You should have received a copy of the GNU General Public License
 
18
##    along with this program; if not, write to the Free Software
 
19
##    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
20
 
 
21
# bootstrap setuptools if necessary
 
22
from ez_setup import use_setuptools
 
23
use_setuptools()
 
24
 
 
25
from distutils.command.clean import clean
 
26
from distutils.command.build import build
 
27
from setuptools import setup,Extension
 
28
import os.path, os
 
29
import sys
 
30
from gearman.release import version
 
31
 
 
32
description = """Python wrapper of libgearman"""
 
33
 
 
34
classifiers="""\
 
35
Development Status :: 2 - Pre-Alpha
 
36
License :: OSI Approved :: BSD
 
37
Operating System :: POSIX :: Linux
 
38
Programming Language :: C++
 
39
Programming Language :: Python
 
40
Topic :: Software Development :: Libraries :: Python Modules
 
41
"""
 
42
 
 
43
setup(name="python-gearman",
 
44
      version=version,
 
45
      description=description,
 
46
      long_description=description,
 
47
      author="Monty Taylor",
 
48
      author_email="mordred@inaugust.com",
 
49
      url="http://launchpad.net/gearman-interface",
 
50
      platforms="linux",
 
51
      license="GPL",
 
52
      classifiers=filter(None, classifiers.splitlines()),
 
53
 
 
54
      ext_modules=[
 
55
        Extension("gearman._libgearman",
 
56
                  sources=["libgearman.cc"],
 
57
                  libraries=["gearman"],
 
58
                  ),
 
59
        ],
 
60
      #test_suite = "tests.AllTests.test_all",
 
61
      packages=["gearman"],
 
62
      )
 
63