Skip to content

Commit

Permalink
fix python build script
Browse files Browse the repository at this point in the history
  • Loading branch information
AjayThorve committed Dec 4, 2023
1 parent a3bd122 commit 745a265
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions ci/build_python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,8 @@ rapids-logger "Updating version in package.json to $node_version"
jq -e --arg tag "$node_version" '.version=$tag' package.json > package.json.tmp
mv package.json.tmp package.json


# Auto-generate jupyterlab_nvdashboard/_version.py
rapids-logger "Installing hatch to generate python version from package.json"
rapids-conda-retry install hatch
python -m hatch build --hooks-only
# Generate jupyterlab_nvdashboard/_version.py since hatch version hook isn't working with conda-build
echo "__version__ = '$version'" > jupyterlab_nvdashboard/_version.py

# TODO: Remove `--no-test` flag once importing on a CPU
# node works correctly
Expand Down

0 comments on commit 745a265

Please sign in to comment.