mirror of
https://github.com/apache/arrow.git
synced 2026-10-28 16:47:19 +08:00
Don't hardcode ABI versions
Change-Id: I3539418e2f20afea383eb8cce742a1d98041d816
This commit is contained in:
1 parent
98f79afb88
commit
cffcca31bd
1 file changed
+6
-10
+6
-10
@@ -208,16 +208,12 @@ class build_ext(_build_ext):
|
||||
def move_lib(lib_name):
|
||||
lib_filename = (shared_library_prefix + lib_name +
|
||||
shared_library_suffix)
|
||||
print(lib_filename)
|
||||
shutil.move(pjoin(self.build_type, lib_filename),
|
||||
pjoin(build_lib, 'pyarrow', lib_filename))
|
||||
if lib_name.startswith("arrow"):
|
||||
print(lib_filename + '.0.0.0')
|
||||
shutil.move(pjoin(self.build_type, lib_filename + '.0.0.0'),
|
||||
pjoin(build_lib, 'pyarrow', lib_filename + '.0.0.0'))
|
||||
print(lib_filename + '.0')
|
||||
shutil.move(pjoin(self.build_type, lib_filename + '.0'),
|
||||
pjoin(build_lib, 'pyarrow', lib_filename + '.0'))
|
||||
# Also copy libraries with ABI/SO version suffix
|
||||
libs = glob.glob(pjoin(self.build_type, lib_filename) + '*')
|
||||
for lib in libs:
|
||||
filename = os.path.basename(lib)
|
||||
shutil.move(pjoin(self.build_type, filename),
|
||||
pjoin(build_lib, 'pyarrow', filename))
|
||||
|
||||
if self.bundle_arrow_cpp:
|
||||
move_lib("arrow")
|
||||
|
||||
Reference in new issue
Block a user