From e706cb63cc8b92debc06d92e469a4356e47231f5 Mon Sep 17 00:00:00 2001 From: mehrdadn Date: Sat, 26 Oct 2019 20:46:55 -0700 Subject: [PATCH] Fix missing double quotes for spaces in paths (#6026) --- bazel/python_configure.bzl | 2 +- build.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bazel/python_configure.bzl b/bazel/python_configure.bzl index 547f30bcf..5dec11e50 100644 --- a/bazel/python_configure.bzl +++ b/bazel/python_configure.bzl @@ -184,7 +184,7 @@ def _get_python_lib(repository_ctx, python_bin): "for path in all_paths:\n" + " if os.path.isdir(path):\n" + " paths.append(path)\n" + "if len(paths) >=1:\n" + " print(paths[0])\n" + "END") - cmd = '%s - %s' % (python_bin, print_lib) + cmd = '"%s" - %s' % (python_bin, print_lib) result = repository_ctx.execute([_get_bash_bin(repository_ctx), "-c", cmd]) return result.stdout.strip('\n') diff --git a/build.sh b/build.sh index b314beca9..392482ed8 100755 --- a/build.sh +++ b/build.sh @@ -97,18 +97,18 @@ pushd "$BUILD_DIR" # generated from https://github.com/ray-project/arrow-build from # the commit listed in the command. if [ -z "$SKIP_PYARROW_INSTALL" ]; then - $PYTHON_EXECUTABLE -m pip install -q \ + "$PYTHON_EXECUTABLE" -m pip install -q \ --target="$ROOT_DIR/python/ray/pyarrow_files" pyarrow==0.14.0.RAY \ --find-links https://s3-us-west-2.amazonaws.com/arrow-wheels/516e15028091b5e287200b5df77d77f72d9a6c9a/index.html fi export PYTHON_BIN_PATH="$PYTHON_EXECUTABLE" if [ "$RAY_BUILD_JAVA" == "YES" ]; then - $BAZEL_EXECUTABLE build //java:all --verbose_failures + "$BAZEL_EXECUTABLE" build //java:all --verbose_failures fi if [ "$RAY_BUILD_PYTHON" == "YES" ]; then - $BAZEL_EXECUTABLE build //:ray_pkg --verbose_failures + "$BAZEL_EXECUTABLE" build //:ray_pkg --verbose_failures fi popd