Skip to content

Commit

Permalink
fix pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
season0528 committed Jul 19, 2024
1 parent 691420f commit fdbfaf6
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@
import torch
from setuptools import find_packages, setup
from torch.__config__ import parallel_info
from torch.utils.cpp_extension import (CUDA_HOME, BuildExtension, CppExtension,
from torch.utils.cpp_extension import (BuildExtension, CppExtension,
CUDAExtension)

CUDA_HOME = os.environ.get("CUDA_HOME")
if not CUDA_HOME:
from torch.utils.cpp_extension import CUDA_HOME

__version__ = '2.1.2'
URL = 'https://github.com/rusty1s/pytorch_scatter'

CUDA_HOME = os.environ.get("CUDA_HOME", None)
WITH_CUDA = False
if torch.cuda.is_available():
WITH_CUDA = CUDA_HOME is not None or torch.version.hip
Expand Down Expand Up @@ -114,7 +117,11 @@ def get_extensions():


install_requires = ["torch>=1.8.0"]
extra_index_url = ["https://download.pytorch.org/whl/cpu"] if suffices == ["cpu"] else [f"https://download.pytorch.org/whl/cu{get_cuda_bare_metal_version(CUDA_HOME)}"]
extra_index_url = (
["https://download.pytorch.org/whl/cpu"]
if suffices == ["cpu"]
else [f"https://download.pytorch.org/whl/cu{get_cuda_bare_metal_version(CUDA_HOME)}"]
)

test_requires = [
'pytest',
Expand Down

0 comments on commit fdbfaf6

Please sign in to comment.