mirror of
https://github.com/apache/impala.git
synced 2025-12-19 18:12:08 -05:00
IMPALA-11846: Fix builds with setuptools>=66.0.0
setuptools 66.0.0 introduced a breaking change, it does not support non PEP440 compliant version names. This breaks impala_shell's packaging and installing test if the system python3's version is 3.8+. This is a quick fix to unblock builds. The rest of the work will be done in IMPALA-11849 (e.g. stabilizing the python environments version). impala_shell releases should not be affected by this, as the version number we generate is already PEP440 compliant. Testing: - Built locally with python3.8 Change-Id: I4eb0957fb576e590b86b6fe570216cfb72d11aef Reviewed-on: http://gerrit.cloudera.org:8080/19431 Reviewed-by: Joe McDonnell <joemcdonnell@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
This commit is contained in:
committed by
Impala Public Jenkins
parent
ed59690b44
commit
1056e16a27
@@ -25,12 +25,15 @@ add_custom_target(shell_pypi_package DEPENDS shell_tarball
|
||||
|
||||
# A separate package target is needed because without OFFICIAL the file name is
|
||||
# non-deterministic. Uses a custom target to synchronize for multiple dependents.
|
||||
# Derive version from IMPALA_VERSION (drops everything after '-' because PEP 440 requires
|
||||
# '+' but setup.py doesn't treat it consistently when generating the file name).
|
||||
string(REGEX REPLACE "-.*" "" PKG_VERSION $ENV{IMPALA_VERSION})
|
||||
set(SHELL_TEST_PKG
|
||||
"${CMAKE_SOURCE_DIR}/shell/build/dist/impala_shell-install-test.tar.gz")
|
||||
"${CMAKE_SOURCE_DIR}/shell/build/dist/impala_shell-${PKG_VERSION}.tar.gz")
|
||||
get_filename_component(SHELL_TEST_PKG_DIR "${SHELL_TEST_PKG}" DIRECTORY)
|
||||
# Generates SHELL_TEST_PKG
|
||||
add_custom_target(shell_pypi_test_package DEPENDS shell_tarball
|
||||
COMMAND env BUILD_VERSION=install-test OFFICIAL=true DIST_DIR="${SHELL_TEST_PKG_DIR}"
|
||||
COMMAND env BUILD_VERSION=${PKG_VERSION} OFFICIAL=true DIST_DIR="${SHELL_TEST_PKG_DIR}"
|
||||
"${CMAKE_SOURCE_DIR}/shell/packaging/make_python_package.sh"
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user