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
11 | 11 |
<https://oracle.github.io/odpi/doc/releasenotes.html#
|
12 | 12 |
version-4-0-2-TBD>`__. This includes the fix for
|
13 | 13 |
(`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.
|
14 | 17 |
#) Documentation improvements.
|
15 | 18 |
|
16 | 19 |
|
13 | 13 |
|
14 | 14 |
# check minimum supported Python version
|
15 | 15 |
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'")
|
17 | 18 |
|
18 | 19 |
# if setuptools is detected, use it to add support for eggs
|
19 | 20 |
try:
|
|
121 | 122 |
author = "Anthony Tuininga",
|
122 | 123 |
author_email = "[email protected]",
|
123 | 124 |
url = "https://oracle.github.io/python-cx_Oracle",
|
|
125 |
python_requires = ">=3.5",
|
124 | 126 |
ext_modules = [extension],
|
125 | 127 |
keywords = "Oracle",
|
126 | 128 |
license = "BSD License",
|