Skip to content

GH-45530: [Python][Packaging] Add pyarrow.libs dir to get_library_dirs #45766

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions python/pyarrow/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,14 @@ def append_library_dir(library_dir):
if _os.path.exists(_os.path.join(library_dir, 'arrow.lib')):
append_library_dir(library_dir)

# GH-45530: Add pyarrow.libs dir containing delvewheel-mangled
# msvcp140.dll
pyarrow_libs_dir = _os.path.abspath(
_os.path.join(_os.path.dirname(__file__), _os.pardir, "pyarrow.libs")
)
if _os.path.exists(pyarrow_libs_dir):
append_library_dir(pyarrow_libs_dir)

# ARROW-4074: Allow for ARROW_HOME to be set to some other directory
if _os.environ.get('ARROW_HOME'):
append_library_dir(_os.path.join(_os.environ['ARROW_HOME'], 'lib'))
Expand Down
Loading