Skip to content

Commit 1752c8d

Browse files
committed
Update get_library_dirs on windows
1 parent 30c4c0f commit 1752c8d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

python/pyarrow/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,13 @@ def append_library_dir(library_dir):
431431
if _os.path.exists(pyarrow_libs_dir):
432432
append_library_dir(pyarrow_libs_dir)
433433

434+
# Source installations on Windows into a conda environment need to
435+
# expose the appropriate conda directories
436+
if _os.environ.get('CONDA_PREFIX'):
437+
prefix = _os.environ['CONDA_PREFIX']
438+
append_library_dir(_os.path.join(prefix, 'Library', 'bin'))
439+
append_library_dir(_os.path.join(prefix, 'Library', 'lib'))
440+
434441
# ARROW-4074: Allow for ARROW_HOME to be set to some other directory
435442
if _os.environ.get('ARROW_HOME'):
436443
append_library_dir(_os.path.join(_os.environ['ARROW_HOME'], 'lib'))

0 commit comments

Comments
 (0)