Skip to content

Commit

Permalink
Merge branch 'apache:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
LiangliangSui authored Jan 4, 2024
2 parents c35fa2f + 204fd97 commit 7be6998
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bazel/arrow/pyarrow_configure.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def _symlink_genrule_for_dir(
)
return genrule

def _get_pyarrow_include(repository_ctx, python_bin="python"):
def _get_pyarrow_include(repository_ctx, python_bin="python3"):
"""Gets the pyarrow include path."""
result = _execute(
repository_ctx, [
Expand All @@ -174,7 +174,7 @@ def _get_pyarrow_include(repository_ctx, python_bin="python"):
+ python_bin + ".) " + "Is distutils installed?"))
return result.stdout.splitlines()[0]

def _get_pyarrow_shared_library(repository_ctx, library_name, python_bin="python"):
def _get_pyarrow_shared_library(repository_ctx, library_name, python_bin="python3"):
"""Gets the pyarrow shared library path."""
code = """import pyarrow, os, glob;print(glob.glob(os.path.join(""" +\
"""os.path.dirname(pyarrow.__file__), 'lib{}.*'))[0])""".format(library_name)
Expand All @@ -189,7 +189,7 @@ def _get_pyarrow_shared_library(repository_ctx, library_name, python_bin="python
return result.stdout.splitlines()[0]

#python numpy include
def _get_python_numpy_include(repository_ctx, python_bin="python"):
def _get_python_numpy_include(repository_ctx, python_bin="python3"):
"""Gets the python numpy include path."""
result = _execute(
repository_ctx, [
Expand Down

0 comments on commit 7be6998

Please sign in to comment.