Skip to content

Commit

Permalink
Update build.sh (#332)
Browse files Browse the repository at this point in the history
Update the build script to support #325

Authors:
  - Mads R. B. Kristensen (https://github.com/madsbk)

Approvers:
  - Bradley Dice (https://github.com/bdice)
  - Vyas Ramasubramani (https://github.com/vyasr)

URL: #332
  • Loading branch information
madsbk authored Feb 1, 2024
1 parent f8f5858 commit 0771b66
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

# Copyright (c) 2023, NVIDIA CORPORATION.
# Copyright (c) 2023-2024, NVIDIA CORPORATION.

# kvikio build script

Expand Down Expand Up @@ -148,18 +148,8 @@ fi

# Build and install the kvikio Python package
if (( NUMARGS == 0 )) || hasArg kvikio; then
cd "${REPODIR}/python"
export INSTALL_PREFIX
echo "building kvikio..."
python setup.py build_ext --inplace
python setup.py install --single-version-externally-managed --record=record.txt
fi


# Build and install the legate-kvikio Python package
if hasArg legate; then
cd "${REPODIR}/legate"
export INSTALL_PREFIX
echo "building legate..."
python setup.py install --single-version-externally-managed --record=record.txt
cd ${REPODIR}/python
SKBUILD_CMAKE_ARGS="-DCMAKE_PREFIX_PATH=${INSTALL_PREFIX};-DCMAKE_LIBRARY_PATH=${LIBKVIKIO_BUILD_DIR};${EXTRA_CMAKE_ARGS}" \
python -m pip install --no-build-isolation --no-deps .
fi

0 comments on commit 0771b66

Please sign in to comment.