X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=flatland.git;a=blobdiff_plain;f=build.py;h=307820907319245d5ee75aba26d5fbfc2bf07156;hp=9f03c379e8d8397a460cf10d6e1fd281a0cc0a98;hb=924ef5308c54784d2c0a9bbd282e55a16efbf318;hpb=4aed0ce274b7c0e379651c28e439375c821c047a diff --git a/build.py b/build.py index 9f03c37..3078209 100755 --- a/build.py +++ b/build.py @@ -1,4 +1,25 @@ -#!/usr/bin/env python-for-pytorch +#!/usr/bin/env python + +# +# flatland is a simple 2d physical simulator +# +# Copyright (c) 2016 Idiap Research Institute, http://www.idiap.ch/ +# Written by Francois Fleuret +# +# This file is part of flatland +# +# flatland is free software: you can redistribute it and/or modify it +# under the terms of the GNU General Public License version 3 as +# published by the Free Software Foundation. +# +# flatland is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with flatland. If not, see . +# import os from torch.utils.ffi import create_extension @@ -6,7 +27,7 @@ from torch.utils.ffi import create_extension abs_path = os.path.dirname(os.path.abspath(__file__)) ffi = create_extension( - '_ext.flatland', + 'flatland', headers = [ 'flatland.h' ], sources = [ 'flatland.c' ], extra_objects = [ abs_path + '/flatland_generator.so' ],