diff options
| author | Justus Winter <[email protected]> | 2016-08-02 16:45:10 +0000 | 
|---|---|---|
| committer | Justus Winter <[email protected]> | 2016-08-02 16:45:10 +0000 | 
| commit | 4c8265d32ddff5960a464b8d4e8d7d2258495b2e (patch) | |
| tree | 6dbac46beb0c7844c19cac4b7568709ecc4600fc /lang/python/helpers.c | |
| parent | python: Fix build system integration. (diff) | |
| download | gpgme-4c8265d32ddff5960a464b8d4e8d7d2258495b2e.tar.gz gpgme-4c8265d32ddff5960a464b8d4e8d7d2258495b2e.zip | |
python: Add a flag identifying in-tree builds.
* lang/python/helpers.c (pyme_in_tree_build): New variable.
* lang/python/helpers.h (pyme_in_tree_build): New declaration.
* lang/python/pyme/version.py.in (in_tree_build): New variable.
* lang/python/setup.py.in: Rework macro handling, set 'IN_TREE_BUILD'
as appropriate.
Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'lang/python/helpers.c')
| -rw-r--r-- | lang/python/helpers.c | 9 | 
1 files changed, 9 insertions, 0 deletions
| diff --git a/lang/python/helpers.c b/lang/python/helpers.c index 0406f9f8..0b4a7736 100644 --- a/lang/python/helpers.c +++ b/lang/python/helpers.c @@ -28,6 +28,15 @@  #include "helpers.h"  #include "private.h" +/* Flag specifying whether this is an in-tree build.  */ +int pyme_in_tree_build = +#if IN_TREE_BUILD +  1 +#else +  0 +#endif +  ; +  static PyObject *GPGMEError = NULL;  void _pyme_exception_init(void) { | 
