Skip to content

Conversation

@boegel
Copy link
Member

@boegel boegel commented Dec 7, 2022

This makes EasyBuild print a big fat deprecation warning when it's being run with Python 2:

$ eb --version


!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!! Running EasyBuild with Python v2.x is deprecated, found Python v2.7.18.                     !!!
!!! Support for running EasyBuild with Python v2.x will be removed in EasyBuild v5.0.           !!!
!!!                                                                                             !!!
!!! It is strongly recommended to start using Python v3.x for running EasyBuild,                !!!
!!! see https://docs.easybuild.io/en/latest/Python-2-3-compatibility.html for more information. !!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

People can silence this warning at their own risk via the --silence-deprecation-warnings configuration setting, by using python2 as a value.

@boegel boegel added the change label Dec 7, 2022
@boegel boegel added this to the next release (4.7.0) milestone Dec 7, 2022
@easybuilders easybuilders deleted a comment from boegelbot Dec 7, 2022
Copy link
Member

@ocaisa ocaisa left a comment

Choose a reason for hiding this comment

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

LGTM

@ocaisa ocaisa enabled auto-merge December 7, 2022 16:35
@ocaisa ocaisa merged commit a304b66 into easybuilders:develop Dec 7, 2022
@boegel boegel deleted the depr_py2 branch December 8, 2022 13:23
@boegel boegel changed the title deprecate support for running EasyBuild with Python 2 print deprecation warning with running EasyBuild with Python 2 Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants