diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-10-24 09:58:57 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-10-24 09:58:57 +0000 |
commit | 79d061b9275c7d572664bde7902df4b07a04d12e (patch) | |
tree | de399406d7bb5947f8517c2399a6e412a13fb4c9 /dev-python/pyserial/files | |
parent | Drop patch for --as-needed for validation modules because these modules are n... (diff) | |
download | historical-79d061b9275c7d572664bde7902df4b07a04d12e.tar.gz historical-79d061b9275c7d572664bde7902df4b07a04d12e.tar.bz2 historical-79d061b9275c7d572664bde7902df4b07a04d12e.zip |
Fix miniterm.py with Python 3 (bug #341641).
Package-Manager: portage-2.2.0_alpha1_p7/cvs/Linux x86_64
Diffstat (limited to 'dev-python/pyserial/files')
-rw-r--r-- | dev-python/pyserial/files/pyserial-2.5-python-3.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/dev-python/pyserial/files/pyserial-2.5-python-3.patch b/dev-python/pyserial/files/pyserial-2.5-python-3.patch new file mode 100644 index 000000000000..5ad5c6c80524 --- /dev/null +++ b/dev-python/pyserial/files/pyserial-2.5-python-3.patch @@ -0,0 +1,43 @@ +http://pyserial.svn.sourceforge.net/viewvc/pyserial?view=revision&revision=381 + +--- setup.py ++++ setup.py +@@ -1,7 +1,13 @@ +-# setup.py for pyserial ++# setup.py for pySerial + # +-# windows installer: +-# python setup.py bdist_wininst ++# Windows installer: ++# "python setup.py bdist_wininst" ++# ++# Direct install (all systems): ++# "python setup.py install" ++# ++# For Python 3.x use the corresponding Python executable, ++# e.g. "python3 setup.py ..." + + import sys + +@@ -9,10 +15,12 @@ + + try: + from distutils.command.build_py import build_py_2to3 as build_py ++ from distutils.command.build_scripts import build_scripts_2to3 as build_scripts + except ImportError: + if sys.version_info >= (3, 0): + raise ImportError("build_py_2to3 not found in distutils - it is required for Python 3.x") + from distutils.command.build_py import build_py ++ from distutils.command.build_scripts import build_scripts + suffix = "" + else: + suffix = "-py3k" +@@ -60,7 +68,7 @@ + 'Topic :: Terminals :: Serial', + ], + platforms = 'any', +- cmdclass = {'build_py': build_py}, ++ cmdclass = {'build_py': build_py, 'build_scripts': build_scripts}, + + scripts = ['examples/miniterm.py'], + ) |