Skip to content

Commit ef74b87

Browse files
committed
try pinning nanobind
1 parent 7618ff9 commit ef74b87

File tree

8 files changed

+15
-15
lines changed

8 files changed

+15
-15
lines changed

.github/workflows/build-wheel-linux-arm64.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ jobs:
173173
174174
- name: Install Dependencies (Python)
175175
run: |
176-
python${{ matrix.python_version }} -m pip install numpy nanobind pybind11 PyYAML cmake ninja
176+
python${{ matrix.python_version }} -m pip install numpy nanobind==2.9.2 pybind11 PyYAML cmake ninja
177177
# Add cmake and ninja to the PATH env var
178178
PYTHON_BINS=$(find /opt/_internal/cpython-${{ matrix.python_version }}.*/bin -maxdepth 1 -type d | tr '\n' ':' | sed 's/:$//')
179179
echo $PYTHON_BINS >> $GITHUB_PATH
@@ -269,7 +269,7 @@ jobs:
269269
270270
- name: Install Dependencies (Python)
271271
run: |
272-
python${{ matrix.python_version }} -m pip install numpy nanobind pybind11 PyYAML cmake ninja
272+
python${{ matrix.python_version }} -m pip install numpy nanobind==2.9.2 pybind11 PyYAML cmake ninja
273273
# Add cmake and ninja to the PATH env var
274274
PYTHON_BINS=$(find /opt/_internal/cpython-${{ matrix.python_version }}.*/bin -maxdepth 1 -type d | tr '\n' ':' | sed 's/:$//')
275275
echo $PYTHON_BINS >> $GITHUB_PATH

.github/workflows/build-wheel-linux-x86_64.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ jobs:
193193
194194
- name: Install Dependencies (Python)
195195
run: |
196-
python${{ matrix.python_version }} -m pip install numpy nanobind pybind11 PyYAML cmake ninja
196+
python${{ matrix.python_version }} -m pip install numpy nanobind==2.9.2 pybind11 PyYAML cmake ninja
197197
# Add cmake and ninja to the PATH env var
198198
PYTHON_BINS=$(find /opt/_internal/cpython-${{ matrix.python_version }}.*/bin -maxdepth 1 -type d | tr '\n' ':' | sed 's/:$//')
199199
echo $PYTHON_BINS >> $GITHUB_PATH
@@ -291,7 +291,7 @@ jobs:
291291
292292
- name: Install Dependencies (Python)
293293
run: |
294-
python${{ matrix.python_version }} -m pip install numpy nanobind pybind11 PyYAML cmake ninja
294+
python${{ matrix.python_version }} -m pip install numpy nanobind==2.9.2 pybind11 PyYAML cmake ninja
295295
# Add cmake and ninja to the PATH env var
296296
PYTHON_BINS=$(find /opt/_internal/cpython-${{ matrix.python_version }}.*/bin -maxdepth 1 -type d | tr '\n' ':' | sed 's/:$//')
297297
echo $PYTHON_BINS >> $GITHUB_PATH

.github/workflows/build-wheel-macos-arm64.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ jobs:
174174
175175
- name: Install Dependencies (Python)
176176
run: |
177-
python${{ matrix.python_version }} -m pip install numpy nanobind pybind11 PyYAML cmake ninja
177+
python${{ matrix.python_version }} -m pip install numpy nanobind==2.9.2 pybind11 PyYAML cmake ninja
178178
179179
- name: Build LLVM / MLIR
180180
if: steps.cache-llvm-build.outputs.cache-hit != 'true'
@@ -255,7 +255,7 @@ jobs:
255255
# LAPACKE reference implementation. TODO: Look into how to upgrade beyond this limit.
256256
- name: Install Dependencies (Python)
257257
run: |
258-
python${{ matrix.python_version }} -m pip install numpy nanobind pybind11 PyYAML ninja delocate
258+
python${{ matrix.python_version }} -m pip install numpy nanobind==2.9.2 pybind11 PyYAML ninja delocate
259259
python${{ matrix.python_version }} -m pip install cmake'<4'
260260
261261
- name: Get Cached LLVM Source

.github/workflows/check-catalyst.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
run: |
5353
sudo apt-get update
5454
sudo apt-get -y -q install ninja-build make cmake clang
55-
python3 -m pip install nanobind pybind11
55+
python3 -m pip install nanobind==2.9.2 pybind11
5656
5757
- name: Get Cached LLVM Source
5858
id: cache-llvm-source
@@ -157,7 +157,7 @@ jobs:
157157
sudo apt-get install -y python3 python3-pip cmake ninja-build clang lld
158158
159159
python3 --version | grep ${{ needs.constants.outputs.primary_python_version }}
160-
python3 -m pip install numpy pybind11 nanobind PyYAML
160+
python3 -m pip install numpy pybind11 nanobind==2.9.2 PyYAML
161161
162162
- name: Build LLVM
163163
if: steps.cache-llvm-build.outputs.cache-hit != 'true'
@@ -343,7 +343,7 @@ jobs:
343343
sudo apt-get update
344344
sudo apt-get install -y python3 python3-pip cmake ninja-build ccache clang lld
345345
python3 --version | grep ${{ needs.constants.outputs.primary_python_version }}
346-
python3 -m pip install numpy nanobind pybind11
346+
python3 -m pip install numpy nanobind==2.9.2 pybind11
347347
348348
- name: Get Cached LLVM Source
349349
id: cache-llvm-source
@@ -681,7 +681,7 @@ jobs:
681681
run: |
682682
sudo apt-get update
683683
sudo apt-get -y -q install cmake ninja-build
684-
python3 -m pip install nanobind pybind11
684+
python3 -m pip install nanobind==2.9.2 pybind11
685685
686686
- name: Download Catalyst-Runtime Artifact
687687
uses: actions/download-artifact@v4
@@ -714,7 +714,7 @@ jobs:
714714
run: |
715715
sudo apt-get update
716716
sudo apt-get -y -q install cmake ninja-build
717-
python3 -m pip install nanobind pybind11
717+
python3 -m pip install nanobind==2.9.2 pybind11
718718
719719
- name: Install lcov # Manually install lcov_1.15-1_all
720720
run: |

frontend/catalyst/utils/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ set(WRAPPER_SRC_FILES
3636
#
3737
# Also need NB_USE_SUBMODULE_DEPS flag to opt into nanobind's handling of tsl-robin-map dependency:
3838
# https://github.com/wjakob/nanobind/pull/1212
39-
set(NB_USE_SUBMODULE_DEPS ON)
39+
#set(NB_USE_SUBMODULE_DEPS ON)
4040
nanobind_add_module(wrapper STABLE_ABI ${WRAPPER_SRC_FILES})
4141

4242
# Add the NumPy include directory to the library's include paths

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pip>=22.3
77
# this bug was fixed in 2.0.1 (https://github.com/numpy/numpy/pull/26995)
88
numpy!=2.0.0
99
# llvm requires nanobind 2.9 or higher
10-
nanobind>=2.9
10+
nanobind==2.9.2
1111
pybind11>=2.12.0
1212
PyYAML
1313

runtime/lib/backend/openqasm/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ find_package(nanobind CONFIG REQUIRED)
3131
#
3232
# Also need NB_USE_SUBMODULE_DEPS flag to opt into nanobind's handling of tsl-robin-map dependency:
3333
# https://github.com/wjakob/nanobind/pull/1212
34-
set(NB_USE_SUBMODULE_DEPS ON)
34+
#set(NB_USE_SUBMODULE_DEPS ON)
3535
nanobind_add_module(openqasm_python_module STABLE_ABI openqasm_python_module.cpp)
3636

3737
# Use a consistant suffix ".so" rather than, e.g. ".abi3.so" (when using the Stable ABI) or

runtime/lib/registry/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ set(REGISTRY_SRC_FILES
2525
#
2626
# Also need NB_USE_SUBMODULE_DEPS flag to opt into nanobind's handling of tsl-robin-map dependency:
2727
# https://github.com/wjakob/nanobind/pull/1212
28-
set(NB_USE_SUBMODULE_DEPS ON)
28+
#set(NB_USE_SUBMODULE_DEPS ON)
2929
nanobind_add_module(catalyst_callback_registry STABLE_ABI ${REGISTRY_SRC_FILES})
3030

3131
# Use a consistant suffix ".so" rather than, e.g. ".abi3.so" (when using the Stable ABI) or

0 commit comments

Comments
 (0)