File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 1414
1515# check minimum supported Python version
1616if 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
2021try :
@@ -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" ,
You can’t perform that action at this time.
0 commit comments