mirror of
https://github.com/apache/impala.git
synced 2025-12-22 11:28:09 -05:00
A recent patch upgraded thrift_sasl from 0.4.2 to 0.4.3. It broke the builds on Centos-7. The version of setuptools which is installed by Jenkins for the virtualenvs on Centos 7 could be lower than the requirement by thrift_sasl 0.4.3. Another issue is the new string syntax for install_requires in setup.py is not accepted on Centos-7. This patch remove the requirement for setuptools in setup.py of thrift_sasl as work around. Also change back the syntax of strings for install_requires. Testing: - Ran core test on impala-private-parameterized which use Centos-7. - Ran core test on pre-review-test which use Ubuntu. Change-Id: I2c256a8ec9a151bca8b3370bfce6ecebf060bad0 Reviewed-on: http://gerrit.cloudera.org:8080/17886 Reviewed-by: Joe McDonnell <joemcdonnell@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
53 lines
1.8 KiB
Python
53 lines
1.8 KiB
Python
# Copyright 2015 Cloudera Inc.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
from __future__ import absolute_import
|
|
|
|
import sys
|
|
from setuptools import setup
|
|
|
|
PY3 = sys.version_info[0] == 3
|
|
|
|
description = ("Thrift SASL Python module that implements SASL transports for "
|
|
"Thrift (`TSaslClientTransport`).")
|
|
|
|
setup(
|
|
name='thrift_sasl',
|
|
version='0.4.3',
|
|
description=description,
|
|
long_description=description,
|
|
url='https://github.com/cloudera/thrift_sasl',
|
|
install_requires=[
|
|
# Python 3 support was added to thrift in version 0.10.0.
|
|
"thrift>=0.10.0" if PY3 else "thrift>=0.9.3",
|
|
"pure-sasl>=0.6.2",
|
|
"six>=1.13.0"
|
|
],
|
|
packages=['thrift_sasl'],
|
|
keywords='thrift sasl transport',
|
|
license='Apache License, Version 2.0',
|
|
classifiers=[
|
|
'Programming Language :: Python :: 2',
|
|
'Programming Language :: Python :: 2.6',
|
|
'Programming Language :: Python :: 2.7',
|
|
'Programming Language :: Python :: 3',
|
|
'Programming Language :: Python :: 3.3',
|
|
'Programming Language :: Python :: 3.4',
|
|
'Programming Language :: Python :: 3.5',
|
|
'Programming Language :: Python :: 3.6',
|
|
'Programming Language :: Python :: 3.7',
|
|
'Programming Language :: Python :: 3.8',
|
|
'Programming Language :: Python :: 3.9']
|
|
)
|