1 #!/usr/bin/env python-for-pytorch
4 from torch.utils.ffi import create_extension
6 this_file = os.path.dirname(__file__)
8 print('__file__', __file__)
10 ffi = create_extension(
12 headers = [ 'flatland.h' ],
13 sources = [ 'flatland.c' ],
14 extra_objects = [ '/home/fleuret/sources/python/flatland/flatland_generator.so' ],
18 relative_to=this_file,
22 if __name__ == '__main__':