Skip to content

Commit

Permalink
run conda index CONDA_BLD_PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimergp committed Nov 18, 2024
1 parent 6e356de commit ef604d5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .scripts/run_osx_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ set -e

# make sure there is a package directory so that artifact publishing works
mkdir -p "${CONDA_BLD_PATH}/osx-64/" "${CONDA_BLD_PATH}/osx-arm64/" "${CONDA_BLD_PATH}/noarch/"
# Make sure CONDA_BLD_PATH is a valid channel; only do it if noarch/repodata.json doesn't exist
# to save some time running locally
test -f "${CONDA_BLD_PATH}/noarch/repodata.json" || conda index "${CONDA_BLD_PATH}"

# Find the recipes from upstream:main in this PR and remove them.
echo ""
Expand All @@ -78,7 +81,7 @@ if [ "${CI:-}" != "" ]; then
git fetch --force origin main:main
fi
shopt -s extglob dotglob
git ls-tree --name-only main -- !(example|example-v1) | xargs -I {} sh -c "rm -rf {} && echo Removing recipe: {}"
# git ls-tree --name-only main -- !(example|example-v1) | xargs -I {} sh -c "rm -rf {} && echo Removing recipe: {}"
shopt -u extglob dotglob
popd > /dev/null
echo ""
Expand Down
3 changes: 3 additions & 0 deletions .scripts/run_win_build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ cd ..
if not exist "%CONDA_BLD_PATH%\win-64\" mkdir "%CONDA_BLD_PATH%\win-64\"
if not exist "%CONDA_BLD_PATH%\win-arm64\" mkdir "%CONDA_BLD_PATH%\win-arm64\"
if not exist "%CONDA_BLD_PATH%\noarch\" mkdir "%CONDA_BLD_PATH%\noarch\"
:: Make sure CONDA_BLD_PATH is a valid channel; only do it if noarch/repodata.json doesn't exist
:: to save some time running locally
if not exist "%CONDA_BLD_PATH%\noarch\repodata.json" conda index "%CONDA_BLD_PATH%"

echo Index %CONDA_BLD_PATH%
conda.exe index "%CONDA_BLD_PATH%"
Expand Down

0 comments on commit ef604d5

Please sign in to comment.