-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
49 lines (44 loc) · 1.19 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
from setuptools import setup, find_packages
from distutils.extension import Extension
from Cython.Build import cythonize
from torch.utils.cpp_extension import BuildExtension
import numpy
# Get the numpy include directory.
numpy_include_dir = numpy.get_include()
triangle_hash_module = Extension(
'libmesh.triangle_hash',
sources=[
'libmesh/triangle_hash.pyx'
],
libraries=['m'], # Unix-like specific
include_dirs=[numpy_include_dir]
)
## Gather all extension modules
ext_modules = [triangle_hash_module]
setup(
ext_modules=cythonize(ext_modules),
# ext_modules=cythonize([
# 'libmesh/triangle_hash.pyx',
# ]),
# packages=find_packages(),
cmdclass={
'build_ext': BuildExtension
},
# name = 'libmesh',
# version = '0.1.0',
# author = 'ConvONet'
name='dsrb',
# packages=find_packages(include=['dsrb']),
packages=find_packages(),
version='0.1.0',
description='dsr-benchmark',
author='Raphael Sulzer',
)
# setup(
# name='dsrb',
# # packages=find_packages(include=['dsrb']),
# packages=find_packages(),
# version='0.1.0',
# description='dsr-benchmark',
# author='Raphael Sulzer',
# )