Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 77 lines (66 sloc) 2.18 KB
#! /usr/bin/env python
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']
library_dirs = [r'd:\libs\lib']
else:
include_dirs = ['/usr/include/libxml2','/usr/local/include/libxml2']
library_dirs = []
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',
download_url = 'https://github.com/downloads/Jajcus/pyxmpp/pyxmpp-{0}.tar.gz'.format(version),
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 :: Python :: 2.6",
"Programming Language :: C",
"Topic :: Communications",
"Topic :: Communications :: Chat",
"Topic :: Internet",
"Topic :: Software Development :: Libraries :: Python Modules",
],
license = 'LGPL',
requires = ['libxml2_python', 'dnspython(>= 1.6.0)'],
ext_modules = ext_modules,
#-- Python modules
packages = [
'pyxmpp',
'pyxmpp.jabber',
'pyxmpp.jabberd',
'pyxmpp.sasl',
],
)
# vi: sts=4 et sw=4