From fa210745abbb8c7af6579cedb8420623337b60d3 Mon Sep 17 00:00:00 2001 From: Vadym Doroshenko Date: Mon, 23 Mar 2026 16:55:36 +0100 Subject: [PATCH 01/27] Windows fix --- .github/workflows/tests.yml | 8 +------- build_windows.cmd | 4 ++++ 2 files changed, 5 insertions(+), 7 deletions(-) create mode 100644 build_windows.cmd diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index fca627c9..20cc764c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -87,13 +87,7 @@ jobs: if: runner.os == 'Windows' timeout-minutes: 20 run: | - $PYTHONHOME=$(python -c 'import sys; print(sys.executable);').replace('\', '/') - $PYTHONPATH=$(python -c "import sys; print([x for x in sys.path if 'site-packages' in x][0]);").replace('\', '/') - echo "PYTHONHOME=$PYTHONHOME" - echo "PYTHONPATH=$PYTHONPATH" - echo "Running: ${{ matrix.os }}" - bazel.exe --output_base ./bazel-cache build src/python:pydp --config windows --verbose_failures --action_env=PYTHON_BIN_PATH=$PYTHONHOME --action_env=PYTHON_LIB_PATH=$PYTHONPATH - copy ./bazel-bin/src/bindings/_pydp.so ./src/pydp/_pydp.pyd + build_windows.cmd - name: Upgrade pip run: | diff --git a/build_windows.cmd b/build_windows.cmd new file mode 100644 index 00000000..57b1013d --- /dev/null +++ b/build_windows.cmd @@ -0,0 +1,4 @@ +mkdir build_dir +cd build_dir +cmake -S .. -B . -DOPENSSL_ROOT_DIR="C:\Program Files\OpenSSL" -DOPENSSL_USE_STATIC_LIBS=TRUE +cmake --build . --j --config Release \ No newline at end of file From 41509f68e318ef92a23b39ecb757b63bbb4ade48 Mon Sep 17 00:00:00 2001 From: Vadym Doroshenko Date: Mon, 23 Mar 2026 16:56:45 +0100 Subject: [PATCH 02/27] fix --- .github/workflows/tests.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 20cc764c..72947dcb 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -49,13 +49,13 @@ jobs: build: runs-on: ${{ matrix.os }} - needs: [linting] +# needs: [linting] strategy: fail-fast: false max-parallel: 3 matrix: - os: [ubuntu-latest, macos-latest, windows-latest] - python-version: ["3.10", 3.11, 3.12, 3.13, 3.14] + os: [windows-latest] + python-version: [3.11, 3.12, 3.13, 3.14] steps: - uses: actions/checkout@v2 From ab1643734f2a2a4350834b89a8de416b046e47b3 Mon Sep 17 00:00:00 2001 From: Vadym Doroshenko Date: Mon, 23 Mar 2026 17:01:27 +0100 Subject: [PATCH 03/27] debug1 --- .github/workflows/tests.yml | 2 +- .github/workflows/versions.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 72947dcb..82e643cd 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -87,7 +87,7 @@ jobs: if: runner.os == 'Windows' timeout-minutes: 20 run: | - build_windows.cmd + cmd build_windows.cmd - name: Upgrade pip run: | diff --git a/.github/workflows/versions.yml b/.github/workflows/versions.yml index 911bb235..c6364c6f 100644 --- a/.github/workflows/versions.yml +++ b/.github/workflows/versions.yml @@ -53,7 +53,7 @@ jobs: max-parallel: 12 matrix: # TODO: fix for Mac and Windows. - os: [ubuntu-latest, macos-latest] + os: []#ubuntu-latest, macos-latest] python-version: ["3.11", "3.12", "3.13", "3.14"] steps: From 0311a457fc9dfe000f6ac8c1bbdf2a39879e772c Mon Sep 17 00:00:00 2001 From: Vadym Doroshenko Date: Mon, 23 Mar 2026 17:03:20 +0100 Subject: [PATCH 04/27] debug2 --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 82e643cd..1cdd0c25 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -87,7 +87,7 @@ jobs: if: runner.os == 'Windows' timeout-minutes: 20 run: | - cmd build_windows.cmd + .\build_windows.cmd - name: Upgrade pip run: | From f9ff15abb841d20fb0973cf7a0e94cd8094a36a5 Mon Sep 17 00:00:00 2001 From: Vadym Doroshenko Date: Mon, 23 Mar 2026 17:05:27 +0100 Subject: [PATCH 05/27] debug3 --- build_windows.cmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_windows.cmd b/build_windows.cmd index 57b1013d..ba7bb924 100644 --- a/build_windows.cmd +++ b/build_windows.cmd @@ -1,4 +1,4 @@ mkdir build_dir cd build_dir cmake -S .. -B . -DOPENSSL_ROOT_DIR="C:\Program Files\OpenSSL" -DOPENSSL_USE_STATIC_LIBS=TRUE -cmake --build . --j --config Release \ No newline at end of file +cmake --build . --parallel --config Release \ No newline at end of file From a2da87956324e18b95b502e5a7c0936008e725d3 Mon Sep 17 00:00:00 2001 From: Vadym Doroshenko Date: Mon, 23 Mar 2026 17:15:54 +0100 Subject: [PATCH 06/27] debug4 --- build_windows.cmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_windows.cmd b/build_windows.cmd index ba7bb924..948bea8a 100644 --- a/build_windows.cmd +++ b/build_windows.cmd @@ -1,4 +1,4 @@ mkdir build_dir cd build_dir -cmake -S .. -B . -DOPENSSL_ROOT_DIR="C:\Program Files\OpenSSL" -DOPENSSL_USE_STATIC_LIBS=TRUE +cmake -S .. -B . -DOPENSSL_ROOT_DIR="C:\Program Files\OpenSSL" cmake --build . --parallel --config Release \ No newline at end of file From 367dd450fb75e477c64cfe8013a9226df752ee36 Mon Sep 17 00:00:00 2001 From: Vadym Doroshenko Date: Tue, 24 Mar 2026 07:48:30 +0100 Subject: [PATCH 07/27] debug5 --- CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c5895f7e..d3d38d65 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,14 @@ cmake_minimum_required(VERSION 3.16) project(PyDP LANGUAGES CXX) +set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>DLL") +# Force Protobuf to build with dynamic runtime (/MD) +set(protobuf_BUILD_SHARED_LIBS ON CACHE BOOL "" FORCE) +set(protobuf_MSVC_STATIC_RUNTIME OFF CACHE BOOL "" FORCE) + +# Force Abseil to use dynamic runtime if it has a toggle +set(ABSL_PROPAGATE_CXX_STD ON CACHE BOOL "" FORCE) + # C++ Standard set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) From b116bd69e25f3753974d1eaa67ecd0e8b197ebb8 Mon Sep 17 00:00:00 2001 From: Vadym Doroshenko Date: Tue, 24 Mar 2026 09:46:20 +0100 Subject: [PATCH 08/27] debug6 --- build_windows.cmd | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build_windows.cmd b/build_windows.cmd index 948bea8a..a8259991 100644 --- a/build_windows.cmd +++ b/build_windows.cmd @@ -1,4 +1,8 @@ mkdir build_dir cd build_dir cmake -S .. -B . -DOPENSSL_ROOT_DIR="C:\Program Files\OpenSSL" -cmake --build . --parallel --config Release \ No newline at end of file +cmake --build . --parallel --config Release + +move "src\bindings\PyDP\Release\_pydp.*-win_amd64.pyd" "..\src\pydp\" +cd ..\src\pydp\ +ren "_pydp.*-win_amd64.pyd" "_pydp.pyd" \ No newline at end of file From bbc5447812bc2964c4ffa2dd4be6c177947cd866 Mon Sep 17 00:00:00 2001 From: Vadym Doroshenko Date: Tue, 24 Mar 2026 10:04:15 +0100 Subject: [PATCH 09/27] debug7 --- .github/workflows/tests.yml | 8 ++++++++ build_windows.cmd | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1cdd0c25..e9c5e066 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -89,6 +89,14 @@ jobs: run: | .\build_windows.cmd + - name: Archive build artifacts + # more details https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts + uses: actions/upload-artifact@v4 + with: + name: dist-linux-py${{ matrix.python-version }} + path: | + dist + retention-days: 1 - name: Upgrade pip run: | pip install --upgrade --user pip diff --git a/build_windows.cmd b/build_windows.cmd index a8259991..0e012225 100644 --- a/build_windows.cmd +++ b/build_windows.cmd @@ -1,6 +1,6 @@ mkdir build_dir cd build_dir -cmake -S .. -B . -DOPENSSL_ROOT_DIR="C:\Program Files\OpenSSL" +cmake -S .. -B . -DOPENSSL_ROOT_DIR="C:\Program Files\OpenSSL" cmake --build . --parallel --config Release move "src\bindings\PyDP\Release\_pydp.*-win_amd64.pyd" "..\src\pydp\" From 91c46c86f7ea4481d2b0ba81224d460b0824dec4 Mon Sep 17 00:00:00 2001 From: Vadym Doroshenko Date: Tue, 24 Mar 2026 10:22:53 +0100 Subject: [PATCH 10/27] debug8 --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e9c5e066..546b99a6 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -95,7 +95,7 @@ jobs: with: name: dist-linux-py${{ matrix.python-version }} path: | - dist + build_dir/src retention-days: 1 - name: Upgrade pip run: | From 35de7be3458cd5571f0b392e73344112ebaea3a0 Mon Sep 17 00:00:00 2001 From: Vadym Doroshenko Date: Tue, 24 Mar 2026 10:50:33 +0100 Subject: [PATCH 11/27] debug9 --- .github/workflows/tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 546b99a6..74c6174b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -93,9 +93,9 @@ jobs: # more details https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts uses: actions/upload-artifact@v4 with: - name: dist-linux-py${{ matrix.python-version }} + name: build-py${{ matrix.python-version }} path: | - build_dir/src + src retention-days: 1 - name: Upgrade pip run: | From 77911ece280be4e8a7d8b2b4718f4b09b21e1bd6 Mon Sep 17 00:00:00 2001 From: Vadym Doroshenko Date: Tue, 24 Mar 2026 18:30:34 +0100 Subject: [PATCH 12/27] debug10 --- CMakeLists.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d3d38d65..628a110a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,10 +1,11 @@ cmake_minimum_required(VERSION 3.16) project(PyDP LANGUAGES CXX) +# 1. Keep MSVC runtime Dynamic (Python standard) set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>DLL") -# Force Protobuf to build with dynamic runtime (/MD) -set(protobuf_BUILD_SHARED_LIBS ON CACHE BOOL "" FORCE) -set(protobuf_MSVC_STATIC_RUNTIME OFF CACHE BOOL "" FORCE) + +# 2. Force third-party libraries to be built statically so they are baked into the wheel +set(BUILD_SHARED_LIBS OFF CACHE BOOL "" FORCE) # Force Abseil to use dynamic runtime if it has a toggle set(ABSL_PROPAGATE_CXX_STD ON CACHE BOOL "" FORCE) From e904f3d65b5556528b9d729d64fd6f2783e92c01 Mon Sep 17 00:00:00 2001 From: Vadym Doroshenko Date: Tue, 24 Mar 2026 18:49:36 +0100 Subject: [PATCH 13/27] debug11 --- CMakeLists.txt | 3 --- 1 file changed, 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 628a110a..9349e4b2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,9 +7,6 @@ set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>DLL") # 2. Force third-party libraries to be built statically so they are baked into the wheel set(BUILD_SHARED_LIBS OFF CACHE BOOL "" FORCE) -# Force Abseil to use dynamic runtime if it has a toggle -set(ABSL_PROPAGATE_CXX_STD ON CACHE BOOL "" FORCE) - # C++ Standard set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) From f7bfaba3cbdcf95fcc67dea5b502aec82359e770 Mon Sep 17 00:00:00 2001 From: Vadym Doroshenko Date: Tue, 24 Mar 2026 19:25:51 +0100 Subject: [PATCH 14/27] debug12 --- CMakeLists.txt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9349e4b2..b8c9f832 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,10 +2,17 @@ cmake_minimum_required(VERSION 3.16) project(PyDP LANGUAGES CXX) # 1. Keep MSVC runtime Dynamic (Python standard) -set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>DLL") +# set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>DLL") +set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>") # 2. Force third-party libraries to be built statically so they are baked into the wheel -set(BUILD_SHARED_LIBS OFF CACHE BOOL "" FORCE) +# set(BUILD_SHARED_LIBS OFF CACHE BOOL "" FORCE) +# 1. Globally tell CMake to prefer static libraries over shared DLLs +set(BUILD_SHARED_LIBS OFF CACHE BOOL "Build static libraries" FORCE) + +# 2. Specifically override Protobuf/Abseil if they ignore BUILD_SHARED_LIBS +set(protobuf_BUILD_SHARED_LIBS OFF CACHE BOOL "Build protobuf as static" FORCE) +set(protobuf_MSVC_STATIC_RUNTIME ON CACHE BOOL "Use /MT for protobuf" FORCE) # C++ Standard set(CMAKE_CXX_STANDARD 17) From c87082d7d81f4c2580f1396e760c15e296ef1cc4 Mon Sep 17 00:00:00 2001 From: Vadym Doroshenko Date: Tue, 24 Mar 2026 19:40:04 +0100 Subject: [PATCH 15/27] debug13 --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b8c9f832..c5f171e2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,6 +14,10 @@ set(BUILD_SHARED_LIBS OFF CACHE BOOL "Build static libraries" FORCE) set(protobuf_BUILD_SHARED_LIBS OFF CACHE BOOL "Build protobuf as static" FORCE) set(protobuf_MSVC_STATIC_RUNTIME ON CACHE BOOL "Use /MT for protobuf" FORCE) +set(ABSL_MSVC_STATIC_RUNTIME ON CACHE BOOL "Force Abseil to use /MT" FORCE) +set(ABSL_PROPAGATE_CXX_STD ON CACHE BOOL "" FORCE) +set(BUILD_SHARED_LIBS OFF CACHE BOOL "Build static libraries" FORCE) + # C++ Standard set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) From 929b8c46f96348b85bd764de52fa5e2a438d633a Mon Sep 17 00:00:00 2001 From: Vadym Doroshenko Date: Wed, 25 Mar 2026 08:52:38 +0100 Subject: [PATCH 16/27] debug14 --- build_windows.cmd | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build_windows.cmd b/build_windows.cmd index 0e012225..83626e47 100644 --- a/build_windows.cmd +++ b/build_windows.cmd @@ -5,4 +5,8 @@ cmake --build . --parallel --config Release move "src\bindings\PyDP\Release\_pydp.*-win_amd64.pyd" "..\src\pydp\" cd ..\src\pydp\ -ren "_pydp.*-win_amd64.pyd" "_pydp.pyd" \ No newline at end of file +ren "_pydp.*-win_amd64.pyd" "_pydp.pyd" +dir "C:\Program Files\OpenSSL" +dir "C:\Program Files\OpenSSL\Library" +dir "C:\Program Files\OpenSSL\Library\bin" +copy "C:\Program Files\OpenSSL\Library\bin\*.dll" . \ No newline at end of file From d16329a0282cff5a22c13be81890209a65abd038 Mon Sep 17 00:00:00 2001 From: Vadym Doroshenko Date: Wed, 25 Mar 2026 10:05:29 +0100 Subject: [PATCH 17/27] debug15 --- build_windows.cmd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build_windows.cmd b/build_windows.cmd index 83626e47..86526c50 100644 --- a/build_windows.cmd +++ b/build_windows.cmd @@ -6,7 +6,7 @@ cmake --build . --parallel --config Release move "src\bindings\PyDP\Release\_pydp.*-win_amd64.pyd" "..\src\pydp\" cd ..\src\pydp\ ren "_pydp.*-win_amd64.pyd" "_pydp.pyd" +dumpbin /dependents "_pydp.pyd" dir "C:\Program Files\OpenSSL" -dir "C:\Program Files\OpenSSL\Library" -dir "C:\Program Files\OpenSSL\Library\bin" -copy "C:\Program Files\OpenSSL\Library\bin\*.dll" . \ No newline at end of file +dir "C:\Program Files\OpenSSL\bin" +copy "C:\Program Files\OpenSSL\libcrypto*.dll" . \ No newline at end of file From f5b538290154fe9dc8eec5e349de5565ecc7e734 Mon Sep 17 00:00:00 2001 From: Vadym Doroshenko Date: Wed, 25 Mar 2026 10:23:53 +0100 Subject: [PATCH 18/27] debug16 --- .github/workflows/tests.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 74c6174b..87d5e5ee 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -58,6 +58,8 @@ jobs: python-version: [3.11, 3.12, 3.13, 3.14] steps: + - name: Install Dumpbin for debug + uses: lorenalexm/install-dumpbin-action@main - uses: actions/checkout@v2 with: submodules: true From f423426b841c5789661b786dc1d75567993b37ec Mon Sep 17 00:00:00 2001 From: Vadym Doroshenko Date: Wed, 25 Mar 2026 10:35:23 +0100 Subject: [PATCH 19/27] debug17 --- .github/workflows/tests.yml | 2 -- build_windows.cmd | 5 ++++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 87d5e5ee..74c6174b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -58,8 +58,6 @@ jobs: python-version: [3.11, 3.12, 3.13, 3.14] steps: - - name: Install Dumpbin for debug - uses: lorenalexm/install-dumpbin-action@main - uses: actions/checkout@v2 with: submodules: true diff --git a/build_windows.cmd b/build_windows.cmd index 86526c50..7f2542a3 100644 --- a/build_windows.cmd +++ b/build_windows.cmd @@ -1,3 +1,6 @@ +git clone https://github.com/Delphier/dumpbin.git +python dumpbin/dumpbin.py + mkdir build_dir cd build_dir cmake -S .. -B . -DOPENSSL_ROOT_DIR="C:\Program Files\OpenSSL" @@ -6,7 +9,7 @@ cmake --build . --parallel --config Release move "src\bindings\PyDP\Release\_pydp.*-win_amd64.pyd" "..\src\pydp\" cd ..\src\pydp\ ren "_pydp.*-win_amd64.pyd" "_pydp.pyd" -dumpbin /dependents "_pydp.pyd" +dumpbin.exe /dependents "_pydp.pyd" dir "C:\Program Files\OpenSSL" dir "C:\Program Files\OpenSSL\bin" copy "C:\Program Files\OpenSSL\libcrypto*.dll" . \ No newline at end of file From a344949ce4b2d9ff9e7dd59d34f01ffe56ccdca4 Mon Sep 17 00:00:00 2001 From: Vadym Doroshenko Date: Wed, 25 Mar 2026 12:56:13 +0100 Subject: [PATCH 20/27] debug18 --- build_windows.cmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_windows.cmd b/build_windows.cmd index 7f2542a3..8c502e90 100644 --- a/build_windows.cmd +++ b/build_windows.cmd @@ -1,5 +1,5 @@ git clone https://github.com/Delphier/dumpbin.git -python dumpbin/dumpbin.py +echo Y | python dumpbin/dumpbin.py mkdir build_dir cd build_dir From 5736c7efd570dfd1faec3503009ab85bb3d845a3 Mon Sep 17 00:00:00 2001 From: Vadym Doroshenko Date: Wed, 25 Mar 2026 13:09:56 +0100 Subject: [PATCH 21/27] debug19 --- build_windows.cmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_windows.cmd b/build_windows.cmd index 8c502e90..d54fea81 100644 --- a/build_windows.cmd +++ b/build_windows.cmd @@ -1,5 +1,5 @@ git clone https://github.com/Delphier/dumpbin.git -echo Y | python dumpbin/dumpbin.py +echo Y| python dumpbin/dumpbin.py mkdir build_dir cd build_dir From 5867bb51a3f61d9261e45b91345bc8bf5dabd062 Mon Sep 17 00:00:00 2001 From: Vadym Doroshenko Date: Wed, 25 Mar 2026 13:27:20 +0100 Subject: [PATCH 22/27] debug20 --- build_windows.cmd | 1 + 1 file changed, 1 insertion(+) diff --git a/build_windows.cmd b/build_windows.cmd index d54fea81..52be9c0b 100644 --- a/build_windows.cmd +++ b/build_windows.cmd @@ -1,5 +1,6 @@ git clone https://github.com/Delphier/dumpbin.git echo Y| python dumpbin/dumpbin.py +dumpbin.exe /exports *.dll mkdir build_dir cd build_dir From 31f44d6d53c5794f3c72fa19c27733265b098afd Mon Sep 17 00:00:00 2001 From: Vadym Doroshenko Date: Wed, 25 Mar 2026 13:46:58 +0100 Subject: [PATCH 23/27] debug21 --- .github/workflows/tests.yml | 9 ++++++--- build_windows.cmd | 6 +++--- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 74c6174b..9ebca027 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -67,9 +67,12 @@ jobs: with: python-version: ${{ matrix.python-version }} - - name: Setup msbuild Windows - if: runner.os == 'Windows' - uses: microsoft/setup-msbuild@v1.0.2 + - name: Set up MSVC environment # for debug + uses: ilammy/msvc-dev-cmd@v1 + +# - name: Setup msbuild Windows +# if: runner.os == 'Windows' +# uses: microsoft/setup-msbuild@v1.0.2 - name: Fix Paths Windows # Make sure that tar.exe from Git is used not from Windows diff --git a/build_windows.cmd b/build_windows.cmd index 52be9c0b..7ed3a161 100644 --- a/build_windows.cmd +++ b/build_windows.cmd @@ -1,6 +1,6 @@ -git clone https://github.com/Delphier/dumpbin.git -echo Y| python dumpbin/dumpbin.py -dumpbin.exe /exports *.dll +@REM git clone https://github.com/Delphier/dumpbin.git +@REM echo Y| python dumpbin/dumpbin.py +@REM dumpbin.exe /exports *.dll mkdir build_dir cd build_dir From 61af5fe448f40a4214c0cbaf80dc1f2d10cfeaab Mon Sep 17 00:00:00 2001 From: Vadym Doroshenko Date: Wed, 25 Mar 2026 14:24:45 +0100 Subject: [PATCH 24/27] debug22 --- build_windows.cmd | 1 + 1 file changed, 1 insertion(+) diff --git a/build_windows.cmd b/build_windows.cmd index 7ed3a161..4c7753cf 100644 --- a/build_windows.cmd +++ b/build_windows.cmd @@ -11,6 +11,7 @@ move "src\bindings\PyDP\Release\_pydp.*-win_amd64.pyd" "..\src\pydp\" cd ..\src\pydp\ ren "_pydp.*-win_amd64.pyd" "_pydp.pyd" dumpbin.exe /dependents "_pydp.pyd" +dumpbin.exe /dependents "libcrypto-3-x64.dll" dir "C:\Program Files\OpenSSL" dir "C:\Program Files\OpenSSL\bin" copy "C:\Program Files\OpenSSL\libcrypto*.dll" . \ No newline at end of file From 24656ddf6095b291c2f151b95cf3ed69158e2062 Mon Sep 17 00:00:00 2001 From: Vadym Doroshenko Date: Wed, 25 Mar 2026 14:44:14 +0100 Subject: [PATCH 25/27] debug23 --- build_windows.cmd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build_windows.cmd b/build_windows.cmd index 4c7753cf..8ddc9794 100644 --- a/build_windows.cmd +++ b/build_windows.cmd @@ -10,8 +10,8 @@ cmake --build . --parallel --config Release move "src\bindings\PyDP\Release\_pydp.*-win_amd64.pyd" "..\src\pydp\" cd ..\src\pydp\ ren "_pydp.*-win_amd64.pyd" "_pydp.pyd" -dumpbin.exe /dependents "_pydp.pyd" -dumpbin.exe /dependents "libcrypto-3-x64.dll" dir "C:\Program Files\OpenSSL" dir "C:\Program Files\OpenSSL\bin" -copy "C:\Program Files\OpenSSL\libcrypto*.dll" . \ No newline at end of file +copy "C:\Program Files\OpenSSL\libcrypto*.dll" . +dumpbin.exe /dependents "_pydp.pyd" +dumpbin.exe /dependents "libcrypto-3-x64.dll" \ No newline at end of file From 4e9ea9301ef3dfe03f7628bf027b74c154dd637e Mon Sep 17 00:00:00 2001 From: Vadym Doroshenko Date: Wed, 25 Mar 2026 14:56:06 +0100 Subject: [PATCH 26/27] debug24_open_ssl_static --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c5f171e2..9e843fd8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,6 +9,7 @@ set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>") # set(BUILD_SHARED_LIBS OFF CACHE BOOL "" FORCE) # 1. Globally tell CMake to prefer static libraries over shared DLLs set(BUILD_SHARED_LIBS OFF CACHE BOOL "Build static libraries" FORCE) +set(OPENSSL_USE_STATIC_LIBS TRUE) # 2. Specifically override Protobuf/Abseil if they ignore BUILD_SHARED_LIBS set(protobuf_BUILD_SHARED_LIBS OFF CACHE BOOL "Build protobuf as static" FORCE) From 4e1f10546c05b01e5553654ca1597f58f24ae892 Mon Sep 17 00:00:00 2001 From: Vadym Doroshenko Date: Wed, 25 Mar 2026 15:09:05 +0100 Subject: [PATCH 27/27] debug25 --- CMakeLists.txt | 2 +- build_windows.cmd | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9e843fd8..526c1e76 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,7 +17,7 @@ set(protobuf_MSVC_STATIC_RUNTIME ON CACHE BOOL "Use /MT for protobuf" FORCE) set(ABSL_MSVC_STATIC_RUNTIME ON CACHE BOOL "Force Abseil to use /MT" FORCE) set(ABSL_PROPAGATE_CXX_STD ON CACHE BOOL "" FORCE) -set(BUILD_SHARED_LIBS OFF CACHE BOOL "Build static libraries" FORCE) +#set(BUILD_SHARED_LIBS OFF CACHE BOOL "Build static libraries" FORCE) # C++ Standard set(CMAKE_CXX_STANDARD 17) diff --git a/build_windows.cmd b/build_windows.cmd index 8ddc9794..76fab32a 100644 --- a/build_windows.cmd +++ b/build_windows.cmd @@ -14,4 +14,6 @@ dir "C:\Program Files\OpenSSL" dir "C:\Program Files\OpenSSL\bin" copy "C:\Program Files\OpenSSL\libcrypto*.dll" . dumpbin.exe /dependents "_pydp.pyd" -dumpbin.exe /dependents "libcrypto-3-x64.dll" \ No newline at end of file +dumpbin.exe /dependents "libcrypto-3-x64.dll" + +python -c "import _pydp" \ No newline at end of file