This is an automated email from the ASF dual-hosted git repository. stoty pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/phoenix-queryserver.git
The following commit(s) were added to refs/heads/master by this push: new 01ca7af PHOENIX-7221 Manage requests-gssapi version for Phython 3.7 and lower 01ca7af is described below commit 01ca7af5a4374e8b01a70c3aa2e5fd720cf01e3f Author: Istvan Toth <st...@apache.org> AuthorDate: Tue Feb 27 07:39:52 2024 +0100 PHOENIX-7221 Manage requests-gssapi version for Phython 3.7 and lower --- python-phoenixdb/README.rst | 11 +++++++++-- python-phoenixdb/setup.py | 10 +++++++--- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/python-phoenixdb/README.rst b/python-phoenixdb/README.rst index 0c609a8..a8aa96c 100644 --- a/python-phoenixdb/README.rst +++ b/python-phoenixdb/README.rst @@ -26,10 +26,17 @@ from <https://github.com/apache/phoenix-queryserver> Extract the archive and then install it manually:: - cd /path/to/phoenix-queryserver-x.y.z/python/phoenixdb + cd /path/to/phoenix-queryserver-x.y.z/python-phoenixdb pip install -r requirements.txt python setup.py install +Note that old versions of pip and setuptools have various bugs and incompatibilities that +may result in installation errors, especially on old python versions. +If you encounter problems while building, update your pip and setuptools, and try again:: + pip install --upgrade pip + pip install --upgrade setuptools + + Usage ----- @@ -83,7 +90,7 @@ this will also create a shell script in phoenix-queryserver-it/target/krb_setup. use to set up the environment for the tests. Note: Depending on the Phoenix version used for building, you may or may not need the -`-Pshade-javax-servlet` option. Check BUILDING.md in the repository root. +`-Pshade-javax-servlet` option. See BUILDING.md in the repository root for more information. If you want to use the library without installing the phoenixdb library, you can use the `PYTHONPATH` environment variable to point to the library directly:: diff --git a/python-phoenixdb/setup.py b/python-phoenixdb/setup.py index c3acca5..36a33f5 100644 --- a/python-phoenixdb/setup.py +++ b/python-phoenixdb/setup.py @@ -40,8 +40,11 @@ if setuptools.__version__ < '20.8.1': install_requires=[ 'protobuf>=3.0.0', 'requests', - 'requests-gssapi', ] + if sys.version_info < (3,8): + install_requires.append('requests-gssapi<1.3.0') + else: + install_requires.append('requests-gssapi') if sys.version_info < (3,6): install_requires.append('gssapi<1.6.0') #Don't build the docs on an old stack @@ -50,8 +53,9 @@ else: install_requires=[ 'protobuf>=3.0.0', 'requests', - 'requests-gssapi', - 'gssapi<1.6.0;python_version<"3.6"', + 'requests-gssapi; python_version>="3.8.0"', + 'requests-gssapi<1.3.0; python_version<"3.8.0"', + 'gssapi<1.6.0; python_version<"3.6.0"', ] setup_requires=[ 'Sphinx;python_version>="3.6"',