From a375f59411f399653e507f544f00cb176abcca79 Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Thu, 15 Jun 2017 14:38:00 +0200 Subject: [PATCH] Renaming. --- Makefile | 4 ++-- build.py | 9 ++++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 166d6ff..fbe1353 100644 --- a/Makefile +++ b/Makefile @@ -35,10 +35,10 @@ all: flatland TAGS TAGS: *.cc *.h etags *.cc *.h -flatland: flatland_generator.so +flatland: libflatland.so ./build.py -flatland_generator.so: \ +libflatland.so: \ sequence_generator.o misc.o \ polygon.o universe.o \ canvas.o canvas_cairo.o diff --git a/build.py b/build.py index 3078209..b3c7b91 100755 --- a/build.py +++ b/build.py @@ -21,21 +21,20 @@ # along with flatland. 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( 'flatland', headers = [ 'flatland.h' ], sources = [ 'flatland.c' ], - extra_objects = [ abs_path + '/flatland_generator.so' ], + extra_objects = [ abs_path + '/libflatland.so' ], libraries = [ ], library_dirs = [ ], define_macros = [ ], with_cuda = False ) -if __name__ == '__main__': - ffi.build() +ffi.build() -- 2.39.5