21
21
"past" ,
22
22
]
23
23
24
- # target_dir = "driver/src"
25
- # # get all .o files in the target directory
26
- # for file in os.listdir(target_dir):
27
- # if "pocc-pocc.o" in file:
28
- # continue
29
- # if file.endswith(".o"):
30
- # extra_objects.append(os.path.join(target_dir, file))
31
-
32
-
33
24
34
25
class CustomBuildExt (build_ext ):
35
26
def run (self ):
@@ -43,14 +34,6 @@ def run(self):
43
34
# Copy the shared library to the package directory
44
35
build_lib_dir = self .get_ext_fullpath ("past" )
45
36
build_lib_dir = os .path .dirname (build_lib_dir )
46
-
47
- # for lib_pth, lib_name in zip(library_dirs, libraries):
48
- # lib_path_symbolic = os.path.join(lib_pth, "lib" + lib_name + ".so")
49
- # if "libisl" in lib_path_symbolic:
50
- # lib_path_symbolic = os.path.join(lib_pth, "lib" + lib_name + ".so.19")
51
- # # trace the symbolic link to the real file
52
- # lib_path = os.path.realpath(lib_path_symbolic)
53
- # shutil.copy(lib_path, build_lib_dir)
54
37
55
38
for lib_pth in library_dirs :
56
39
# copy all .so, .so.** files
@@ -67,14 +50,15 @@ def run(self):
67
50
library_dirs = library_dirs ,
68
51
libraries = libraries ,
69
52
extra_compile_args = ['-fPIC' ],
70
- # extra_objects=extra_objects,
71
53
extra_link_args = ['-Wl,-rpath,$ORIGIN' ], # Add RPATH to search the directory of the .so
72
54
language = 'c++' , # Using C++
73
55
),
74
56
]
75
57
76
58
setup (
77
59
name = 'past' ,
60
+ version = '0.7.0' ,
61
+ author = 'Louis-Noel Pouchet, Niansong Zhang' ,
78
62
ext_modules = ext_modules ,
79
63
cmdclass = {'build_ext' : CustomBuildExt },
80
64
include_package_data = True ,
0 commit comments