Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Switched the editable install script to use a venv instead of a local…
Browse files Browse the repository at this point in the history
… python install
  • Loading branch information
daminton committed Sep 18, 2023
1 parent e1fdf70 commit 97d9493
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,6 @@ netcdf-c-*
netcdf-fortran-*
zlib-*

actions-runner*
actions-runner*

env/**
9 changes: 6 additions & 3 deletions buildscripts/install_editable_debug.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@
set -a
SCRIPT_DIR=$(realpath $(dirname $0))
ROOT_DIR=$(realpath ${SCRIPT_DIR}/..)
VENV_DIR=${ROOT_DIR}/env
cd ${ROOT_DIR}
python3 -m pip install --upgrade pip --user
pip install scikit-build-core pyproject-metadata pathspec ninja --user
python3 -m venv ${VENV_DIR}
. ${VENV_DIR}/bin/activate
python3 -m pip install --upgrade pip
pip install scikit-build-core pyproject-metadata pathspec ninja
pip install --config-settings=editable.rebuild=true \
--config-settings=build-dir="build/{wheel_tag}" \
--config-settings=cmake.build-type="Debug" \
--config-settings=cmake.args="-DUSE_SIMD=ON" \
--config-settings=cmake.args="-DUSE_OPENMP=ON" \
--no-build-isolation \
-ve . --user
-ve .

0 comments on commit 97d9493

Please sign in to comment.