summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorNathan Fritz <fritzy@netflint.net>2010-01-29 23:57:57 -0800
committerNathan Fritz <fritzy@netflint.net>2010-01-29 23:57:57 -0800
commit5e736f4b978414c111062ffb220e38eb40765db6 (patch)
tree9ef6f7c278e102a6ffb0db9ce0015a7919dfa900 /setup.py
parent23b9930c44608e633437c8ec80ef687dd9c0a8b2 (diff)
downloadslixmpp-5e736f4b978414c111062ffb220e38eb40765db6.tar.gz
slixmpp-5e736f4b978414c111062ffb220e38eb40765db6.tar.bz2
slixmpp-5e736f4b978414c111062ffb220e38eb40765db6.tar.xz
slixmpp-5e736f4b978414c111062ffb220e38eb40765db6.zip
fixed setup.py issue with unicode in 3.x
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py19
1 files changed, 13 insertions, 6 deletions
diff --git a/setup.py b/setup.py
index 7dbd619b..163cb8c6 100644
--- a/setup.py
+++ b/setup.py
@@ -37,6 +37,18 @@ CLASSIFIERS = [ 'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries :: Python Modules',
]
+packages = [ 'sleekxmpp',
+ 'sleekxmpp/plugins',
+ 'sleekxmpp/stanza',
+ 'sleekxmpp/xmlstream',
+ 'sleekxmpp/xmlstream/matcher',
+ 'sleekxmpp/xmlstream/handler' ]
+
+if sys.version_info < (3, 0):
+ packages.append('sleekxmpp/xmlstream/tostring26')
+else:
+ packages.append('sleekxmpp/xmlstream/tostring')
+
setup(
name = "sleekxmpp",
version = VERSION,
@@ -47,12 +59,7 @@ setup(
url = 'http://code.google.com/p/sleekxmpp',
license = 'GPLv2',
platforms = [ 'any' ],
- packages = [ 'sleekxmpp',
- 'sleekxmpp/plugins',
- 'sleekxmpp/stanza',
- 'sleekxmpp/xmlstream',
- 'sleekxmpp/xmlstream/matcher',
- 'sleekxmpp/xmlstream/handler' ],
+ packages = packages,
requires = [ 'tlslite', 'pythondns' ],
)