From 0d014d14388cf50c5dead571c6fd4474e28dbc5d Mon Sep 17 00:00:00 2001 From: Christian Rauch Date: Mon, 2 Sep 2024 22:24:07 +0200 Subject: [PATCH 1/3] remove PyOpenGL-accelerate dependency due to Cython error --- components/pango_python/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/pango_python/CMakeLists.txt b/components/pango_python/CMakeLists.txt index 0ac8f0dd1..96a0042c7 100644 --- a/components/pango_python/CMakeLists.txt +++ b/components/pango_python/CMakeLists.txt @@ -92,7 +92,7 @@ if(BUILD_PANGOLIN_PYTHON AND Python_FOUND AND pybind11_FOUND) AUTHOR "Steven Lovegrove" EMAIL "stevenlovegrove@gmail.com" LICENCE "MIT" - REQUIRES "pyopengl;pyopengl-accelerate;numpy;pillow;pybind11" + REQUIRES "pyopengl;numpy;pillow;pybind11" PRINT_HELP ) else() From 3198fdcbcac1f2b3b86fac87fece1da0f9432c23 Mon Sep 17 00:00:00 2001 From: Christian Rauch Date: Mon, 2 Sep 2024 22:24:18 +0200 Subject: [PATCH 2/3] remove trailing white space --- components/pango_python/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/pango_python/CMakeLists.txt b/components/pango_python/CMakeLists.txt index 96a0042c7..945ae3c86 100644 --- a/components/pango_python/CMakeLists.txt +++ b/components/pango_python/CMakeLists.txt @@ -44,10 +44,10 @@ if(BUILD_PANGOLIN_PYTHON AND Python_FOUND AND pybind11_FOUND) ) target_sources( - ${COMPONENT} PRIVATE + ${COMPONENT} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/src/pyinterpreter.cpp - ${CMAKE_CURRENT_LIST_DIR}/src/pypangolin_embed.cpp - ${SRC_BINDINGS} + ${CMAKE_CURRENT_LIST_DIR}/src/pypangolin_embed.cpp + ${SRC_BINDINGS} ) target_compile_definitions(${COMPONENT} PUBLIC HAVE_PYTHON) From 2f1e2fc01cca209dfb317e4dc81913006b04241a Mon Sep 17 00:00:00 2001 From: Christian Rauch Date: Mon, 2 Sep 2024 21:59:53 +0200 Subject: [PATCH 3/3] test wheel file installation --- .github/workflows/build.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 967355f73..f62dc1607 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -94,6 +94,15 @@ jobs: - name: Build Python wheel run: cmake --build build -t pypangolin_wheel + - name: Install Python wheel + if: ${{ matrix.package_manager == 'apt' }} + env: + PIP_BREAK_SYSTEM_PACKAGES: 1 + run: | + pip install build/pypangolin-*.whl + pip show pypangolin + python -c "import pypangolin" + - name: Run all tests if: ${{ matrix.test == 'ON' }} run: |