-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21647 from mrclary/issue-21640-fix-update-2
PR: Update for new menuinst and friends and new Spyder feedstock
- Loading branch information
Showing
17 changed files
with
355 additions
and
273 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
#!/usr/bin/env bash | ||
|
||
# This script tests the installer for macOS and Linux on CI | ||
# and will only install for the local user. | ||
|
||
exit_status=0 | ||
|
||
install() { | ||
if [[ "$OSTYPE" == "darwin"* ]]; then | ||
# Stream install.log to stdout to view all log messages. | ||
tail -F /var/log/install.log & tail_id=$! | ||
trap "kill -s TERM $tail_id" EXIT | ||
|
||
installer -pkg $PKG_PATH -target CurrentUserHomeDirectory >/dev/null | ||
elif [[ "$OSTYPE" == "linux"* ]]; then | ||
$PKG_PATH -b | ||
fi | ||
} | ||
|
||
check_prefix() { | ||
if [[ "$OSTYPE" == "darwin"* ]]; then | ||
base_prefix=$(compgen -G $HOME/Library/spyder-*) | ||
elif [[ "$OSTYPE" == "linux"* ]]; then | ||
base_prefix=$(compgen -G $HOME/.local/spyder-*) | ||
fi | ||
|
||
if [[ -d "$base_prefix" ]]; then | ||
echo "\nContents of ${base_prefix}:" | ||
ls -al $base_prefix | ||
else | ||
echo "$base_prefix does not exist!" | ||
exit 1 | ||
fi | ||
} | ||
|
||
check_uninstall() { | ||
if [[ -e "${base_prefix}/uninstall-spyder.sh" ]]; then | ||
echo -e "\nContents of ${base_prefix}/uninstall-spyder.sh:" | ||
cat $base_prefix/uninstall-spyder.sh | ||
else | ||
echo "${base_prefix}/uninstall-spyder.sh does not exist!" | ||
exit_status=1 | ||
fi | ||
} | ||
|
||
check_shortcut() { | ||
pythonexe=${base_prefix}/bin/python | ||
menuinst=${base_prefix}/bin/menuinst_cli.py | ||
shortcut=$($pythonexe $menuinst shortcut --mode=user) | ||
if [[ -e "${shortcut}" ]]; then | ||
if [[ "$OSTYPE" == "darwin"* ]]; then | ||
echo "\n${shortcut}/Contents/MacOS contents:" | ||
ls -al "${shortcut}/Contents/MacOS" | ||
echo -e "\n$shortcut/Contents/Info.plist contents:" | ||
cat "${shortcut}/Contents/Info.plist" | ||
script=$(compgen -G "${shortcut}/Contents/MacOS/spyder"*-script) | ||
echo -e "\n${script} contents:" | ||
cat "${script}" | ||
elif [[ "$OSTYPE" == "linux"* ]]; then | ||
echo -e "\n${shortcut} contents:" | ||
cat $shortcut | ||
fi | ||
else | ||
echo "$shortcut does not exist" | ||
exit_status=1 | ||
fi | ||
} | ||
|
||
install | ||
echo "Install info:" | ||
check_prefix | ||
check_uninstall | ||
check_shortcut | ||
|
||
exit $exit_status |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
name: spy-inst | ||
channels: | ||
- napari/label/bundle_tools_3 | ||
- conda-forge | ||
dependencies: | ||
- boa | ||
- conda | ||
- conda-standalone | ||
- constructor | ||
- conda >=23.11.0 | ||
- conda-standalone >=23.11.0 | ||
- constructor >=3.6.0 | ||
- gitpython | ||
- menuinst | ||
- mamba | ||
- menuinst >=2.0.2 | ||
- ruamel.yaml.jinja2 | ||
- setuptools_scm |
Oops, something went wrong.