This repository has been archived by the owner on Dec 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
setup.py
executable file
·76 lines (66 loc) · 2.18 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#! /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 = '[email protected]',
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