Skip to content

Commit 184f4d1

Browse files
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.
1 parent 7751ccf commit 184f4d1

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

doc/src/release_notes.rst

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ Version 8.0.1 (TBD)
1212
<https://oracle.github.io/odpi/doc/releasenotes.html#
1313
version-4-0-2-TBD>`__. This includes the fix for
1414
(`issue 459 <https://github.com/oracle/python-cx_Oracle/issues/459>`__).
15+
#) Added metadata (and an exception) specifying that Python 3.5 and higher is
16+
required in order to allow pip (and the exception message) to direct those
17+
using Python 2 to use version 7.3 instead.
1518
#) Documentation improvements.
1619

1720

setup.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414

1515
# check minimum supported Python version
1616
if sys.version_info[:2] < (3, 5):
17-
raise Exception("Python 3.5 or higher is required.")
17+
raise Exception("Python 3.5 or higher is required. " +
18+
"For python 2, use 'pip install cx_Oracle==7.3'")
1819

1920
# if setuptools is detected, use it to add support for eggs
2021
try:
@@ -122,6 +123,7 @@ def run(self):
122123
author = "Anthony Tuininga",
123124
author_email = "[email protected]",
124125
url = "https://oracle.github.io/python-cx_Oracle",
126+
python_requires = ">=3.5",
125127
ext_modules = [extension],
126128
keywords = "Oracle",
127129
license = "BSD License",

0 commit comments

Comments
 (0)