diff options
author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2018-02-19 11:28:13 +0000 |
---|---|---|
committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2018-02-19 13:53:50 +0000 |
commit | 32f5a9fc1d24be502cc71d10a2cd396348891710 (patch) | |
tree | 7ad1a4d811291b365c3f13c7e5212781c614edeb /setup.py | |
parent | 750ececf0850d6a14dc97885c17426915340eed6 (diff) | |
download | psycopg2-32f5a9fc1d24be502cc71d10a2cd396348891710.tar.gz |
Avoid quoting the string in the psycopg version macro
Use a macro trick to add the quotes. This seems more portable than
passing the quotes to the command line (see #658).
https://gcc.gnu.org/onlinedocs/cpp/Stringizing.html
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -596,10 +596,7 @@ if version_flags: else: PSYCOPG_VERSION_EX = PSYCOPG_VERSION -if not PLATFORM_IS_WINDOWS: - define_macros.append(('PSYCOPG_VERSION', '"' + PSYCOPG_VERSION_EX + '"')) -else: - define_macros.append(('PSYCOPG_VERSION', '\\"' + PSYCOPG_VERSION_EX + '\\"')) +define_macros.append(('PSYCOPG_VERSION', PSYCOPG_VERSION_EX)) if parser.has_option('build_ext', 'have_ssl'): have_ssl = int(parser.get('build_ext', 'have_ssl')) |