Skip to content

Commit

Permalink
Change torch version in pip build depending on the ci's version matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
RaulPPelaez committed Jun 29, 2023
1 parent cc307f2 commit f0f3bf0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,15 @@ jobs:
if: ${{ !matrix.enable_cuda }}
run: |
conda activate nnpops
sed -i -e '/"torch/c "torch==${{ matrix.pytorch }}",' pyproject.toml
pip -vvv wheel --wheel-dir=$(pwd) . --extra-index-url https://download.pytorch.org/whl/cpu
rm -rf build
- name: Pip build (with CUDA)
if: ${{ matrix.enable_cuda }}
run: |
conda activate nnpops
sed -i -e '/"torch/c "torch==${{ matrix.pytorch }}",' pyproject.toml
pip -vvv wheel --wheel-dir=$(pwd) .
rm -rf build
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ requires = [
"wheel",
"ninja",
"cmake>=3.23",
"torch>=2.0",
"GitPython"
]
build-backend = "setuptools.build_meta"
Expand Down

0 comments on commit f0f3bf0

Please sign in to comment.