diff --git a/.github/workflows/python-wheels.yml b/.github/workflows/python-wheels.yml index c909c4c42..84874236e 100644 --- a/.github/workflows/python-wheels.yml +++ b/.github/workflows/python-wheels.yml @@ -123,6 +123,7 @@ jobs: find . cd src/wrappers/python cat setup.py + echo ${{github.workspace}}/_install > cmake_prefix_path env CMAKE_PREFIX_PATH=${{github.workspace}}/_install python -m cibuildwheel --output-dir wheelhouse - uses: actions/upload-artifact@v3 diff --git a/src/wrappers/python/setup.py b/src/wrappers/python/setup.py index 637b920db..b9f3ada37 100755 --- a/src/wrappers/python/setup.py +++ b/src/wrappers/python/setup.py @@ -9,7 +9,9 @@ if "CMAKE_PREFIX_PATH" not in os.environ: print(f"CMAKE_PREFIX_PATH not defined: {os.environ}") - exit(-1) + + with open("cmake_prefix_path", "r") as f: + CMAKE_PREFIX_PATH = f.readlines()[0] CMAKE_PREFIX_PATH = os.environ["CMAKE_PREFIX_PATH"]