X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=pysvrt.git;a=blobdiff_plain;f=build.py;h=264d1a9cff4e32cb51fc97ffda88cdd189c6d9df;hp=da18d39aa8992d2028e0fd4844e03b69376c7081;hb=HEAD;hpb=99878e6cbf07b86b0e180c3eb5bee055c7444b73
diff --git a/build.py b/build.py
index da18d39..264d1a9 100755
--- a/build.py
+++ b/build.py
@@ -19,23 +19,19 @@
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
-# along with selector. If not, see .
+# along with svrt. If not, see .
-import os
+from os import path
from torch.utils.ffi import create_extension
-abs_path = os.path.dirname(os.path.abspath(__file__))
+abs_path = path.dirname(path.abspath(__file__))
ffi = create_extension(
'svrt',
headers = [ 'svrt.h' ],
sources = [ 'svrt.c' ],
extra_objects = [ abs_path + '/libsvrt.so' ],
- libraries = [ ],
- library_dirs = [ ],
- define_macros = [ ],
with_cuda = False
)
-if __name__ == '__main__':
- ffi.build()
+ffi.build()