Laszlo Gaal has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/21800 )

Change subject: IMPALA-13223: Fix bootstrap-build.sh for platforms without 
Python2
......................................................................


Patch Set 5:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/21800/5//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/21800/5//COMMIT_MSG@24
PS5, Line 24: on Ubuntu 22.04 (does not support Python 2 any more).
> python-dev and python-setuptools still work for me on Ubuntu 22, I get a co
This is interesting; it may indeed have something to do with the upgrade.

I tried invoking python-dev-is-python2 on my Ubuntu 22 desktop, which was 
installed with Ubuntu 22.04 directly (booted with a USB stick):
- running `apt-cache search python-dev-is-python2` returns no results
- running `apt-get install python-dev-is-python2` returns an error:

laszlog@laszlog7:~$ sudo apt-cache search python-dev-is-python2
laszlog@laszlog7:~$ sudo apt-cache search python-dev-is-python3
python-dev-is-python3 - symlinks /usr/bin/python-config to python3-config

laszlog@laszlog7:~$ sudo apt-get install -y python-dev-is-python2
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package python-dev-is-python2 is not available, but is referred to by another 
package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  python-dev-is-python3

E: Package 'python-dev-is-python2' has no installation candidate

The original problem I'm trying to solve is migrating the precommit environment 
to Ubuntu 22.04. bootstrap_build.sh is used in 
https://jenkins.impala.io/view/Ubuntu%2022/job/ubuntu-22.04-build-only/, which 
uses an unconfigured Ubuntu 22.04 image from Canonical. In that environment 
Python 2 seems to be unavailable.

While it might be possible to make Python2 appear on Ubuntu 22.04, I think that 
moving to Python3 is better aligned with Impala's long-term goals of moving 
away from Python2 wherever possible.

I'll update the commit message to point out that the change aims to benefit the 
precommit environment; I don't think that bootstrap-build.sh is widely used 
anywhere else.



--
To view, visit http://gerrit.cloudera.org:8080/21800
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I94ade35395afded4e130b79eab8c27c6171b50d6
Gerrit-Change-Number: 21800
Gerrit-PatchSet: 5
Gerrit-Owner: Laszlo Gaal <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Laszlo Gaal <[email protected]>
Gerrit-Reviewer: Michael Smith <[email protected]>
Gerrit-Reviewer: Surya Hebbar <[email protected]>
Gerrit-Comment-Date: Wed, 02 Jul 2025 15:51:00 +0000
Gerrit-HasComments: Yes

Reply via email to