Skip to content

Conversation

@firewave
Copy link
Collaborator

@firewave firewave commented Jan 29, 2022

The user might not have the option to install another Python version unlike our CI. So we should use the version provided by the platform to make sure we can actually compile on it.

@firewave firewave force-pushed the py branch 2 times, most recently from cd42634 to dfb21f2 Compare February 11, 2022 15:28
@firewave firewave changed the title CI-unixish.yml: use Python version provided by platform use Python version provided by platform in CI / prefer python3 Feb 11, 2022
@firewave firewave marked this pull request as ready for review February 11, 2022 15:54
find_package(PythonInterp 3 QUIET)
if (NOT PYTHONINTERP_FOUND)
set(PYTHONINTERP_FOUND "")
find_package(PythonInterp 2.7 QUIET)
Copy link
Owner

Choose a reason for hiding this comment

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

feel free to drop support for python 2.7 in the match compiler. you can do it in a follow up PR.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Alright.

But I still think we should drop Python 2.7 as a whole and not just in parts. We still have holes in the CI matrix with that and I'd rather remove stuff from it than add more.

Copy link
Owner

Choose a reason for hiding this comment

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

I hope we can still find some CI-runner that has python 2.7. I also hope that it doesn't cost much to keep some user-scripts compatible with python 2.7 for a little while.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That's no problem at all. Ubuntu 18.04 and 20.04 both still have it. And we also get it via the GitHub Action plugin and use it in the scriptcheck job.

There's also plenty of docker images available.

@danmar danmar merged commit 04b2a6f into danmar:main Feb 11, 2022
@firewave firewave deleted the py branch February 11, 2022 18:46
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