Skip to content

Commit

Permalink
Fix build script compatibility with Pytorch v1.5+
Browse files Browse the repository at this point in the history
  • Loading branch information
ducksoup authored Nov 5, 2020
1 parent 574e89a commit 3d10aea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import setuptools
from torch.utils.cpp_extension import BuildExtension, CUDAExtension

here = path.abspath(path.dirname(__file__))


def find_sources(root_dir):
sources = []
Expand All @@ -22,12 +24,10 @@ def make_extension(name, package):
"cxx": ["-O3"],
"nvcc": ["--expt-extended-lambda"],
},
include_dirs=["include/"],
include_dirs=[path.join(here, "include")],
)


here = path.abspath(path.dirname(__file__))

with open(path.join(here, "README.md"), encoding="utf-8") as f:
long_description = f.read()

Expand Down

0 comments on commit 3d10aea

Please sign in to comment.