From: | Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com> |
---|---|
To: | Dan Davis <dansmood(at)gmail(dot)com> |
Cc: | psycopg(at)lists(dot)postgresql(dot)org |
Subject: | Re: How to build statically on Windows |
Date: | 2021-10-04 23:12:47 |
Message-ID: | CA+mi_8YJRfD5m1khR8ozj6S9D8_JLdLdf6m_DsHAxYO_9B1f0A@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | psycopg |
Hi Dan,
On Tue, 5 Oct 2021 at 01:01, Dan Davis <dansmood(at)gmail(dot)com> wrote:
>
> Can anyone give me a solution to build psycopg2 statically on Windows?
>
> I have succeeded in building it, but when I run dumpbin /dependents on the generated file (the PYD file), it still depends on libpq.dll even when I pass --static-libpq.
I haven't personally used --static-libpq in a long time, and neither
have I used windows for a while. As far as I know that part of the set
up might have bitrotten.
If anyone can help Dan it would be appreciated.
Dan, there is a ticket/MR in the tracker of which I've never been able
to make completely sense: https://github.com/psycopg/psycopg2/pull/758
Would you like to check if that's the issue that doesn't allow
building the lib statically and if so can you propose a MR or just
acknowledge that the proposed one works as expected?
Thank you everyone
-- Daniele
From | Date | Subject | |
---|---|---|---|
Next Message | Paolo De Stefani | 2021-10-05 11:29:52 | From spycopg2 to psycopg3 data adaptation |
Previous Message | Dan Davis | 2021-10-04 23:01:04 | How to build statically on Windows |