Skip to content

GH-16718 remove support for python 3.6 in CI#16721

Draft
valenad1 wants to merge 1 commit intorel-3.46.0from
valenad-GH-16718-remove-support-for-python-3-6-docker
Draft

GH-16718 remove support for python 3.6 in CI#16721
valenad1 wants to merge 1 commit intorel-3.46.0from
valenad-GH-16718-remove-support-for-python-3-6-docker

Conversation

@valenad1
Copy link
Collaborator

@valenad1 valenad1 requested a review from tomasfryda December 15, 2025 17:14
@valenad1 valenad1 force-pushed the valenad-GH-16718-remove-support-for-python-3-6-docker branch 2 times, most recently from 9827920 to 54e62e5 Compare December 15, 2025 17:18
Copy link
Contributor

@tomasfryda tomasfryda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also I think hadoop images use python 3.6:

File: ./hadoop/hdp/Dockerfile
   9  22 ARG PYTHON_VERSIONS='3.6'

File: ./hadoop/cdh/Dockerfile
  19  22 ARG PYTHON_VERSIONS='3.6'

I am not sure if we plan support hadoop in future but I would either first remove hadoop support and delete these files or ensure we're able to build these images without python 3.6.


echo "###### Installing pip for Python ${python_version} ######"
if [[ ${major} == "2" ]] || [[ ${python_version} == "3.5" ]] || [[ ${python_version} == "3.6" ]] || [[ ${python_version} == "3.7" ]]
if [[ ${major} == "2" ]] || [[ ${python_version} == "3.5" ]] || [[ ${python_version} == "3.7" ]]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I modify this in my PR since you have to use this method to get pip for 3.8 as well now. I'd be in favor of removing this change so there is no unnecessary conflict. Also I don't understand the reason of removing support for 3.6 but not 3.5 and 2.x.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, if you already cover it in your PR, then I can fully skip it.

@valenad1
Copy link
Collaborator Author

Also I think hadoop images use python 3.6:

File: ./hadoop/hdp/Dockerfile
   9  22 ARG PYTHON_VERSIONS='3.6'

File: ./hadoop/cdh/Dockerfile
  19  22 ARG PYTHON_VERSIONS='3.6'

I am not sure if we plan support hadoop in future but I would either first remove hadoop support and delete these files or ensure we're able to build these images without python 3.6.

Hadoop support is still open question. Nevertheless, we were not able to build those images in current setup. HDP support is dropped already.. CDP is not working. Those images need to be done from scratch tohether with dockerfiles.

@tomasfryda
Copy link
Contributor

Did you try to build all the images? I didn't see any recent build of the docker images that wouldn't be mine so I am wondering if you tested it somehow.

@valenad1
Copy link
Collaborator Author

Did you try to build all the images? I didn't see any recent build of the docker images that wouldn't be mine so I am wondering if you tested it somehow.

No, I am not planning to do it at all for 3.6 removal. Hadoop is out of scope, and regular images depends on your work, if you can fit this change in and rebuild it together with new R images and nothing breaks in 3.7+ we have a win. If not, then I wouldn't do it at all for python 3.6 removal, because I will run into it with Python 3.12 because the way how its implemented doesn't assure python packed versions and IMHO its pointless to do it for 3.6 removal.

@valenad1
Copy link
Collaborator Author

That's why its in different PR, we could

  • totally skip this and leave it to future python 3.12 support to deal with it and save your time and effort to deal with R

but

  • if you plan to rebuild, you can focus only on 3.7+ and maybe use this PR if it save you some time

Base automatically changed from valenad-GH-16718-remove-support-for-python-3-6 to rel-3.46.0 December 16, 2025 16:11
- Remove python-3.6-jdk-* build targets from docker/Makefile
- Remove Python 3.6 special build-from-source handling in install_python_version
- Update pip installation conditional to exclude Python 3.6
- Update test-requirements.txt
@valenad1 valenad1 force-pushed the valenad-GH-16718-remove-support-for-python-3-6-docker branch from 54e62e5 to 2e2ebbe Compare December 16, 2025 16:16
@valenad1 valenad1 marked this pull request as draft December 16, 2025 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants