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 11:28:13 +0000 |
commit | f4f2825f742b38a05efe5c424ea5aba055eb64c1 (patch) | |
tree | c4a7c92955359a0d1c6c241b9d69b7fe9c24bacb /setup.py | |
parent | df952c149da2a3a7574c54a8a62c791211223270 (diff) | |
download | psycopg2-expand-version.tar.gz |
Avoid quoting the string in the psycopg version macroexpand-version
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')) |