diff options
| author | Federico Di Gregorio <fog@initd.org> | 2005-08-23 10:38:36 +0000 |
|---|---|---|
| committer | Federico Di Gregorio <fog@initd.org> | 2005-08-23 10:38:36 +0000 |
| commit | 8d3fd21280e2be403ba245a7c5521e5bda8d9ae5 (patch) | |
| tree | 3c205071bb0b6dfb9aec57234c54747838ea8e9e /setup.py | |
| parent | c123389378cb1261126831363cf41b8124a0622e (diff) | |
| download | psycopg2-8d3fd21280e2be403ba245a7c5521e5bda8d9ae5.tar.gz | |
mingw fixes.
Diffstat (limited to 'setup.py')
| -rw-r--r-- | setup.py | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -104,6 +104,16 @@ class psycopg_build_ext(build_ext): """ return self.compiler or get_default_compiler() + def build_extensions(self): + # Linking against this library causes psycopg2 to crash + # on Python >= 2.4. Maybe related to strdup calls, cfr. + # http://mail.python.org/pipermail/distutils-sig/2005-April/004433.html + if self.get_compiler().compiler_type == "mingw32" \ + and 'msvcr71' in self.compiler.dll_libraries: + self.compiler.dll_libraries.remove('msvcr71') + + build_ext.build_extensions(self) + def finalize_win32(self): """Finalize build system configuration on win32 platform. |
