From 9c6d30b3d2f9ba21158af19ef5cb2b135d6436d6 Mon Sep 17 00:00:00 2001 From: rusty1s Date: Sun, 24 Mar 2024 11:26:59 +0100 Subject: [PATCH] update --- .github/workflows/python_testing.yml | 3 ++- setup.py | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python_testing.yml b/.github/workflows/python_testing.yml index 9b55b000b..1a8d79651 100644 --- a/.github/workflows/python_testing.yml +++ b/.github/workflows/python_testing.yml @@ -9,7 +9,7 @@ on: # yamllint disable-line rule:truthy jobs: pytest: - runs-on: ubuntu-latest + runs-on: macos-14 steps: - name: Checkout repository @@ -24,6 +24,7 @@ jobs: run: | echo "${{ env.pythonLocation }}" python -c "import sys; print(sys.executable)" + python -c "import sys; print(sys.exec_prefix)" pip install --verbose -e .[test] - name: Print GLIBC dependency diff --git a/setup.py b/setup.py index 4ea063ff2..2d98b97f1 100644 --- a/setup.py +++ b/setup.py @@ -7,6 +7,7 @@ import os import os.path as osp import subprocess +import sys import warnings from setuptools import Extension, find_packages, setup @@ -58,6 +59,7 @@ def build_extension(self, ext): '-DBUILD_TEST=OFF', '-DBUILD_BENCHMARK=OFF', '-DUSE_PYTHON=ON', + f'-DPython3_ROOT_DIR={sys.exec_prefix}', f'-DWITH_CUDA={"ON" if WITH_CUDA else "OFF"}', f'-DCMAKE_LIBRARY_OUTPUT_DIRECTORY={extdir}', f'-DCMAKE_BUILD_TYPE={self.build_type}',