Skip to content

Commit

Permalink
Make hacky experiment work for MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
AlenkaF committed Jun 15, 2022
1 parent 14d3c01 commit 87f81d1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
3 changes: 3 additions & 0 deletions python/pyarrow/src_arrow/CMakeLists.txt
Expand Up @@ -223,6 +223,9 @@ if(ARROW_FLIGHT AND ARROW_BUILD_SHARED)
# fail with weird errors due to multiple copies of global static state (The
# other solution is to link gRPC shared everywhere instead of statically only
# in Flight)



add_arrow_lib(arrow_python_flight
CMAKE_PACKAGE_NAME
ArrowPythonFlight
Expand Down
11 changes: 6 additions & 5 deletions python/setup.py
Expand Up @@ -279,11 +279,12 @@ def _run_cmake_cpyarrow(self):
print(f"moving {build_temp} to {build_lib}")
#shutil.move(build_temp, pjoin(build_lib, "pyarrow"))
# a bit hacky
for libname in ["libarrow_python.so", "libarrow_python.so.900", "libarrow_python.so.900.0.0"]:
libname_path = pjoin(build_lib, "pyarrow", libname)
if os.path.exists(libname_path):
os.remove(libname_path)
shutil.move(pjoin(build_temp, libname), pjoin(build_lib, "pyarrow"))
for libname in os.listdir(build_temp):
if "libarrow_python" in libname:
libname_path = pjoin(build_lib, "pyarrow", libname)
if os.path.exists(libname_path):
os.remove(libname_path)
shutil.move(pjoin(build_temp, libname), pjoin(build_lib, "pyarrow"))
if not os.path.isdir(pjoin(build_include, "arrow")):
self.mkpath(pjoin(build_include, "arrow"))
shutil.move(pjoin(build_include, "arrow", "python"), pjoin(build_lib, "pyarrow", "include", "arrow", "python"))
Expand Down

0 comments on commit 87f81d1

Please sign in to comment.