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

run.command(): Change to shebang handling #2970

Draft
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

Lestropie
Copy link
Member

Revision to #2966 as described in comment.

If the command being run is an MRtrix3 executable (as established by the construction of that list at build time), and it is written in Python, then use the same Python interpreter as that currently executing. In any other circumstance, honour the shebang as specified in the command being invoked.

This is I think:

  • Simpler
  • Predictable
  • Leaves execution power in hands of any third party tools being invoked
  • Still won't cause weird Python version mismatch problems for any MRtrix3 executable code, whether invoked with the system default or any other interpreter.

Leaving as draft because I'll try to do some cross-checking on my Windows system first (and shouldn't be merged before #2859 revisions).

@Lestropie Lestropie added this to the 3.1.0 updates milestone Aug 19, 2024
@Lestropie Lestropie self-assigned this Aug 19, 2024
Copy link

clang-tidy review says "All clean, LGTM! 👍"

If the command being run is an MRtrix3 executable (as established by the construction of that list at build time), and it is written in Python, then use the same Python interpreter as that currently executing. In any other circumstance, honour the shebang as specified in the command being invoked.
@Lestropie Lestropie force-pushed the mrtrix3_run_shebang_alternative branch from 786a27b to 87a0e37 Compare September 5, 2024 00:28
Copy link

github-actions bot commented Sep 5, 2024

clang-tidy review says "All clean, LGTM! 👍"

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.

1 participant