File tree Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,23 @@ function _pip_install() {
3737 echo " Installing $2 using pip... done."
3838}
3939
40+ # Try to use the binaries in the toolchain if available.
41+ if [ -n " ${CI} " ]; then
42+ export PATH
43+ case " ${OSTYPE:? } " in
44+ cygwin)
45+ PATH=" /cygdrive/c/Python/Current:${PATH:- } "
46+ ;;
47+ darwin* )
48+ PATH=" /Library/Frameworks/Python.Framework/Versions/Current/bin:${PATH:- } "
49+ ;;
50+ * )
51+ PATH=" /opt/python/Current/bin:${PATH:- } "
52+ ;;
53+ esac
54+ fi
55+ fi
56+
4057
4158# Ensure just is installed.
4259if ! command -v just > /dev/null 2>&1 ; then
@@ -53,8 +70,8 @@ if ! command -v just >/dev/null 2>&1; then
5370 echo " Installing just... done."
5471fi
5572
56- # Install uv.
57- if ! command -v uv > /dev/null 2>&1 ; then
73+ # Fall back to installing uv.
74+ if [ ! command -v uv > /dev/null 2>&1 ] ; then
5875 echo " Installing uv..."
5976 # On most systems we can install directly.
6077 curl -LsSf https://astral.sh/uv/install.sh | env UV_INSTALL_DIR=" $_BIN_DIR " INSTALLER_NO_MODIFY_PATH=1 sh || {
You can’t perform that action at this time.
0 commit comments