#! /usr/bin/env python # $Id: setup.py,v 1.14 2004/06/02 21:20:16 jajcus Exp $ import os.path import sys if not os.path.exists(os.path.join("pyxmpp","version.py")): print >>sys.stderr,"You need to run 'make' to use pyxmpp from SVN" sys.exit(1) execfile("build.cfg") execfile(os.path.join("pyxmpp", "version.py")) from distutils.core import setup, Extension if python_only: ext_modules = None else: # set reasonable defaults, just in case if sys.platform == 'win32': include_dirs = [r'd:\libs\include', r'd:\libs\include\libxml',"/usr/local/include"] library_dirs = [r'd:\libs\lib'"/usr/local/lib"] else: include_dirs = ['/usr/include/libxml2','/usr/local/include/libxml2',"/usr/local/include"] library_dirs = ["/usr/local/lib"] ext_modules = [ Extension( 'pyxmpp._xmlextra', [ 'ext/xmlextra.c', ], libraries = ['xml2'], library_dirs = library_dirs, include_dirs = include_dirs, extra_compile_args = [], ), ] #-- Let distutils do the rest setup( #-- Package description name = 'pyxmpp', version = version, description = 'XMPP/Jabber implementation for Python', author = 'Jacek Konieczny', author_email = 'jajcus@jajcus.net', url = 'http://pyxmpp.jajcus.net/', classifiers = [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)", "Operating System :: POSIX", "Programming Language :: Python", "Programming Language :: C", "Topic :: Communications", "Topic :: Communications :: Chat", "Topic :: Internet", "Topic :: Software Development :: Libraries :: Python Modules", ], license = 'LGPL', ext_modules = ext_modules, #-- Python modules packages = [ 'pyxmpp', 'pyxmpp.jabber', 'pyxmpp.jabberd', 'pyxmpp.sasl', ], ) # vi: sts=4 et sw=4