mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-10 19:16:34 +03:00
Remove VC9 runtime dependency
Changed check in setup.py to only use vc9 manifest when built against versions that use the MSVC 2008 compiler. Resolves #541. Note that as of VS 2010, a manifest is no longer needed according to this comment, "...we are no longer deploying the VC dlls as Win32 assemblies. They are regular dlls that can be loaded without a manifest." https://connect.microsoft.com/VisualStudio/feedback/details/522121/crtassem-h-missing
This commit is contained in:
parent
7d9ef5f952
commit
c837261ac1
2
setup.py
2
setup.py
|
@ -295,7 +295,7 @@ class psycopg_build_ext(build_ext):
|
||||||
|
|
||||||
# For Python versions that use MSVC compiler 2008, re-insert the
|
# For Python versions that use MSVC compiler 2008, re-insert the
|
||||||
# manifest into the resulting .pyd file.
|
# manifest into the resulting .pyd file.
|
||||||
if self.compiler_is_msvc() and sysVer not in ((2, 4), (2, 5)):
|
if self.compiler_is_msvc() and sysVer in ((2, 6), (2, 7), (3, 0), (3, 1), (3, 2)):
|
||||||
platform = get_platform()
|
platform = get_platform()
|
||||||
# Default to the x86 manifest
|
# Default to the x86 manifest
|
||||||
manifest = '_psycopg.vc9.x86.manifest'
|
manifest = '_psycopg.vc9.x86.manifest'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user