From 6f4bf690462c976a7e4c25ba31048bbc27a32d36 Mon Sep 17 00:00:00 2001 From: cliechti Date: Sun, 13 Oct 2013 22:24:37 +0000 Subject: fix syntax git-svn-id: http://svn.code.sf.net/p/pyserial/code/trunk/pyserial@476 f19166aa-fa4f-0410-85c2-fa1106f25c8a --- setup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 648ecb2..5a0d27f 100644 --- a/setup.py +++ b/setup.py @@ -19,6 +19,8 @@ if sys.version_info >= (3, 0): from distutils.command.build_scripts import build_scripts_2to3 as build_scripts except ImportError: raise ImportError("build_py_2to3 not found in distutils - it is required for Python 3.x") + else: + sys.stderr.write('Detected Python 3, using 2to3\n') else: from distutils.command.build_py import build_py from distutils.command.build_scripts import build_scripts @@ -43,7 +45,7 @@ version = re.search( setup( - name = "pyserial" + name = "pyserial", description = "Python Serial Port Extension", version = version, author = "Chris Liechti", @@ -72,6 +74,7 @@ setup( 'Programming Language :: Python :: 3.0', 'Programming Language :: Python :: 3.1', 'Programming Language :: Python :: 3.2', + 'Programming Language :: Python :: 3.3', 'Topic :: Communications', 'Topic :: Software Development :: Libraries', 'Topic :: Software Development :: Libraries :: Python Modules', @@ -79,6 +82,7 @@ setup( ], platforms = 'any', cmdclass = {'build_py': build_py, 'build_scripts': build_scripts}, + use_2to3 = sys.version_info >= (3, 0), # for distribute scripts = ['serial/tools/miniterm.py'], ) -- cgit v1.2.1