mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-10 19:16:34 +03:00
Fixed debug build on Windows
Patches on master by James Emerton, from github pull request #8.
This commit is contained in:
parent
9e8923b884
commit
9ac01d060d
6
NEWS
6
NEWS
|
@ -1,6 +1,12 @@
|
|||
Current release
|
||||
---------------
|
||||
|
||||
What's new in psycopg 2.5.3
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
- Fixed debug build on Windows, thanks to James Emerton.
|
||||
|
||||
|
||||
What's new in psycopg 2.5.2
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
|
|
9
setup.py
9
setup.py
|
@ -292,12 +292,15 @@ class psycopg_build_ext(build_ext):
|
|||
manifest = '_psycopg.vc9.x86.manifest'
|
||||
if platform == 'win-amd64':
|
||||
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(
|
||||
['mt.exe', '-nologo', '-manifest',
|
||||
os.path.join('psycopg', manifest),
|
||||
'-outputresource:%s;2' % (
|
||||
os.path.join(self.build_lib,
|
||||
'psycopg2', '_psycopg.pyd'))])
|
||||
'-outputresource:%s;2' % ext_path])
|
||||
|
||||
def finalize_win32(self):
|
||||
"""Finalize build system configuration on win32 platform."""
|
||||
|
|
Loading…
Reference in New Issue
Block a user