diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 43899a3b..d02e338e 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -109,8 +109,8 @@ jobs: - name: 🛠️ Use VTK-Python Libs if: ${{ matrix.os == 'ubuntu-latest' }} run: | - sed -i 's/\(DVIENNALS_BUILD_PYTHON=ON"\)/\1,"-DVIENNALS_VTK_PYTHON_LIBS=ON"/g' pyproject.toml - # sed -i 's/\(DVIENNALS_BUILD_PYTHON=ON"\)/\1,"-DVIENNALS_PACKAGE_PYTHON=ON"/g' pyproject.toml + # sed -i 's/\(DVIENNALS_BUILD_PYTHON=ON"\)/\1,"-DVIENNALS_VTK_PYTHON_LIBS=ON"/g' pyproject.toml + sed -i 's/\(DVIENNALS_BUILD_PYTHON=ON"\)/\1,"-DVIENNALS_PACKAGE_PYTHON=ON", "-DVIENNALS_IS_CI=ON"/g' pyproject.toml cat pyproject.toml - name: 🏗️ Build Wheels diff --git a/CMakeLists.txt b/CMakeLists.txt index 7c67a5e2..182cc8a1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -38,7 +38,10 @@ if(VIENNALS_PACKAGE_PYTHON) "[ViennaLS] Using remote VTK due to 'VIENNALS_PACKAGE_PYTHON', the build will take a long time!" ) - set(CPM_DOWNLOAD_ALL ON) + if (NOT VIENNALS_IS_CI) + set(CPM_DOWNLOAD_ALL ON) + endif() + set(VIENNALS_BUILD_PYTHON ON) endif()