-
Notifications
You must be signed in to change notification settings - Fork 167
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
Improve standalone executable type detection and handling #864
Improve standalone executable type detection and handling #864
Conversation
exe_name, exe_version = None, None | ||
if sys.platform != "win32" and exe_name is not None and ( | ||
exe_name == "micromamba" or Version(exe_version) < Version("23.11.0") | ||
"Will assume it is compatible with shortcuts." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are missing the exception here, so the %s
placeholder above won't be filled in.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks for the refactor! There are a couple of minor issues that need to be fixed before merging, though.
Co-authored-by: jaimergp <[email protected]>
Description
This PR implements several improvements for how
constructor
detects and handles which kind of standalone (conda-standalone
,micromamba
, etc.) executable is used:identify_conda_exe
everywhere instead of using the file name.mamba
-type executables.Checklist - did you ...
news
directory (using the template) for the next release's release notes?