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

Refactor Python interpreter/Julia executable discovery #129

Merged
merged 2 commits into from
Feb 19, 2024

Conversation

soininen
Copy link
Contributor

@soininen soininen commented Feb 19, 2024

This PR breaks resolve_python_interpreter() and resolve_julia_executable() functions into two: one returns the system's default executable (from PATH) and one that returns the executable from application settings (falling back to PATH, if not found).

This lays groundwork for further changes in Spine Toolbox and spine-items.

Re spine-tools/Spine-Toolbox#2446

Checklist before merging

  • Documentation (also in Toolbox repo) is up-to-date
  • Release notes in Toolbox repo have been updated
  • Unit tests have been added/updated accordingly
  • Code has been formatted by black
  • Unit tests pass

resolve_python_interpreter() has now been refactored into two functions:
resolve_current_python_interpreter() returns the current Python executable
while resolve_python_interpreter() returns returns the interpreter set in
application settings.

Re spine-tools/Spine-Toolbox#2446
resolve_julia_executable() has now been refactored into two functions:
resolve_default_julia_executable() returns the Julia executable from PATH
and resolve_julia_executable() returns returns the executable set in
application settings.

Re spine-tools/Spine-Toolbox#2446
@soininen soininen changed the title Refacton Python interpreter/Julia executable discovery Refactor Python interpreter/Julia executable discovery Feb 19, 2024
@soininen soininen merged commit d35bdc3 into 0.8-dev Feb 19, 2024
8 of 10 checks passed
@soininen soininen deleted the toolbox_2446_fix_global_interpreter_settings branch February 19, 2024 10:52
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.

1 participant