Skip to content

Commit

Permalink
[Cylon] add symbolic link
Browse files Browse the repository at this point in the history
Signed-off-by: Arup Sarker <[email protected]>
  • Loading branch information
arupcsedu committed Apr 19, 2024
1 parent 8be3fcf commit a9789ee
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ build_cpp_conda() {
print_line
echo "Building Conda CPP in ${BUILD_MODE} mode"
print_line
echo $PYTHONPATH

# set install path to conda directory if not already set
INSTALL_PATH=${INSTALL_PATH:=${PREFIX:=${CONDA_PREFIX}}}
Expand All @@ -317,6 +318,7 @@ build_cpp_conda() {
ln -sf "$(ls "$SO_FILE".*)" "$SO_FILE" || exit 1
fi
done
ln -s $PYTHONPATH/pyarrow/libarrow_python.so $CONDA_PREFIX/lib/libarrow_python.so

echo "SOURCE_DIR: ${SOURCE_DIR}"
BUILD_PATH=$(pwd)/build
Expand Down Expand Up @@ -380,7 +382,7 @@ build_python_pyarrow() {
echo "Building Pycylon"
source "${PYTHON_ENV_PATH}"/bin/activate || exit 1
read_python_requirements
pip install pyarrow==9.0.0 || exit 1
pip install pyarrow==14.0.2 || exit 1

ARROW_LIB=$(python3 -c 'import pyarrow as pa; import os; print(os.path.dirname(pa.__file__))') || exit 1
LD_LIBRARY_PATH="${ARROW_LIB}:${BUILD_PATH}/lib:${LD_LIBRARY_PATH}" || exit 1
Expand All @@ -398,9 +400,11 @@ build_python_pyarrow() {
build_python_conda() {
print_line
echo "Building Python"
echo $PYTHONPATH
ARROW_LIB=${CONDA_PREFIX}/lib
LD_LIBRARY_PATH="${ARROW_LIB}:${BUILD_PATH}/lib:${LD_LIBRARY_PATH}" || exit 1
export_library_path ${LD_LIBRARY_PATH}
ln -s $PYTHONPATH/pyarrow/libarrow_python.so $CONDA_PREFIX/lib/libarrow_python.so

pushd python/pycylon || exit 1
make clean
Expand Down

0 comments on commit a9789ee

Please sign in to comment.