|
8 | 8 | ) |
9 | 9 | import glob |
10 | 10 |
|
| 11 | +from os import path |
| 12 | +this_directory = path.abspath(path.dirname(__file__)) |
| 13 | +with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f: |
| 14 | + long_description = f.read() |
| 15 | + |
11 | 16 | TORCH_MAJOR = int(torch.__version__.split(".")[0]) |
12 | 17 | TORCH_MINOR = int(torch.__version__.split(".")[1]) |
13 | 18 | extra_compile_args = [] |
|
21 | 26 | if CUDA_HOME: |
22 | 27 | ext_modules.append( |
23 | 28 | CUDAExtension( |
24 | | - name="torch_points.points_cuda", |
| 29 | + name="torch_points_kernels.points_cuda", |
25 | 30 | sources=ext_sources, |
26 | 31 | include_dirs=["{}/include".format(ext_src_root)], |
27 | 32 | extra_compile_args={"cxx": extra_compile_args, "nvcc": extra_compile_args,}, |
|
33 | 38 |
|
34 | 39 | ext_modules.append( |
35 | 40 | CppExtension( |
36 | | - name="torch_points.points_cpu", |
| 41 | + name="torch_points_kernels.points_cpu", |
37 | 42 | sources=cpu_ext_sources, |
38 | 43 | include_dirs=["{}/include".format(cpu_ext_src_root)], |
39 | 44 | extra_compile_args={"cxx": extra_compile_args,}, |
|
42 | 47 |
|
43 | 48 | requirements = ["torch>=1.1.0"] |
44 | 49 |
|
| 50 | +url = 'https://github.com/nicolas-chaulet/torch-points-kernels' |
| 51 | +__version__="0.5.1" |
45 | 52 | setup( |
46 | | - name="torch_points", |
47 | | - version="0.4.1", |
| 53 | + name="torch-points-kernels", |
| 54 | + version=__version__, |
48 | 55 | author="Nicolas Chaulet", |
49 | 56 | packages=find_packages(), |
| 57 | + url=url, |
| 58 | + download_url='{}/archive/{}.tar.gz'.format(url, __version__), |
50 | 59 | install_requires=requirements, |
51 | 60 | ext_modules=ext_modules, |
52 | 61 | cmdclass={"build_ext": BuildExtension}, |
| 62 | + long_description=long_description, |
| 63 | + long_description_content_type='text/markdown' |
53 | 64 | ) |
0 commit comments