mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
changed install_katex.sh to install_docs_reqs.sh, added install doxygen (#77907)
Fixes #77399 Increase CI stability by migrating a dependency to Docker to minimize risk of failure in installation. Installing doxygen in install_docs_reqs.sh instead of the cpp docs script. **Test Plan**: cpp docs build passes Pull Request resolved: https://github.com/pytorch/pytorch/pull/77907 Approved by: https://github.com/seemethere, https://github.com/janeyx99
This commit is contained in:
parent
f012152836
commit
2ac09cc6ce
|
|
@ -17,6 +17,8 @@ if [ -n "$KATEX" ]; then
|
|||
apt-get install -y --no-install-recommends yarn
|
||||
yarn global add katex --prefix /usr/local
|
||||
|
||||
sudo apt-get -y install doxygen
|
||||
|
||||
apt-get autoclean && apt-get clean
|
||||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
|
||||
|
|
@ -20,8 +20,8 @@ RUN bash ./install_user.sh && rm install_user.sh
|
|||
|
||||
# Install katex
|
||||
ARG KATEX
|
||||
ADD ./common/install_katex.sh install_katex.sh
|
||||
RUN bash ./install_katex.sh && rm install_katex.sh
|
||||
ADD ./common/install_docs_reqs.sh install_docs_reqs.sh
|
||||
RUN bash ./install_docs_reqs.sh && rm install_docs_reqs.sh
|
||||
|
||||
# Install conda and other packages (e.g., numpy, pytest)
|
||||
ENV PATH /opt/conda/bin:$PATH
|
||||
|
|
|
|||
|
|
@ -30,8 +30,8 @@ RUN bash ./install_user.sh && rm install_user.sh
|
|||
|
||||
# Install katex
|
||||
ARG KATEX
|
||||
ADD ./common/install_katex.sh install_katex.sh
|
||||
RUN bash ./install_katex.sh && rm install_katex.sh
|
||||
ADD ./common/install_docs_reqs.sh install_docs_reqs.sh
|
||||
RUN bash ./install_docs_reqs.sh && rm install_docs_reqs.sh
|
||||
|
||||
# Install conda and other packages (e.g., numpy, pytest)
|
||||
ENV PATH /opt/conda/bin:$PATH
|
||||
|
|
|
|||
|
|
@ -51,8 +51,6 @@ git clone https://github.com/pytorch/cppdocs
|
|||
|
||||
set -ex
|
||||
|
||||
sudo apt-get -y install doxygen
|
||||
|
||||
# Generate ATen files
|
||||
pushd "${pt_checkout}"
|
||||
pip install -r requirements.txt
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user