On Tue, 5 Oct 2021 at 00:30, Dan Davis <dansmood@xxxxxxxxx> wrote: > > Can anyone give me a solution to build psycopg2 statically on Windows? You can follow what Appveyor does, which is the CI that builds psycopg2 packages. - this is the setup https://github.com/psycopg/psycopg2/blob/master/.appveyor/packages.yml - this is the script it calls into: https://github.com/psycopg/psycopg2/blob/master/scripts/build/appveyor.py You can use the ML at psycopg@xxxxxxxxxxxx for further questions. -- Daniele