From a87c57bb2d8672e2e00cafa87b0539f8d74f040e Mon Sep 17 00:00:00 2001 From: Vadym Doroshenko Date: Fri, 20 Mar 2026 12:52:36 +0100 Subject: [PATCH 01/10] Attempt to fix publish --- .github/workflows/versions.yml | 16 ++++++++++++++++ build_PyDP_linux.sh | 1 + 2 files changed, 17 insertions(+) diff --git a/.github/workflows/versions.yml b/.github/workflows/versions.yml index db50e2a9..2febec5f 100644 --- a/.github/workflows/versions.yml +++ b/.github/workflows/versions.yml @@ -104,6 +104,22 @@ jobs: if: runner.os == 'Windows' uses: ilammy/msvc-dev-cmd@v1 + - name: Build Google DP and wheel on Linux # for debug + if: runner.os == 'Linux' + timeout-minutes: 20 + shell: bash + run: | + pip install cibuildwheel + export CIBW_PLATFORM=linux + # Set for which Python version to build. + system_python_version=${{ matrix.python-version }} + py_version=${system_python_version//.} # 3.11 -> 311 + export CIBW_BUILD=cp${py_version}-manylinux_x86_64 + export CIBW_BUILD_VERBOSITY=1 + # Build wheel + echo "Building ${CIBW_BUILD} wheel" + python -m cibuildwheel --output-dir dist . + - name: Build Google DP Unix if: runner.os != 'Windows' timeout-minutes: 20 diff --git a/build_PyDP_linux.sh b/build_PyDP_linux.sh index a7e817d2..69fde8d0 100755 --- a/build_PyDP_linux.sh +++ b/build_PyDP_linux.sh @@ -1,3 +1,4 @@ #!/bin/bash +sudo apt install libssl-dev ./build_PyDP.sh From 247cbf4f6d86b65f2df7ac91d3c516d4ede11351 Mon Sep 17 00:00:00 2001 From: Vadym Doroshenko Date: Fri, 20 Mar 2026 13:13:30 +0100 Subject: [PATCH 02/10] debug --- .github/workflows/versions.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/versions.yml b/.github/workflows/versions.yml index 2febec5f..0bde234b 100644 --- a/.github/workflows/versions.yml +++ b/.github/workflows/versions.yml @@ -38,12 +38,12 @@ jobs: - name: MyPY run: | mypy src tests - - name: Run clang-format style check for C/C++ programs. - uses: jidicula/clang-format-action@v4.11.0 - with: - clang-format-version: "11" - check-path: "/src/bindings/" - fallback-style: "Google" # optional +# - name: Run clang-format style check for C/C++ programs. +# uses: jidicula/clang-format-action@v4.11.0 +# with: +# clang-format-version: "11" +# check-path: "/src/bindings/" +# fallback-style: "Google" # optional build: runs-on: ${{ matrix.os }} From 6726c06e9dafb23dc3daf79c3be915af1415eeb5 Mon Sep 17 00:00:00 2001 From: Vadym Doroshenko Date: Fri, 20 Mar 2026 13:17:50 +0100 Subject: [PATCH 03/10] debug --- .github/workflows/tests.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index fca627c9..b5a3b674 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -40,12 +40,12 @@ jobs: - name: MyPY run: | mypy src tests - - name: Run clang-format style check for C/C++ programs. - uses: jidicula/clang-format-action@v3.3.0 - with: - clang-format-version: "11" - check-path: "/src/bindings/" - fallback-style: "Google" # optional +# - name: Run clang-format style check for C/C++ programs. +# uses: jidicula/clang-format-action@v3.3.0 +# with: +# clang-format-version: "11" +# check-path: "/src/bindings/" +# fallback-style: "Google" # optional build: runs-on: ${{ matrix.os }} From 4ed8ca359519a5e9e816d210250b15bbf392bd18 Mon Sep 17 00:00:00 2001 From: Vadym Doroshenko Date: Fri, 20 Mar 2026 13:21:16 +0100 Subject: [PATCH 04/10] debug --- .github/workflows/versions.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/versions.yml b/.github/workflows/versions.yml index 0bde234b..2a74dc2f 100644 --- a/.github/workflows/versions.yml +++ b/.github/workflows/versions.yml @@ -104,7 +104,7 @@ jobs: if: runner.os == 'Windows' uses: ilammy/msvc-dev-cmd@v1 - - name: Build Google DP and wheel on Linux # for debug + - name: Build Google DP and wheel on Linux # for debug if: runner.os == 'Linux' timeout-minutes: 20 shell: bash From f5fc423fbc79e38339a70d7a27652ede6b20ae1b Mon Sep 17 00:00:00 2001 From: Vadym Doroshenko Date: Fri, 20 Mar 2026 13:22:48 +0100 Subject: [PATCH 05/10] debug2 --- .github/workflows/tests.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b5a3b674..ac4b89f7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -77,6 +77,22 @@ jobs: run: | @("C:\Program Files\Git\usr\bin") + (Get-Content $env:GITHUB_PATH) | Set-Content $env:GITHUB_PATH -Encoding utf8 + - name: Build Google DP and wheel on Linux # for debug + if: runner.os == 'Linux' + timeout-minutes: 20 + shell: bash + run: | + pip install cibuildwheel + export CIBW_PLATFORM=linux + # Set for which Python version to build. + system_python_version=${{ matrix.python-version }} + py_version=${system_python_version//.} # 3.11 -> 311 + export CIBW_BUILD=cp${py_version}-manylinux_x86_64 + export CIBW_BUILD_VERBOSITY=1 + # Build wheel + echo "Building ${CIBW_BUILD} wheel" + python -m cibuildwheel --output-dir dist . + - name: Build Google DP Unix if: runner.os != 'Windows' timeout-minutes: 20 From 2c9773add65e5e04492f93f1fb23e8dca23ae619 Mon Sep 17 00:00:00 2001 From: Vadym Doroshenko Date: Fri, 20 Mar 2026 13:27:46 +0100 Subject: [PATCH 06/10] debug3 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index d7b4610e..cb26c460 100755 --- a/setup.py +++ b/setup.py @@ -30,7 +30,7 @@ def run(self): return # Build _pydp.so (wrappers for C++). - os.system("./build_PyDP.sh") + os.system("./build_PyDP_linux.sh") # Copy _pydp.so to cibuildwheel directory. pydp_lib = "src/pydp/_pydp.so" From 95a54731dfc2fd2c29e9543cbd20918984166ac2 Mon Sep 17 00:00:00 2001 From: Vadym Doroshenko Date: Fri, 20 Mar 2026 13:36:43 +0100 Subject: [PATCH 07/10] debug4 --- build_PyDP_linux.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build_PyDP_linux.sh b/build_PyDP_linux.sh index 69fde8d0..17d0eaee 100755 --- a/build_PyDP_linux.sh +++ b/build_PyDP_linux.sh @@ -1,4 +1,6 @@ #!/bin/bash +echo "*** Installing libssl" sudo apt install libssl-dev +echo "**** Finished libssl install" ./build_PyDP.sh From ccbda382342343b814f067232fd73209925f53f8 Mon Sep 17 00:00:00 2001 From: Vadym Doroshenko Date: Fri, 20 Mar 2026 13:39:05 +0100 Subject: [PATCH 08/10] debug5 --- build_PyDP_linux.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_PyDP_linux.sh b/build_PyDP_linux.sh index 17d0eaee..6688f9e4 100755 --- a/build_PyDP_linux.sh +++ b/build_PyDP_linux.sh @@ -1,6 +1,6 @@ #!/bin/bash echo "*** Installing libssl" -sudo apt install libssl-dev +apt install libssl-dev echo "**** Finished libssl install" ./build_PyDP.sh From 6d266427f3c4016a2e79b94bc379c65271f57f35 Mon Sep 17 00:00:00 2001 From: Vadym Doroshenko Date: Fri, 20 Mar 2026 13:43:05 +0100 Subject: [PATCH 09/10] debug6 --- build_PyDP_linux.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_PyDP_linux.sh b/build_PyDP_linux.sh index 6688f9e4..4befa88d 100755 --- a/build_PyDP_linux.sh +++ b/build_PyDP_linux.sh @@ -1,6 +1,6 @@ #!/bin/bash echo "*** Installing libssl" -apt install libssl-dev +apt-get install libssl-dev echo "**** Finished libssl install" ./build_PyDP.sh From f5343665660f4ac7ea2298d15d110b350f8ca88c Mon Sep 17 00:00:00 2001 From: Vadym Doroshenko Date: Fri, 20 Mar 2026 13:47:25 +0100 Subject: [PATCH 10/10] debug10 --- .github/workflows/tests.yml | 1 + build_PyDP_linux.sh | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ac4b89f7..8731b27b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -89,6 +89,7 @@ jobs: py_version=${system_python_version//.} # 3.11 -> 311 export CIBW_BUILD=cp${py_version}-manylinux_x86_64 export CIBW_BUILD_VERBOSITY=1 + export CIBW_BEFORE_ALL_LINUX="yum install -y openssl-devel || dnf install -y openssl-devel || apt-get install -y libssl-dev" # Build wheel echo "Building ${CIBW_BUILD} wheel" python -m cibuildwheel --output-dir dist . diff --git a/build_PyDP_linux.sh b/build_PyDP_linux.sh index 4befa88d..a7e817d2 100755 --- a/build_PyDP_linux.sh +++ b/build_PyDP_linux.sh @@ -1,6 +1,3 @@ #!/bin/bash -echo "*** Installing libssl" -apt-get install libssl-dev -echo "**** Finished libssl install" ./build_PyDP.sh