projects
/
pysvrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ahem.
[pysvrt.git]
/
build.py
diff --git
a/build.py
b/build.py
index
da18d39
..
264d1a9
100755
(executable)
--- 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
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
-# along with s
elector
. If not, see <http://www.gnu.org/licenses/>.
+# along with s
vrt
. If not, see <http://www.gnu.org/licenses/>.
-import os
+from os import path
from torch.utils.ffi import create_extension
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' ],
ffi = create_extension(
'svrt',
headers = [ 'svrt.h' ],
sources = [ 'svrt.c' ],
extra_objects = [ abs_path + '/libsvrt.so' ],
- libraries = [ ],
- library_dirs = [ ],
- define_macros = [ ],
with_cuda = False
)
with_cuda = False
)
-if __name__ == '__main__':
- ffi.build()
+ffi.build()