[ 
https://issues.apache.org/jira/browse/IMPALA-11849?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17678863#comment-17678863
 ] 

ASF subversion and git services commented on IMPALA-11849:
----------------------------------------------------------

Commit 1056e16a27c75d3bc8c645a75feb3ba5ece50ebc in impala's branch 
refs/heads/master from Gergely Fürnstáhl
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=1056e16a2 ]

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 <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>


> Improve python environment stability around impala_shell packaging
> ------------------------------------------------------------------
>
>                 Key: IMPALA-11849
>                 URL: https://issues.apache.org/jira/browse/IMPALA-11849
>             Project: IMPALA
>          Issue Type: Improvement
>            Reporter: Gergely Fürnstáhl
>            Priority: Major
>
> How do we use python in Impala currently:
>  * custom built python2 for ABI compatibility reasons to use by impala_shell
>  * During build, we test the installability of impala_shell package by:
>  ** Distributing by source to a tar.gz
>  ** Creating virtualenv using the custom built impala-virtualenv using the 
> system interpreter (/usr/bin/python*) both for python2 and python3
>  *** This automatically installs pip and setuptools, by default a version it 
> chooses.
>  *** This version of impala-virtualenv only support --no-pip and 
> --no-setuptools, a moderner version support --setuptools <version> too, both 
> could be used to fix the version of the packaging environment regardless of 
> the interpreters version (to an extent, they need to be compatible obviously)
>  ** Packaging it to a wheel
>  *** This uses an isolated build, where with modernising the packaging and 
> introducing pyproject.toml we could specify setuptools' version
>  ** Install it to the virtual env
>  *** This uses pip, with the possibility to fallback to setuptools legacy 
> method. 
>  * During impala-shell release, we probably do something similar, but need to 
> investigate it.
> Problems:
>  * We use 3 different pythons during the build, system python's version could 
> vary depending on the OS/image.
>  * pip and setuptools' version is chosen by the interpreter, which makes the 
> build not reproducible, a new release could break the install (IMPALA-11846)
>  * custom built python2 is not getting any younger/better
> Possibilities:
>  * Specify exact version of pip and setuptools used during build to make it 
> reproducible, specify setuptools version used for packaging impala_shell e.g. 
> by using a pyproject.toml
>  * Custom build python3 too, a newer version could make our tests running 
> faster too and drop dependency on system python.
>  * Test installing impala_shell with a more realistic BUILD_VERSION instead 
> of a hardcoded one.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to