From 0d0b963fe543169d069a2a69ae79735d404a2e33 Mon Sep 17 00:00:00 2001 From: Nathan Fritz Date: Thu, 14 Oct 2010 10:58:07 -0700 Subject: fixed socket name collision in xmlstream.py and fixed python 3.x compatibility --- setup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index f6eace7f..ba61c84e 100644 --- a/setup.py +++ b/setup.py @@ -44,10 +44,14 @@ packages = [ 'sleekxmpp', 'sleekxmpp/xmlstream', 'sleekxmpp/xmlstream/matcher', 'sleekxmpp/xmlstream/handler', - 'sleekxmpp/xmlstream/tostring', 'sleekxmpp/thirdparty', ] +if sys.version_info < (3, 0): + py_modules = ['sleekxmpp.xmlstream.tostring.tostring26'] +else: + py_modules = ['sleekxmpp.xmlstream.tostring.tostring'] + setup( name = "sleekxmpp", version = VERSION, -- cgit v1.2.3