Skip to content

Commit

Permalink
Fix up CMake python variables in github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
joeycarter committed Nov 13, 2024
1 parent caae93e commit 952da11
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-wheel-linux-x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ jobs:
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=$GITHUB_WORKSPACE/runtime-build/lib \
-DPYTHON_EXECUTABLE=$(which python${{ matrix.python_version }}) \
-DPython_ROOT_DIR=$(python${{ matrix.python_version }} -c "import sys; print(sys.prefix)") \
-DPYTHON_VERSION_TO_FIND=${{ matrix.python_version }} \
-Dpybind11_DIR=$(python${{ matrix.python_version }} -c "import pybind11; print(pybind11.get_cmake_dir())") \
-DENABLE_LAPACK=OFF \
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/scripts/linux_arm64/rh8/build_catalyst.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ cmake -S runtime -B runtime-build -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=runtime-build/lib \
-DPYTHON_EXECUTABLE=/usr/bin/python3 \
-DPython_ROOT_DIR=$(/usr/bin/python3 -c "import sys; print(sys.prefix)") \
-DPYTHON_VERSION_TO_FIND=${PYTHON_VERSION} \
-DPYTHON_INCLUDE_DIR=/opt/_internal/cpython-${PYTHON_VERSION}.${PYTHON_SUBVERSION}/include/python${PYTHON_VERSION} \
-DPYTHON_LIBRARY=/opt/_internal/cpython-${PYTHON_VERSION}.${PYTHON_SUBVERSION}/lib \
-Dpybind11_DIR=/opt/_internal/cpython-${PYTHON_VERSION}.${PYTHON_SUBVERSION}/lib/python${PYTHON_VERSION}/site-packages/pybind11/share/cmake/pybind11 \
Expand All @@ -64,8 +66,6 @@ cmake -S mlir -B quantum-build -G Ninja \
-DLLVM_ENABLE_ASSERTIONS=ON \
-DQUANTUM_ENABLE_BINDINGS_PYTHON=ON \
-DPython3_EXECUTABLE=/usr/bin/python3 \
-DPython_ROOT_DIR=$(/usr/bin/python3 -c "import sys; print(sys.prefix)") \
-DPYTHON_VERSION_TO_FIND=${PYTHON_VERSION} \
-DPython3_NumPy_INCLUDE_DIRS=/opt/_internal/cpython-${PYTHON_VERSION}.${PYTHON_SUBVERSION}/lib/python${PYTHON_VERSION}/site-packages/numpy/core/include \
-DMLIR_DIR=/catalyst/llvm-build/lib/cmake/mlir \
-DMHLO_DIR=/catalyst/mhlo-build/lib/cmake/mlir-hlo \
Expand Down

0 comments on commit 952da11

Please sign in to comment.