From a078a86792d70ed8a9d749472baaf363d0c41054 Mon Sep 17 00:00:00 2001 From: Jim Crist-Harif Date: Tue, 18 Oct 2022 10:40:09 -0500 Subject: [PATCH] Use winkerberos on windows This switches impyla to depend on `winkerberos` on windows rather than `kerberos`. The `winkerberos` package provides pre-built wheels for `windows` with the same python-facing API. --- setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 932315d56..9f49eb44f 100644 --- a/setup.py +++ b/setup.py @@ -43,7 +43,10 @@ def readme(): package_data={'impala.thrift': ['*.thrift']}, install_requires=['six', 'bitarray', 'thrift==0.16.0', 'thrift_sasl==0.4.3'], extras_require={ - "kerberos": ['kerberos>=1.3.0'], + "kerberos": [ + 'kerberos>=1.3.0;platform_system!="Windows"', + 'winkerberos;platform_system=="Windows"', + ], }, keywords=('cloudera impala python hadoop sql hdfs mpp spark pydata ' 'pandas distributed db api pep 249 hive hiveserver2 hs2'),