From 6ec3c9a97a05dce9b69755e77e82b1862637dc37 Mon Sep 17 00:00:00 2001 From: Kelvin Date: Sun, 9 Jun 2024 20:54:02 -0700 Subject: [PATCH] find virtual first --- .github/workflows/ci_testing.yml | 3 +-- bindings/python/CMakeLists.txt | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci_testing.yml b/.github/workflows/ci_testing.yml index 889a578..d260868 100644 --- a/.github/workflows/ci_testing.yml +++ b/.github/workflows/ci_testing.yml @@ -40,7 +40,6 @@ jobs: run: | mkdir -p build cd build - sudo rm -rf /usr/bin/python* cmake -DCMAKE_BUILD_TYPE=RELEASE -DSPICEQL_BUILD_DOCS=OFF -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX .. cmake --build . @@ -109,7 +108,7 @@ jobs: - name: Configure CMake working-directory: ${{github.workspace}}/build - run: sudo rm -rf /usr/bin/python* && cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DSPICEQL_BUILD_LIB=OFF -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/install + run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DSPICEQL_BUILD_LIB=OFF -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/install - name: Build working-directory: ${{github.workspace}}/ # Execute the build. diff --git a/bindings/python/CMakeLists.txt b/bindings/python/CMakeLists.txt index 945a524..8ff73ea 100644 --- a/bindings/python/CMakeLists.txt +++ b/bindings/python/CMakeLists.txt @@ -7,6 +7,7 @@ include(UseSWIG) list(APPEND CMAKE_SWIG_FLAGS "-py3;-DPY3;-keyword") # Setup for Python linking +set(Python_FIND_VIRTUALENV FIRST) find_package(Python3 REQUIRED COMPONENTS Interpreter Development) # Setup for wrapper library