diff options
author | Justus Winter <[email protected]> | 2017-05-18 09:42:13 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2017-05-18 10:22:29 +0000 |
commit | 84a203e60b9935bd8536cd2832fbc55d7f011341 (patch) | |
tree | e5da942822fd1844d60bc84b5a05f8f8b5ba0359 | |
parent | tests: Remove remnants of 'check-local'. (diff) | |
download | gpgme-84a203e60b9935bd8536cd2832fbc55d7f011341.tar.gz gpgme-84a203e60b9935bd8536cd2832fbc55d7f011341.zip |
python: Fix build in certain cases.
* lang/python/setup.py.in: Prepend the Python build dir to the list of
include directories so that it takes precedence over any other include
directory.
--
Fixes the build in case an older 'gpgme.h' is installed and is picked
up by the compiler when compiling the Python module.
Signed-off-by: Justus Winter <[email protected]>
-rwxr-xr-x | lang/python/setup.py.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lang/python/setup.py.in b/lang/python/setup.py.in index a1279f80..f9dda20f 100755 --- a/lang/python/setup.py.in +++ b/lang/python/setup.py.in @@ -223,7 +223,7 @@ class BuildExtFirstHack(build): swig_sources.extend((self._in_build_base('gpgme.i'), self._in_build_base('helpers.c'))) swig_opts.extend(['-I' + self.build_base, '-outdir', os.path.join(self.build_lib, 'gpg')]) - include_dirs.append(self.build_base) + include_dirs.insert(0, self.build_base) self.run_command('build_ext') build.run(self) |