]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Work around new delocation failure on Windows
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 30 Sep 2021 10:56:23 +0000 (12:56 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 30 Sep 2021 12:21:19 +0000 (14:21 +0200)
https://github.com/psycopg/psycopg/runs/3754213309?check_suite_focus=true

Not sure this is the right thing to do, if we are pulling in the right
dll.

.github/workflows/packages.yml
.github/workflows/tests.yml

index df12fdf650b76c4a7af6da64b682678d76b41697..869627af04ef5c8e08eab23f301b961424d9eb2a 100644 (file)
@@ -210,7 +210,7 @@ jobs:
           CIBW_ARCHS_WINDOWS: AMD64 x86
           CIBW_BEFORE_BUILD_WINDOWS: pip install delvewheel
           CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: >-
-            delvewheel repair -w {dest_dir} --no-mangle libiconv-2.dll {wheel}
+            delvewheel repair -w {dest_dir} --no-mangle "libiconv-2.dll;libwinpthread-1.dll" {wheel}
           CIBW_TEST_REQUIRES: ./psycopg[test] ./psycopg_pool
           CIBW_TEST_COMMAND: pytest {project}/tests -m "not slow" --color yes
           CIBW_ENVIRONMENT_WINDOWS: >-
index bee5273b1317348f2eb2bf17760fd66b337753c0..cc9a6038bc8f7de63e2411b23d4fc3b4462f743b 100644 (file)
@@ -179,7 +179,7 @@ jobs:
           $env:Path = "C:\Program Files\PostgreSQL\13\bin\;$env:Path"
           python ./psycopg_c/setup.py bdist_wheel
           pip install delvewheel
-          &"delvewheel" repair --no-mangle libiconv-2.dll @(Get-ChildItem psycopg_c\dist\*.whl)
+          &"delvewheel" repair --no-mangle "libiconv-2.dll;libwinpthread-1.dll" @(Get-ChildItem psycopg_c\dist\*.whl)
 
       # tox will only build the package from sdist, not from wheel, so we can't
       # use it for testing. Just test everything in the global installation.