Skip to content

Commit a669090

Browse files
Handle missing torch better
1 parent 17d4f8a commit a669090

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
# Unreleased
22

3+
# 0.6.0
4+
5+
## Bug fix
6+
- Require pytorch implicitely and log nice message when missing
7+
38
# 0.5.3
49

510
## Update
611
- ball query returns squared distance instead of distance
712
- leaner Point Cloud struct that avoids copying data
813

914
## Bug fix
10-
- Pcakage would not install if pytorch is not already installed
15+
- Package would not install if pytorch is not already installed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ exclude = '''
2525
'''
2626

2727
[build-system]
28-
requires = ["setuptools>=41.0", "setuptools-scm", "wheel", "torch"]
28+
requires = ["setuptools>=41.0", "setuptools-scm", "wheel"]
2929
build-backend = "setuptools.build_meta"

setup.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
from setuptools import setup, find_packages
2-
import torch
2+
3+
try:
4+
import torch
5+
except:
6+
raise ImportError("Please install pytorch before installing torch-points-kernels")
7+
38
from torch.utils.cpp_extension import (
49
BuildExtension,
510
CUDAExtension,
@@ -48,7 +53,7 @@
4853
requirements = ["torch>=1.1.0"]
4954

5055
url = 'https://github.com/nicolas-chaulet/torch-points-kernels'
51-
__version__="0.5.3"
56+
__version__="0.6.0"
5257
setup(
5358
name="torch-points-kernels",
5459
version=__version__,

0 commit comments

Comments
 (0)