mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-07-10 16:22:33 +03:00
Fixed debug build on Windows
Patches on master by James Emerton, from github pull request #8. Conflicts: NEWS
This commit is contained in:
parent
dbdd0c822f
commit
731dc2a3ef
1
NEWS
1
NEWS
|
@ -10,6 +10,7 @@ What's new in psycopg 2.4.7
|
||||||
Alexey Borzenkov (:ticket:`#173`).
|
Alexey Borzenkov (:ticket:`#173`).
|
||||||
- Manually creating `lobject` with the wrong parameter doesn't segfault
|
- Manually creating `lobject` with the wrong parameter doesn't segfault
|
||||||
(:ticket:`#187`).
|
(:ticket:`#187`).
|
||||||
|
- Fixed debug build on Windows, thanks to James Emerton.
|
||||||
|
|
||||||
|
|
||||||
What's new in psycopg 2.4.6
|
What's new in psycopg 2.4.6
|
||||||
|
|
9
setup.py
9
setup.py
|
@ -287,12 +287,15 @@ class psycopg_build_ext(build_ext):
|
||||||
manifest = '_psycopg.vc9.x86.manifest'
|
manifest = '_psycopg.vc9.x86.manifest'
|
||||||
if platform == 'win-amd64':
|
if platform == 'win-amd64':
|
||||||
manifest = '_psycopg.vc9.amd64.manifest'
|
manifest = '_psycopg.vc9.amd64.manifest'
|
||||||
|
try:
|
||||||
|
ext_path = self.get_ext_fullpath(extension.name)
|
||||||
|
except AttributeError:
|
||||||
|
ext_path = os.path.join(self.build_lib,
|
||||||
|
'psycopg2', '_psycopg.pyd')
|
||||||
self.compiler.spawn(
|
self.compiler.spawn(
|
||||||
['mt.exe', '-nologo', '-manifest',
|
['mt.exe', '-nologo', '-manifest',
|
||||||
os.path.join('psycopg', manifest),
|
os.path.join('psycopg', manifest),
|
||||||
'-outputresource:%s;2' % (
|
'-outputresource:%s;2' % ext_path])
|
||||||
os.path.join(self.build_lib,
|
|
||||||
'psycopg2', '_psycopg.pyd'))])
|
|
||||||
|
|
||||||
def finalize_win32(self):
|
def finalize_win32(self):
|
||||||
"""Finalize build system configuration on win32 platform."""
|
"""Finalize build system configuration on win32 platform."""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user