[Git][ghc/ghc][wip/ci-docs] Try fetch sphinx
Matthew Pickering (@mpickering)
gitlab at gitlab.haskell.org
Tue Feb 27 11:13:49 UTC 2024
Matthew Pickering pushed to branch wip/ci-docs at Glasgow Haskell Compiler / GHC
Commits:
03ee59eb by Matthew Pickering at 2024-02-27T11:13:41+00:00
Try fetch sphinx
- - - - -
1 changed file:
- .gitlab/ci.sh
Changes:
=====================================
.gitlab/ci.sh
=====================================
@@ -150,7 +150,9 @@ function mingw_init() {
PATH="$MINGW_MOUNT_POINT/bin:$PATH"
# We always use mingw64 Python to avoid path length issues like #17483.
+ ls /mingw64/bin/
export PYTHON="/mingw64/bin/python3"
+ export PIP="/mingw64/bin/pip"
}
# This will contain GHC's local native toolchain
@@ -305,7 +307,7 @@ function fetch_cabal() {
fail "neither CABAL nor CABAL_INSTALL_VERSION are not set"
fi
- start_section "fetch GHC"
+ start_section "fetch cabal"
case "$(uname)" in
# N.B. Windows uses zip whereas all others use .tar.xz
MSYS_*|MINGW*)
@@ -332,7 +334,28 @@ function fetch_cabal() {
mv cabal "$toolchain/bin"
;;
esac
- end_section "fetch GHC"
+ end_section "fetch cabal"
+ fi
+}
+
+function fetch_sphinx() {
+ if [ ! -e "$CABAL" ]; then
+ local v="$CABAL_INSTALL_VERSION"
+ if [[ -z "$v" ]]; then
+ fail "neither CABAL nor CABAL_INSTALL_VERSION are not set"
+ fi
+
+ start_section "fetch sphinx"
+ case "$(uname)" in
+ # N.B. Windows uses zip whereas all others use .tar.xz
+ MSYS_*|MINGW*)
+ $PYTHON -m venv $toolchain/.venv-sphinx
+ source $toolchain/.venv-sphinx/activate
+ $PIP install -U sphinx
+ deactivate
+ ;;
+ esac
+ end_section "fetch sphinx"
fi
}
@@ -342,6 +365,7 @@ function fetch_cabal() {
function setup_toolchain() {
fetch_ghc
fetch_cabal
+ fetch_sphinx
cabal_update
local cabal_install="$CABAL v2-install \
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/03ee59ebe84c4a2555dd39e2f47fa873d8d74499
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/03ee59ebe84c4a2555dd39e2f47fa873d8d74499
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20240227/488dcbf4/attachment-0001.html>
More information about the ghc-commits
mailing list