mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-26 10:53:44 +03:00
Fallback when get_ext_fullpath() is unavailable
This commit is contained in:
parent
9100ad3e8f
commit
58c98deebb
6
setup.py
6
setup.py
|
@ -293,7 +293,11 @@ class psycopg_build_ext(build_ext):
|
|||
manifest = '_psycopg.vc9.x86.manifest'
|
||||
if platform == 'win-amd64':
|
||||
manifest = '_psycopg.vc9.amd64.manifest'
|
||||
ext_path = self.get_ext_fullpath(extension.name)
|
||||
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),
|
||||
|
|
Loading…
Reference in New Issue
Block a user