Skip to content

Commit 17d4f8a

Browse files
Merge pull request #29 from nicolas-chaulet/fixinstall
Fix installing torch points kernels with latest pip
2 parents 68bf9b9 + 5ea08f6 commit 17d4f8a

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

CHANGELOG.md

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

3+
# 0.5.3
4+
5+
## Update
36
- ball query returns squared distance instead of distance
47
- leaner Point Cloud struct that avoids copying data
8+
9+
## Bug fix
10+
- Pcakage would not install if pytorch is not already installed

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
include README.md
22
include LICENSE
3+
include CHANGELOG.md
4+
include pyproject.toml
35

46
recursive-exclude test *
57
recursive-include cpu *

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"]
28+
requires = ["setuptools>=41.0", "setuptools-scm", "wheel", "torch"]
2929
build-backend = "setuptools.build_meta"

setup.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
TORCH_MAJOR = int(torch.__version__.split(".")[0])
1717
TORCH_MINOR = int(torch.__version__.split(".")[1])
18-
extra_compile_args = []
18+
extra_compile_args = ["-O3"]
1919
if (TORCH_MAJOR > 1) or (TORCH_MAJOR == 1 and TORCH_MINOR > 2):
2020
extra_compile_args += ["-DVERSION_GE_1_3"]
2121

@@ -48,7 +48,7 @@
4848
requirements = ["torch>=1.1.0"]
4949

5050
url = 'https://github.com/nicolas-chaulet/torch-points-kernels'
51-
__version__="0.5.2"
51+
__version__="0.5.3"
5252
setup(
5353
name="torch-points-kernels",
5454
version=__version__,
@@ -60,5 +60,9 @@
6060
ext_modules=ext_modules,
6161
cmdclass={"build_ext": BuildExtension},
6262
long_description=long_description,
63-
long_description_content_type='text/markdown'
63+
long_description_content_type='text/markdown',
64+
classifiers=[
65+
"Programming Language :: Python :: 3",
66+
"License :: OSI Approved :: MIT License",
67+
],
6468
)

0 commit comments

Comments
 (0)