Skip to content

Commit 1fd32c3

Browse files
author
Felix Li
committed
update nano bind
1 parent ad04497 commit 1fd32c3

4 files changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/build-custom-llvm-tools.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
-w /flydsl \
4949
--name llvm_build \
5050
"${MANYLINUX_IMAGE}"
51-
docker exec llvm_build bash -c "python3 -m pip install -q nanobind"
51+
docker exec llvm_build bash -c "python3 -m pip install -q 'nanobind==2.12.0'"
5252
docker exec llvm_build bash -c "git config --global --add safe.directory '*'"
5353
5454
- name: Checkout source in build container

.github/workflows/build-whl.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
done
7474
ln -sf /usr/local/bin/python3.12 /usr/local/bin/python3
7575
'
76-
docker exec flydsl_build bash -c "python3 -m pip install -q nanobind"
76+
docker exec flydsl_build bash -c "python3 -m pip install -q 'nanobind==2.12.0'"
7777
docker exec flydsl_build bash -c "git config --global --add safe.directory '*'"
7878
7979
- name: Checkout source and submodules in build container

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ requires = [
55
# `setup.py` may invoke CMake configuration that expects
66
# these Python build deps to be importable in the current environment.
77
"pybind11>=2.10",
8-
"nanobind>=2.0",
8+
"nanobind>=2.9,<3",
99
"numpy",
1010
"cmake",
1111
]

scripts/build_llvm.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ echo "Configuring LLVM..."
115115

116116
# Install dependencies for Python bindings
117117
echo "Installing Python dependencies..."
118-
pip install nanobind numpy pybind11
118+
NANOBIND_VERSION="${NANOBIND_VERSION:-2.12.0}"
119+
pip install "nanobind==${NANOBIND_VERSION}" numpy pybind11
119120

120121
# Check for ninja
121122
GENERATOR="Unix Makefiles"

0 commit comments

Comments
 (0)