Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
szymonlopaciuk committed Apr 25, 2024
1 parent 7bd63d5 commit d0bc374
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/scripts/install_branches.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
set -xe

repos=(xobjects xdeps xpart xtrack xfields xmask xcoll xsuite-kernels)
prefix="${prefix:-.}"
xsuite_prefix="${xsuite_prefix:-.}"

# Expects the following environment variables:
# - $prefix, where to clone the packages
Expand All @@ -21,7 +21,7 @@ for project in "${repos[@]}"; do
user="${parts[0]}"
branch="${parts[1]}"

cd "$prefix"
cd "$xsuite_prefix"
git clone \
--recursive \
--single-branch -b "$branch" \
Expand All @@ -31,8 +31,8 @@ for project in "${repos[@]}"; do
if [ "${precompile_kernels:-false}" == "false" ]; then
echo export SKIP_KERNEL_BUILD=1
fi
echo pip install --no-deps -e "${prefix}/${project}"
pip install --no-deps -e "${xsuite_prefix}/${project}"
else
echo pip install -e "${prefix}/${project}[tests]"
pip install -e "${xsuite_prefix}/${project}[tests]"
fi
done

0 comments on commit d0bc374

Please sign in to comment.