clessig / atmorep

AtmoRep model code
MIT License
43 stars 9 forks source link

target specific python version(s) #61

Open grassesi opened 1 week ago

grassesi commented 1 week ago

We should define a clear target for the python version to know what language features to use and have a solid base for our software stack.

Here are the python versions available in the JSC HPC softwarestack: Python Version language features released end full support EOL
3.9 2020 2022 2025
3.10 match/case statemants 2021 2023 2026
3.11 Strenum, self type 2022 2024 2027
3.12 per interpreter GIL, Type Parameter Syntax 2023 2025 2028

I would prefer python at least python >= 3.10 to have access to the powerful match statement and 3.9 will be EOL next year. Python >= 3.11 has inbuild support for Strenum which is nice for e.g. different configuration options.

Question 1: is there any possiblity to run Python >= 3.9 on BSC supercomputers ? If not we are probably stuck with python 3.9.

Question 2: What are the version constraints for the other HPC platforms (Atos, Leonardo) ?

clessig commented 1 week ago

We should switch to python >= 3.11. It's available on all target machines.

Can you add this requirement to the setup.py?

grassesi commented 1 day ago

sure :+1: