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

Fix issue where retrieving menuinst version resulted in an error #188

Merged
merged 2 commits into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ source:
- osx-zmq.patch

build:
number: 0
number: 1
skip: true # [osx and arm64 and py < 39]
entry_points:
- spyder = spyder.app.start:main
Expand Down
5 changes: 4 additions & 1 deletion recipe/post-link.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@ menu="${PREFIX}/Menu/spyder-menu.json"
if [[ -f "${PREFIX}/Menu/conda-based-app" ]]; then
# Installed in installer environment, abridge shortcut name
sed "${opts[@]}" "s/ \(\{\{ ENV_NAME \}\}\)//g" $menu

# Nothing more to do for conda-based-installers
exit
fi

# Do not create shortcut for menuinst version <2.1.2
menuinst_version=$($CONDA_PYTHON_EXE -c "import menuinst; print(menuinst.__version__)")
menuinst_version=$($CONDA_PYTHON_EXE -c "import menuinst; print(menuinst.__version__)" 2>/dev/null || echo "0.0.0")
if [[ "$menuinst_version" < "2.1.2" ]]; then
mv -f ${menu} ${menu}.bak
echo "Warning: Spyder shortcut will not be created." >> ${PREFIX}/.message.txt
Expand Down