Skip to content
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

[C++] Use python3 instead of python in bazel build #1297

Merged
merged 3 commits into from
Jan 3, 2024
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
6 changes: 3 additions & 3 deletions bazel/arrow/pyarrow_configure.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,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 @@ -183,7 +183,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 @@ -198,7 +198,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
Loading