mirror of
https://github.com/pytorch/pytorch.git
synced 2025-11-01 22:14:53 +08:00
As in title
idk how the install_cmake script is used because I see it being called with 3.18 but when I look at the build jobs some say 3.18 and others 3.31
Just make everything install cmake via the requirements-ci.txt. I don't know if the comment at 5d36485b4a/.ci/docker/common/install_conda.sh (L78) still holds, but pretty much every build has CONDA_CMAKE set to true, so I'm just defaulting to installing through pip
Also defaulting to 4.0.0 everywhere except the executorch docker build because executorch reinstalls 3.31.something
Pull Request resolved: https://github.com/pytorch/pytorch/pull/152537
Approved by: https://github.com/cyyever, https://github.com/atalman, https://github.com/malfet
16 lines
557 B
Bash
16 lines
557 B
Bash
#!/bin/bash
|
|
set -ex
|
|
|
|
apt-get update
|
|
# Use deadsnakes in case we need an older python version
|
|
sudo add-apt-repository ppa:deadsnakes/ppa
|
|
apt-get install -y python${PYTHON_VERSION} python${PYTHON_VERSION}-dev python3-pip python${PYTHON_VERSION}-venv
|
|
|
|
# Use a venv because uv and some other package managers don't support --user install
|
|
ln -s /usr/bin/python${PYTHON_VERSION} /usr/bin/python
|
|
python -m venv /var/lib/jenkins/ci_env
|
|
source /var/lib/jenkins/ci_env/bin/activate
|
|
|
|
python -mpip install --upgrade pip
|
|
python -mpip install -r /opt/requirements-ci.txt
|