From 2668ec69068e81efa9947de7dee0b21a45cf38db Mon Sep 17 00:00:00 2001 From: Cary Phillips Date: Thu, 11 Jan 2024 16:58:03 -0800 Subject: [PATCH] test24 Signed-off-by: Cary Phillips --- .github/workflows/python-wheels.yml | 1 + src/wrappers/python/setup.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-wheels.yml b/.github/workflows/python-wheels.yml index c909c4c424..84874236e0 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 637b920db1..b9f3ada377 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"]