Skip to content

Commit

Permalink
Fix issue where retrieving menuinst version resulted in an error (#188)
Browse files Browse the repository at this point in the history
automerged PR by conda-forge/automerge-action
  • Loading branch information
github-actions[bot] committed Sep 24, 2024
2 parents f82789b + 778a5da commit 9ae2d28
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
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

0 comments on commit 9ae2d28

Please sign in to comment.