Skip to content

Commit 574bc32

Browse files
committed
clean up
1 parent 5f855a2 commit 574bc32

File tree

3 files changed

+10
-20
lines changed

3 files changed

+10
-20
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,6 @@ deploy:
8585
acl: public_read
8686
on:
8787
repo: rusty1s/pytorch_cluster
88-
tags: true
88+
condition: $TRAVIS_TAG != "" || $TRAVIS_COMMIT_MESSAGE =~ ci-deploy
8989
notifications:
9090
email: false

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def get_extensions():
6363

6464
setup(
6565
name='torch_cluster',
66-
version='1.5.3',
66+
version='1.5.4',
6767
author='Matthias Fey',
6868
author_email='[email protected]',
6969
url='https://github.com/rusty1s/pytorch_cluster',

torch_cluster/__init__.py

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,14 @@
33

44
import torch
55

6-
__version__ = '1.5.3'
7-
expected_torch_version = (1, 4)
8-
9-
try:
10-
for library in [
11-
'_version', '_grid', '_graclus', '_fps', '_rw', '_sampler',
12-
'_nearest', '_knn', '_radius'
13-
]:
14-
torch.ops.load_library(importlib.machinery.PathFinder().find_spec(
15-
library, [osp.dirname(__file__)]).origin)
16-
except OSError as e:
17-
major, minor = [int(x) for x in torch.__version__.split('.')[:2]]
18-
t_major, t_minor = expected_torch_version
19-
if major != t_major or (major == t_major and minor != t_minor):
20-
raise RuntimeError(
21-
f'Expected PyTorch version {t_major}.{t_minor} but found '
22-
f'version {major}.{minor}.')
23-
raise OSError(e)
6+
__version__ = '1.5.4'
7+
8+
for library in [
9+
'_version', '_grid', '_graclus', '_fps', '_rw', '_sampler', '_nearest',
10+
'_knn', '_radius'
11+
]:
12+
torch.ops.load_library(importlib.machinery.PathFinder().find_spec(
13+
library, [osp.dirname(__file__)]).origin)
2414

2515
if torch.version.cuda is not None: # pragma: no cover
2616
cuda_version = torch.ops.torch_cluster.cuda_version()

0 commit comments

Comments
 (0)