python: Add a flag identifying in-tree builds.
authorJustus Winter <justus@g10code.com>
Tue, 2 Aug 2016 16:45:10 +0000 (18:45 +0200)
committerJustus Winter <justus@g10code.com>
Tue, 2 Aug 2016 16:45:10 +0000 (18:45 +0200)
commit4c8265d32ddff5960a464b8d4e8d7d2258495b2e
tree6dbac46beb0c7844c19cac4b7568709ecc4600fc
parent0bd7d8c1977183abc414e11aafa26a4f834ca2a5
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 <justus@g10code.com>
lang/python/helpers.c
lang/python/helpers.h
lang/python/pyme/version.py.in
lang/python/setup.py.in