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

PR: Change how Spyder determines if it is a conda-based app #21646

Closed
wants to merge 7 commits into from

Conversation

mrclary
Copy link
Contributor

@mrclary mrclary commented Dec 23, 2023

Description of Changes

  • Update to latest conda 23.11.0 and menuinst 2.0.2
  • The installer package post-install script now creates an empty file conda-based-app next to spyder-menu.json. is_conda_based_app checks for conda-based-app instead of spyder-menu.json. This is required since spyder-menu.json is will not be unique to our standalone installer.

Issue(s) Resolved

Partially addresses #21640

@mrclary mrclary self-assigned this Dec 23, 2023
@mrclary mrclary marked this pull request as draft December 23, 2023 04:48
@mrclary mrclary force-pushed the issue-21640-fix-update-1 branch from 4a7c266 to 4abb3b9 Compare December 23, 2023 04:58
@mrclary mrclary added this to the v6.0beta1 milestone Dec 23, 2023
@mrclary mrclary marked this pull request as ready for review December 23, 2023 06:22
@mrclary mrclary force-pushed the issue-21640-fix-update-1 branch 6 times, most recently from 1f12d10 to c597378 Compare December 30, 2023 07:42
Copy link
Member

@ccordoba12 ccordoba12 left a 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, thanks @mrclary!

@mrclary mrclary force-pushed the issue-21640-fix-update-1 branch 2 times, most recently from 492b0b9 to 323fdb0 Compare January 2, 2024 01:28
@mrclary mrclary force-pushed the issue-21640-fix-update-1 branch 8 times, most recently from 3a6cd04 to ebc9d79 Compare January 12, 2024 22:32
@mrclary mrclary force-pushed the issue-21640-fix-update-1 branch 2 times, most recently from 8e4ac76 to 3d08369 Compare January 17, 2024 21:29
Conda install of spyder package clobbers Menu/* and breaks the app.
Including Menu in standard conda package makes standard installs register as conda-based apps if checking for spyder-menu.json.
So the solution is to use a file that only the installer will create: conda-based-app in the Menu directory.
…t v2 support; remove bundle_tools_3 channel dependence.

Sometime between mamba=1.4.2 and mamba=1.5.6, mamba mambabuild generates error "ValueError: unrecognized 'args' object". This does not affect conda mambabuild.

Ensure correct versions of conda and menuinst are installed in base environment.

Now that all packages are in conda-forge, strict channel priority will continue to work but flexible doesn't hurt.
Generally, macOS uses BSD sed and Linux uses GNU sed. However, in some circumstances (CI macOS arm64) it appears that macOS may be using GNU instead of BSD. Therefore it is best to check sed directly for BSD/GNU rather than using the platform as a proxy.

Remove patch for old-style markers.
Add aliases to all shell init files in user mode.
Fixed issue where post-install script would prematurely exit when adding alias to shell init files.
Use menuinst to remove shortcut when uninstalling.
Show progress notifications (macOS)
@mrclary mrclary force-pushed the issue-21640-fix-update-1 branch from 3d08369 to f1ce092 Compare January 18, 2024 03:56
@ccordoba12
Copy link
Member

@mrclary, could you check why the Windows installer is not passing the test for it? That way we could merge this one.

@mrclary mrclary marked this pull request as draft January 19, 2024 17:14
@mrclary mrclary closed this Jan 19, 2024
@mrclary
Copy link
Contributor Author

mrclary commented Jan 19, 2024

Closed in favor of #21647

@mrclary mrclary deleted the issue-21640-fix-update-1 branch January 30, 2024 15:39
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.

2 participants