public inbox for [email protected]
help / color / mirror / Atom feedFrom: Daniele Varrazzo <[email protected]>
To: Dan Davis <[email protected]>
Cc: [email protected]
Subject: Re: How to build statically on Windows
Date: Tue, 5 Oct 2021 01:12:47 +0200
Message-ID: <CA+mi_8YJRfD5m1khR8ozj6S9D8_JLdLdf6m_DsHAxYO_9B1f0A@mail.gmail.com> (raw)
In-Reply-To: <CAFzonYY=gW5cG9oJNGkF-6vzYvNvg9BB1CCfVkeqYGCKzH=9PQ@mail.gmail.com>
References: <CAFzonYY=gW5cG9oJNGkF-6vzYvNvg9BB1CCfVkeqYGCKzH=9PQ@mail.gmail.com>
Hi Dan,
On Tue, 5 Oct 2021 at 01:01, Dan Davis <[email protected]> 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
view thread (9+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: How to build statically on Windows
In-Reply-To: <CA+mi_8YJRfD5m1khR8ozj6S9D8_JLdLdf6m_DsHAxYO_9B1f0A@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox