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

Put mamba under condabin/ too #251

Merged
merged 8 commits into from
Oct 30, 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
4 changes: 3 additions & 1 deletion recipe/build_mamba.bat
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,7 @@ if /I "%PKG_NAME%" == "mamba" (
cmake --build build-mamba/ --parallel %CPU_COUNT%
if errorlevel 1 exit 1
cmake --install build-mamba/

:: Install BAT hooks in condabin/
CALL "%LIBRARY_BIN%\mamba.exe" shell hook --shell cmd.exe "%PREFIX%"
if errorlevel 1 exit 1
)
3 changes: 3 additions & 0 deletions recipe/build_mamba.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,7 @@ elif [[ $PKG_NAME == "mamba" ]]; then
cmake --build build-mamba/ --parallel ${CPU_COUNT}
cmake --install build-mamba/

# Add symlink to condabin
mkdir -p "${PREFIX}/condabin"
ln -s "${PREFIX}/bin/mamba" "${PREFIX}/condabin/mamba"
fi
6 changes: 5 additions & 1 deletion recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ source:
sha256: 90e31a0aabc2422685628b23720fdfd4dd5b50827258afeab5500effe250f799

build:
number: 1
number: 2

outputs:
- name: libmamba
Expand Down Expand Up @@ -160,9 +160,13 @@ outputs:
test:
commands:
- test -f "${PREFIX}/bin/mamba" # [unix]
- test -f "${PREFIX}/condabin/mamba" # [unix]
- test -f "${PREFIX}/etc/profile.d/mamba.sh" # [unix]
- if not exist %LIBRARY_BIN%\mamba.exe (exit 1) # [win]
- if not exist %PREFIX%\condabin\mamba.bat (exit 1) # [win]
- mamba --help
- ${PREFIX}/condabin/mamba --help # [unix]
- CALL %PREFIX%/condabin/mamba.bat --help # [win]
- export MAMBA_ROOT_PREFIX="$(mktemp -d)" # [unix]
- mkdir %TEMP%\mamba # [win]
- set "MAMBA_ROOT_PREFIX=%TEMP%\mamba" # [win]
Expand Down