Skip to content

Update Python installation #1145

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

Merged
merged 5 commits into from
Aug 1, 2024

Conversation

maximemulder
Copy link
Contributor

@maximemulder maximemulder commented Jul 31, 2024

As discussed in #1117 (comment), I believe we should update our Python installation. This PR does that, with a few other improvements to our Python environment.

The Python version used in this PR is Python 3.11, which is a relatively recent stable Python version and is likely the best target imo:

  • 3.9 and 3.12 require to add APT repositories
  • 3.10 also works but is less recent

More precisely, I did not reinstall a full LORIS-MRI instance during my testing, but I did test the PR changes on my Ubuntu 22 dev VM and Debian 12, by doing the following :

  • Install the specific Python version and its dependencies.
  • Create our virtual environment.
  • Install our package requirements in the environment.

Another change made in this PR is that it installs a fixed Python version, which is not the case in our current setup (for instance, I had Python 3.10 installed on my dev VM although we use 3.8 in our testing).

I advise to ignore whitespace for reviewing (trailing spaces removed with autoformatting).

Caveat for existing projects

Need to upgrade python to 3.11 or 3.12 when upgrading LORIS-MRI

@maximemulder maximemulder requested a review from cmadjar July 31, 2024 17:47
@maximemulder
Copy link
Contributor Author

Ok I thought the PR was done, but then I made changes, but now I think it is done for real.

Copy link
Collaborator

@cmadjar cmadjar left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you @maximemulder

@cmadjar cmadjar merged commit 22090a3 into aces:main Aug 1, 2024
1 check passed
@cmadjar cmadjar added this to the 27.0 milestone Aug 30, 2024
@cmadjar cmadjar added this to the 27.0 milestone Apr 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants