mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-06-23 14:23:22 +03:00
Use get_ext_fullpath() for -outputresource
The manifest fixup was relying on the extension name being "_psycopg.pyd" which effectively prevents building with --debug as the extension name becomes "_psycopg_d.pyd" in this instance.
This commit is contained in:
parent
85b1914ad6
commit
9100ad3e8f
5
setup.py
5
setup.py
|
@ -293,12 +293,11 @@ 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'
|
||||||
|
ext_path = self.get_ext_fullpath(extension.name)
|
||||||
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