Skip to content

Commit

Permalink
bail out of activation if environment is not writable
Browse files Browse the repository at this point in the history
Reinstate 7c0287a

Closes #1126
  • Loading branch information
h-vetinari committed Jul 28, 2023
1 parent 74da7d7 commit 4b6ee5a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions recipe/activate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ _la_log "Beginning libarrow activation."
# where the GDB wrappers get installed
_la_gdb_prefix="$CONDA_PREFIX/share/gdb/auto-load"

# If the directory is not writable, nothing can be done
if [ ! -w "$_la_gdb_prefix" ]; then
_la_log 'No rights to modify $_la_gdb_prefix, cannot create symlink'
return
fi

# this needs to be in sync with ARROW_GDB_INSTALL_DIR in build.sh
_la_placeholder="replace_this_section_with_absolute_slashed_path_to_CONDA_PREFIX"
# the paths here are intentionally stacked, see #935, resp.
Expand Down
2 changes: 1 addition & 1 deletion recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ source:
folder: testing

build:
number: 6
number: 7
# for cuda support, building with one version is enough to be compatible with
# all later versions, since arrow is only using libcuda, and not libcudart.
skip: true # [cuda_compiler_version not in ("None", cuda_compiler_version_min)]
Expand Down

0 comments on commit 4b6ee5a

Please sign in to comment.