Skip to content

Commit c5cd27f

Browse files
committed
Update info
1 parent 1f79e0c commit c5cd27f

File tree

2 files changed

+3
-19
lines changed

2 files changed

+3
-19
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
past*/
1+
**/past-*/

setup.py

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,6 @@
2121
"past",
2222
]
2323

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-
3324

3425
class CustomBuildExt(build_ext):
3526
def run(self):
@@ -43,14 +34,6 @@ def run(self):
4334
# Copy the shared library to the package directory
4435
build_lib_dir = self.get_ext_fullpath("past")
4536
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)
5437

5538
for lib_pth in library_dirs:
5639
# copy all .so, .so.** files
@@ -67,14 +50,15 @@ def run(self):
6750
library_dirs=library_dirs,
6851
libraries=libraries,
6952
extra_compile_args=['-fPIC'],
70-
# extra_objects=extra_objects,
7153
extra_link_args=['-Wl,-rpath,$ORIGIN'], # Add RPATH to search the directory of the .so
7254
language='c++', # Using C++
7355
),
7456
]
7557

7658
setup(
7759
name='past',
60+
version='0.7.0',
61+
author='Louis-Noel Pouchet, Niansong Zhang',
7862
ext_modules=ext_modules,
7963
cmdclass={'build_ext': CustomBuildExt},
8064
include_package_data=True,

0 commit comments

Comments
 (0)