diff options
author | Alon Bar-Lev <[email protected]> | 2017-03-28 18:55:59 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2017-03-29 09:28:18 +0000 |
commit | 9786e3a96e6772166f3523e74a748b9db20fae7c (patch) | |
tree | 527d514aa05539039e92346d21913e8ed79c1d2e /lang/python/setup.py.in | |
parent | tests: Run the threading tests only on UNIX. (diff) | |
download | gpgme-9786e3a96e6772166f3523e74a748b9db20fae7c.tar.gz gpgme-9786e3a96e6772166f3523e74a748b9db20fae7c.zip |
python,build: Reinstate prepare target.
* lang/python/Makefile.am: Fix 'prepare' target.
* lang/python/setup.py.in: Use 'abs_top_builddir' instead of guessing
the path.
--
'prepare' will prepare target at PREPAREDIR. The automake integration
will also make use of prepare target. Downstream distributors may
also make use of prepare target.
Signed-off-by: Alon Bar-Lev <[email protected]>
Diffstat (limited to 'lang/python/setup.py.in')
-rwxr-xr-x | lang/python/setup.py.in | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lang/python/setup.py.in b/lang/python/setup.py.in index bf4efa31..8ddbf276 100755 --- a/lang/python/setup.py.in +++ b/lang/python/setup.py.in @@ -34,12 +34,13 @@ in_tree = False extra_swig_opts = [] extra_macros = dict() -if os.path.exists("../../../src/gpgme-config"): +abs_top_builddir = os.environ.get("abs_top_builddir") +if abs_top_builddir: # In-tree build. in_tree = True - gpgme_config = ["../../../src/gpgme-config"] + gpgme_config_flags - gpgme_h = "../../../src/gpgme.h" - library_dirs = ["../../../src/.libs"] # XXX uses libtool internals + gpgme_config = [os.path.join(abs_top_builddir, "src/gpgme-config")] + gpgme_config_flags + gpgme_h = os.path.join(abs_top_builddir, "src/gpgme.h") + library_dirs = [os.path.join(abs_top_builddir, "src/.libs")] # XXX uses libtool internals extra_macros.update( HAVE_CONFIG_H=1, HAVE_DATA_H=1, |