From ef89666f78bc50ca955ab70bf883167f3cf1e1a0 Mon Sep 17 00:00:00 2001 From: wolearyc Date: Thu, 12 Sep 2024 15:21:22 -0700 Subject: [PATCH] platform_system->sys_platform --- .github/workflows/python-package.yml | 2 +- torch_requirements.txt | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index a1d0e78..bd5bcf1 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -29,7 +29,7 @@ jobs: pip install uv uv pip install ${{ matrix.uv-arg }} --system -r requirements.txt uv pip install ${{ matrix.uv-arg }} --system -r torch_requirements.txt --index-url https://download.pytorch.org/whl/cpu - uv pip install ${{ matrix.uv-arg }} --system -r torch_extra_requirements.txt -f https://data.pyg.org/whl/torch-2.4.0+cpu.html + uv pip install ${{ matrix.uv-arg }} --system -r torch_extra_requirements.txt -f https://data.pyg.org/whl/torch-2.4.1+cpu.html - name: Analyzing the code with pylint if: ${{ matrix.os != 'windows-latest' }} # Windows throws strange linting errors run: | diff --git a/torch_requirements.txt b/torch_requirements.txt index 5a5ba1f..0a84800 100644 --- a/torch_requirements.txt +++ b/torch_requirements.txt @@ -1,3 +1,3 @@ -torch==2.4.1;platform_system=="darwin" -torch==2.4.1+cpu;platform_system=="linux" -torch==2.4.1+cpu;platform_system=="Windows" +torch==2.4.1;sys_platform=="darwin" +torch==2.4.1+cpu;sys_platform=="linux" +torch==2.4.1+cpu;sys_platform=="Windows"