diff --git a/README.md b/README.md index 297e10d..8210ab4 100644 --- a/README.md +++ b/README.md @@ -106,6 +106,19 @@ python setup.py install cd ../.. # change into the root directory of the repository pip install -e . # install the rfdiffusion module from the root of the repository ``` +> **Note:** This environment uses Python 3.9, and no pip release that supports Python 3.9 includes the fix for the +> October 2026 emSign CA certificate incident (pip 26.2.2 requires Python 3.10 or newer). To avoid using a +> vulnerable pip, you can run the `pip install` commands above with [uv](https://docs.astral.sh/uv/) 0.13.4 or newer +> instead, inside the activated conda environment: +> ``` +> curl -LsSf https://astral.sh/uv/install.sh | sh # or `uv self update` if uv is already installed +> cd env/SE3Transformer +> uv pip install --no-cache -r requirements.txt +> uv pip install . +> cd ../.. +> uv pip install -e . +> ``` +> The `pip:` packages in `env/SE3nv.yml` are still installed by conda's pip during `conda env create`. Anytime you run diffusion you should be sure to activate this conda environment by running the following command: ``` conda activate SE3nv diff --git a/docker/Dockerfile b/docker/Dockerfile index 8364cb1..24e9f82 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -19,18 +19,23 @@ FROM nvcr.io/nvidia/cuda:11.6.2-cudnn8-runtime-ubuntu20.04 +# Install packages with uv rather than pip: no pip release that supports Python 3.9 +# includes the fix for the October 2026 emSign CA incident. uv 0.13.4+ does. +COPY --from=ghcr.io/astral-sh/uv:0.13.6 /uv /uvx /bin/ + COPY . /app/RFdiffusion/ -RUN apt-get -q update \ +RUN apt-get -q update \ && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \ + ca-certificates \ git \ python3.9 \ - python3-pip \ - && python3.9 -m pip install -q -U --no-cache-dir pip \ && rm -rf /var/lib/apt/lists/* \ && apt-get autoremove -y \ && apt-get clean \ - && pip install -q --no-cache-dir \ + && uv pip install --system --python python3.9 -q --no-cache \ + 'numpy<2' \ + 'certifi>=2026.10.19' \ dgl==1.0.2+cu116 -f https://data.dgl.ai/wheels/cu116/repo.html \ torch==1.12.1+cu116 --extra-index-url https://download.pytorch.org/whl/cu116 \ e3nn==0.3.3 \ @@ -41,7 +46,7 @@ RUN apt-get -q update \ hydra-core==1.3.2 \ pyrsistent==0.19.3 \ /app/RFdiffusion/env/SE3Transformer \ - && pip install --no-cache-dir /app/RFdiffusion --no-deps + && uv pip install --system --python python3.9 --no-cache --no-deps /app/RFdiffusion WORKDIR /app/RFdiffusion diff --git a/env/SE3nv.yml b/env/SE3nv.yml index a51bcce..32a2986 100644 --- a/env/SE3nv.yml +++ b/env/SE3nv.yml @@ -16,3 +16,4 @@ dependencies: - pip: - hydra-core - pyrsistent + - certifi>=2026.10.19 # emSign CA incident, October 2026