From: Jolitz B. - b. <Ben...@ac...> - 2014-08-21 23:32:27
|
The following patch will make it install from pip quite fine on current Python 3 versions. I set the minor for Python 3 to ’10' as there are no expected major syntax changes to Python 3 planned and it is reasonable to assume this package will function well with 2to3 being run, but it really is just a number. Cheers, Ben Jolitz diff -Naur DBUtils-1.1/setup.py DBUtils-1.1-fix/setup.py --- DBUtils-1.1/setup.py 2011-08-14 05:01:30.000000000 -0700 +++ DBUtils-1.1-fix/setup.py 2014-08-21 15:55:04.000000000 -0700 @@ -7,7 +7,7 @@ from sys import version_info py_version = version_info[:2] -if not (2, 3) <= py_version < (3, 0): +if not (2, 3) <= py_version < (3, 10): raise ImportError('Python %d.%d is not supported by DBUtils.' % py_version) import warnings @@ -66,5 +66,6 @@ license='Open Software License', packages=['DBUtils', 'DBUtils.Examples', 'DBUtils.Tests'], package_data={'DBUtils': ['Docs/*']}, - zip_safe=0 + zip_safe=0, + use_2to3 = True ) *************************************************************************** The information contained in this communication is confidential, is intended only for the use of the recipient named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please resend this communication to the sender and delete the original message or any copy of it from your computer system. Thank You. **************************************************************************** |