Commit 574bc32f authored by rusty1s's avatar rusty1s
Browse files

clean up

parent 5f855a28
...@@ -85,6 +85,6 @@ deploy: ...@@ -85,6 +85,6 @@ deploy:
acl: public_read acl: public_read
on: on:
repo: rusty1s/pytorch_cluster repo: rusty1s/pytorch_cluster
tags: true condition: $TRAVIS_TAG != "" || $TRAVIS_COMMIT_MESSAGE =~ ci-deploy
notifications: notifications:
email: false email: false
...@@ -63,7 +63,7 @@ tests_require = ['pytest', 'pytest-cov'] ...@@ -63,7 +63,7 @@ tests_require = ['pytest', 'pytest-cov']
setup( setup(
name='torch_cluster', name='torch_cluster',
version='1.5.3', version='1.5.4',
author='Matthias Fey', author='Matthias Fey',
author_email='matthias.fey@tu-dortmund.de', author_email='matthias.fey@tu-dortmund.de',
url='https://github.com/rusty1s/pytorch_cluster', url='https://github.com/rusty1s/pytorch_cluster',
......
...@@ -3,24 +3,14 @@ import os.path as osp ...@@ -3,24 +3,14 @@ import os.path as osp
import torch import torch
__version__ = '1.5.3' __version__ = '1.5.4'
expected_torch_version = (1, 4)
for library in [
try: '_version', '_grid', '_graclus', '_fps', '_rw', '_sampler', '_nearest',
for library in [ '_knn', '_radius'
'_version', '_grid', '_graclus', '_fps', '_rw', '_sampler', ]:
'_nearest', '_knn', '_radius' torch.ops.load_library(importlib.machinery.PathFinder().find_spec(
]: library, [osp.dirname(__file__)]).origin)
torch.ops.load_library(importlib.machinery.PathFinder().find_spec(
library, [osp.dirname(__file__)]).origin)
except OSError as e:
major, minor = [int(x) for x in torch.__version__.split('.')[:2]]
t_major, t_minor = expected_torch_version
if major != t_major or (major == t_major and minor != t_minor):
raise RuntimeError(
f'Expected PyTorch version {t_major}.{t_minor} but found '
f'version {major}.{minor}.')
raise OSError(e)
if torch.version.cuda is not None: # pragma: no cover if torch.version.cuda is not None: # pragma: no cover
cuda_version = torch.ops.torch_cluster.cuda_version() cuda_version = torch.ops.torch_cluster.cuda_version()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment