Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade SCT's conda environment to Python 3.9 #4136

Merged
merged 3 commits into from Jun 26, 2023

Conversation

joshuacwnewton
Copy link
Member

@joshuacwnewton joshuacwnewton commented Jun 13, 2023

Description

This is a relatively straightforward PR that updates the SCT conda environment from Python 3.8 to Python 3.9. It contains typical updates the install scripts, and also fixes 1 blocker: pyqt5 only has Python 3.9 wheels for version 5.12.3.

I'm not sure when we want to merge this, as we have until October 2024 for the Python 3.8 EOL. But, I was thinking that, because we're releasing a new major version (SCT v6.0), and we're switching from system Python to conda installation for Windows (#4027), now might be a good time to bump the Python version, as another way of distinguishing between 5.X releases and 6.X releases.

Linked issues

Fixes #3367.

Previously, we allowed the range `pyqt==5.12-5.14`.

However, for some reason, Python 3.9 wheels don't exist for `5.13.*` or `5.14.*`, and they don't exist for `5.12.{0,1,2}`, but they *do* exist for `5.12.3`. I don't quite understand why this random older patch version of pyqt5 has Python 3.9 wheels?

Nonetheless, it seems like `pyqt==5.12.3` is the safest thing to standardize on for any Python 3.9-based releases.

Relevant links:

- Has 3.9 wheels:
  - https://pypi.org/project/PyQt5/5.12.3/#files
- Doesn't have 3.9 wheels:
  - https://pypi.org/project/PyQt5/5.12.2/#files
  - https://pypi.org/project/PyQt5/5.13.2/#files
  - https://pypi.org/project/PyQt5/5.14.2/#files
@joshuacwnewton joshuacwnewton added the installation category: install_sct or pip/setup.py label Jun 13, 2023
@joshuacwnewton joshuacwnewton added this to the 6.0 milestone Jun 13, 2023
@joshuacwnewton joshuacwnewton self-assigned this Jun 13, 2023
Copy link
Member

@mguaypaq mguaypaq left a comment

Choose a reason for hiding this comment

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

This looks fine to me. As you say, since SCT v6.0 will be using conda for all platforms, it makes sense to use that as an opportunity for upgrading to Python 3.9. It would be great to upgrade to Python 3.10 and 3.11 in the next few releases, too.

@joshuacwnewton joshuacwnewton merged commit 117e1cb into master Jun 26, 2023
24 checks passed
@joshuacwnewton joshuacwnewton deleted the jn/3367-support-python-3.9 branch June 26, 2023 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
installation category: install_sct or pip/setup.py
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for Python 3.9 by 2024-10-14
2 participants