mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
As node-12 EOLed long time ago and not available for Ubuntu-22.04 (Discovered while working on bionic deprecation). Remove artificial constraint on gcc-10 downgrade (and some in-pace patching) for Jammy, as CUDA-11.8+ works perfectly fine with gcc-11. <!-- copilot:poem --> ### <samp>🤖 Generated by Copilot at 6367120</samp> > _`nodejs` version_ > _upgraded for security_ > _autumn leaves fall fast_ Pull Request resolved: https://github.com/pytorch/pytorch/pull/106312 Approved by: https://github.com/DanilBaibak, https://github.com/albanD, https://github.com/atalman
26 lines
695 B
Bash
26 lines
695 B
Bash
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
if [ -n "$KATEX" ]; then
|
|
apt-get update
|
|
# Ignore error if gpg-agent doesn't exist (for Ubuntu 16.04)
|
|
apt-get install -y gpg-agent || :
|
|
|
|
curl --retry 3 -sL https://deb.nodesource.com/setup_16.x | sudo -E bash -
|
|
sudo apt-get install -y nodejs
|
|
|
|
curl --retry 3 -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
|
|
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
|
|
|
|
apt-get update
|
|
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/*
|
|
|
|
fi
|