-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
PR: Update to napari/label/bundle_tools_3
(Installers)
#21125
Conversation
4b2fcb3
to
b79daf9
Compare
napari/label/bundle_tools_3
(Installers)
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.
A couple of comments for you @mrclary, the rest looks good to me.
Actually, I'm going to verify some other issues with all-user installation for Linux; converting back to draft. |
@ccordoba12, thanks for your previous review; I've made the suggested correction. Additionally, when installing for all users, each user's shell startup will have the Spyder launch alias. The uninstall alias is only included for user-only install. |
@mrclary, looks good to me now, but I'd like to ask you if you have tested the admin install in a VM. I'd like to help you with that but I don't want to mess with my system. |
Yes, I've tested the admin install on my Ubuntu VM. I added a test user as well and confirmed that the Spyder alias is properly created and Spyder launches for all accounts. Note that Ping @jaimergp. |
@ccordoba12, I've removed the uninstall Spyder alias from shell startup for admin installs because it requires sudo privileges and when invoking sudo the alias isn't recognized anyway. Should the uninstall Spyder alias be added to |
Ok, great!
I think that the default directory should be
Ok, no problem. Then I recommend to show a message saying that system admins need to remove the directory where Spyder was installed plus the desktop file to uninstall it.
That probably won't work and the alternatives don't seem promising. I think adding a proper script in |
Agreed. That part should be replaced by telling users to open a new terminal and start Spyder there. |
@ccordoba12 here is the new message for admin install on Linux.
|
f767729
to
ba9fe93
Compare
Looks good to me now, 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.
A couple of additional comments/suggestions, then this should be ready.
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.
Last suggestions to prevent overwriting the Spyder desktop file installed by the Linux distro package manager.
@mrclary Sorry to butt in, but I think it looks more professional to say "distributions" in full instead of "distros". |
…_3 channel. For some reason, conda is taken from conda-forge instead of bundle_tools_3 and setup-micromamba does not provide option to set strict channel priority, so must explicitly use channel for each package.
…-user install on Linux. Do not alias uninstall script for all-user installation. Use same sed command options for macOS and Linux
Note that pkill won't close Spyder on macOS; it will terminate Spyder.app/Contents/MacOS/spyder process but not the application. osascript must be used. Also note that if the IPython interpreter is "same as spyder" then osascript will close the kernel (it thinks it is Spyder.app) and not the application. This may be fixed by resolving sys.executable in KernelSpec.
Co-authored-by: Carlos Cordoba <ccordoba12@gmail.com> Co-authored-by: Jitse Niesen <jitseniesen@yahoo.com>
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 to me now, thanks @mrclary!
@ccordoba12 @jitseniesen @jaimergp, thanks for all your feedback! |
This PR updates the cond-based installer tools to the latest
napari/label/bundle_tools_3
, which include several updates toconstructor
andmenuinst
.Additionally:
app_user_model_id
to shortcut definition for Windowssh
type installer for macOS.nonadmin
with updatedmenuinst