Codebase list python-cx-oracle / 184f4d1
Added metadata (and an exception) specifying that Python 3.5 and higher is required in order to allow pip (and the exception message) to direct those using Python 2 to use version 7.3 instead. Anthony Tuininga 3 years ago
2 changed file(s) with 6 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
1111 <https://oracle.github.io/odpi/doc/releasenotes.html#
1212 version-4-0-2-TBD>`__. This includes the fix for
1313 (`issue 459 <https://github.com/oracle/python-cx_Oracle/issues/459>`__).
14 #) Added metadata (and an exception) specifying that Python 3.5 and higher is
15 required in order to allow pip (and the exception message) to direct those
16 using Python 2 to use version 7.3 instead.
1417 #) Documentation improvements.
1518
1619
1313
1414 # check minimum supported Python version
1515 if sys.version_info[:2] < (3, 5):
16 raise Exception("Python 3.5 or higher is required.")
16 raise Exception("Python 3.5 or higher is required. " +
17 "For python 2, use 'pip install cx_Oracle==7.3'")
1718
1819 # if setuptools is detected, use it to add support for eggs
1920 try:
121122 author = "Anthony Tuininga",
122123 author_email = "[email protected]",
123124 url = "https://oracle.github.io/python-cx_Oracle",
125 python_requires = ">=3.5",
124126 ext_modules = [extension],
125127 keywords = "Oracle",
126128 license = "BSD License",