summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorJason Erickson <jerickso@stickpeople.com>2011-02-23 14:29:44 -0700
committerJason Erickson <jerickso@stickpeople.com>2011-02-23 14:29:44 -0700
commit6f0dfe6d2d6334a8a5e5d7ac245bc363dc8e87be (patch)
tree2e33940593ebf672a4fc8afd42e7a1a3e805e760 /setup.py
parent894d3f653c1a5b9f0269595e665c5f5b7f473cfb (diff)
downloadpsycopg2-6f0dfe6d2d6334a8a5e5d7ac245bc363dc8e87be.tar.gz
Windows MSVC: Remove /Wp64 compiler flag
Remove the /Wp64 flag since it is deprecated starting in Visual Studio 2008.
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/setup.py b/setup.py
index 66c2fed..f371abe 100644
--- a/setup.py
+++ b/setup.py
@@ -181,13 +181,7 @@ class psycopg_build_ext(build_ext):
compiler_name = self.get_compiler().lower()
compiler_is_msvc = compiler_name.startswith('msvc')
compiler_is_mingw = compiler_name.startswith('mingw')
- if compiler_is_msvc:
- # If we're using MSVC 7.1 or later on a 32-bit platform, add the
- # /Wp64 option to generate warnings about Win64 portability
- # problems.
- if sysVer >= (2,4) and struct.calcsize('P') == 4:
- extra_compiler_args.append('/Wp64')
- elif compiler_is_mingw:
+ if compiler_is_mingw:
# Default MinGW compilation of Python extensions on Windows uses
# only -O:
extra_compiler_args.append('-O3')