python: Get version information from the build system.
authorJustus Winter <justus@g10code.com>
Thu, 9 Jun 2016 10:38:50 +0000 (12:38 +0200)
committerJustus Winter <justus@g10code.com>
Thu, 16 Jun 2016 12:07:41 +0000 (14:07 +0200)
commit7eef399d89d4c3877cb795ed5ba45ecb241e67be
tree288b45feafce4887c6b4153f0088da874e7c611e
parenta852f99a0ac9dc7f7493b403f811f5f7518fae40
python: Get version information from the build system.

* configure.ac: Generate 'setup.py' and 'version.py'.
* lang/python/Makefile.am: Use generated setup script.
* lang/python/pyme/version.py: Turn it into a template, and get
version information from the build system.  Also drop some variables.
* lang/python/setup.py: Likewise.  This way we can avoid importing the
version module, which is frowned upon and actually caused a problem.

Signed-off-by: Justus Winter <justus@g10code.com>
configure.ac
lang/python/Makefile.am
lang/python/pyme/version.py [deleted file]
lang/python/pyme/version.py.in [new file with mode: 0644]
lang/python/setup.py.in [moved from lang/python/setup.py with 87% similarity]