diff options
| author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2014-09-10 23:30:34 +0100 |
|---|---|---|
| committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2014-12-25 15:06:18 +0100 |
| commit | 44219bf366477f11c365dc1df2334f811b677bdb (patch) | |
| tree | 2a2720edee740f845821cf7a68829cdbcbc4e32b /setup.py | |
| parent | b2327b0fc729f4264e45dd26f9ebdbaf5a2b8fda (diff) | |
| download | psycopg2-44219bf366477f11c365dc1df2334f811b677bdb.tar.gz | |
Don't try and compile lo64 support on 32 bits Python
We can't fit more than 31 bits in a long anyway.
Diffstat (limited to 'setup.py')
| -rw-r--r-- | setup.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -419,8 +419,8 @@ class psycopg_build_ext(build_ext): define_macros.append(("PG_VERSION_HEX", "0x%02X%02X%02X" % (pgmajor, pgminor, pgpatch))) - # enable lo64 if postgres >= 9.3 - if (pgmajor, pgminor) >= (9, 3): + # enable lo64 if libpq >= 9.3 and Python 64 bits + if (pgmajor, pgminor) >= (9, 3) and sys.maxint > (1 << 32): define_macros.append(("HAVE_LO64", "1")) # Inject the flag in the version string already packed up |
