-
Notifications
You must be signed in to change notification settings - Fork 23
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
Prepare menuinst for multiplatform support #8
Conversation
Thanks @jaimergp, this looks very promising. Two suggestions to consider:
|
Thanks Eric! I'll add in your suggestions!
This would concern only the |
@conda/conda-core this is ready for review, I'd say! |
I think this is great! Thanks for the effort & reviving menuinst. I am excited about macOS and Linux support. |
@chenghlee I remember you mentioned some team at Anaconda was also looking into this. Can you let them know about this CEP and maybe share feedback? Thanks! |
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.
@jaimergp all looks good but I don't really have any skin in the game here. Just happy to see a feature that is loved by many revitalized.
Yes, I think so! |
A comment related to #8 (comment): if I understand correctly - using menu items in packages requires the recipe not to be noarch, because selectors are necessary to tell conda-build where to take the file to include in the package. If there was a single file instead of one for each platform, then this would be simplified and this requirement will not be necessary. |
Question: How to do cross-platform activation?
However, this is not true activation at all. No post-activation scripts are executed, for example. I was thinking of moving We can also expose this in the Thoughts? Maybe I am overthinking this, but the whole bootstrapping issue is hard to reason about 😬 |
Sorry, I can't help on this, but I would be interested in the answer! On a slightly different topic and maybe this is out of the scope of this CEP: is it worth adding an option to define if the menu shortcut is for all users or single user only? This could useful for example to address mamba-org/mamba#923. |
@jaimergp is it feasible to create launch scripts (like python entrypoints)? That could hard code the activation for a given command. E.g. the output of Then the script could look like: menuinst-napari.sh
? |
We would need to rewrite all these scripts for every modification of hte environment to take any additional post-activation scripts into account. |
Or we write the equivalent bash / zsh function to call all activation scripts ... |
On MacOS we are using bash scripts to launch the programs, so we can add as much logic as needed. We didn't need that yet because we were relying on Basically, I'd like to be able to source or include shell code to initialize the environment before the requested command is run. Whether the code comes from a file ad-hoc we create on the environment or we inject it in the shortcut file is more of an implementation detail. On Windows, there's no script file or shell. The shortcut will run that command directly (I don't know the exact mechanism). We pseudoactivate with If we want to undo that requirement, we could use a |
I think that should depend on the installation we are creating a shortcut for. I think there are |
This is looking great @jaimergp ! 🥳 thanks for working on this. What would be the next steps to get this moving forward? Cheers! |
I just read the bylaws and it sounds like you can start having a vote on the CEP:
https://github.com/conda-incubator/governance However, I am unsure which the mentioned |
For the record, I plan to call a vote for this in two weeks (next conda community call), so if you have any comments before the vote, this is the time. Thanks! 🙏 |
@conda-incubator/steering, I would like to call a vote for this CEP. This vote falls under the "Enhancement Proposal Approval" policy of the conda governance policy, It needs 60% of the Steering Council to vote To vote, please leave If you have questions concerning the proposal, you may also leave a comment or code review. This vote will end on August 3rd, 2023 End of Day, Anywhere on Earth (AoE). |
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.
yes
yes |
1 similar comment
yes |
yes |
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.
Yes
yes |
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.
Yes
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.
Yes
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.
Yes
Yes |
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.
yes
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.
Yes
(guessing the filename will be updated with the CEP #)
Hello team! The vote concluded last week on Aug 3rd at 23:59 AOE (Aug 4th 11:59 UTC). I have now reviewed the votes and these are the results:
-- I will now update the PR to reflect the status and mint a CEP number. Since the vote for this PR was started earlier than #51, this has priority, and will be minted the number 10. |
Ah wait, this is number 11. CEP 10 already exists but the ordering is messed up in repo list. We need some padding 0s I guess :P |
Standardizing the changes added in
menuinst@cep-devel
for other implementations.Please refer to the rendered version of the proposal to read comfortably :D