python: simplify build, some fixups
authorAlon Bar-Lev <alon.barlev@gmail.com>
Wed, 5 Apr 2017 16:47:08 +0000 (19:47 +0300)
committerJustus Winter <justus@g10code.com>
Fri, 7 Apr 2017 10:12:20 +0000 (12:12 +0200)
commit49195c487e6c923f7137f092b982e7d833d98de6
tree5be39ddc018fcba7771e0c77ca0ae607e7435d66
parente7d9c0c3d773f826dbd2ed417d04e25c410f3374
python: simplify build, some fixups

* lang/python/gpg/version.py.in: Rename to lang/python/version.py.in.
configure.ac: Generate version.py.in in lang/python.
* lang/python/MANIFEST.in: Include version.py explicitly.
* lang/python/gpg: Rename to 'src'.
* lang/python/Makefile.am: Do not copy source files, do not use absolute
directories, support lib64 in uninstall, clean also dist directory, use
symlink for gpg src.
* lang/python/setup.py.in: Use builddir, copy sources into builddir,
copy version.py into module.
--

Simplify build to symlink the gpg sources into builddir instead of
copying. This requires handling of version.py as generated file.

In addition apply some cleanups: Drop the absolution pathes, clean the
dist directory as well, support lib64 for sitelib at uninstall.

Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
31 files changed:
configure.ac
lang/python/MANIFEST.in
lang/python/Makefile.am
lang/python/setup.py.in
lang/python/src/__init__.py [moved from lang/python/gpg/__init__.py with 100% similarity]
lang/python/src/callbacks.py [moved from lang/python/gpg/callbacks.py with 100% similarity]
lang/python/src/constants/__init__.py [moved from lang/python/gpg/constants/__init__.py with 100% similarity]
lang/python/src/constants/create.py [moved from lang/python/gpg/constants/create.py with 100% similarity]
lang/python/src/constants/data/__init__.py [moved from lang/python/gpg/constants/data/__init__.py with 100% similarity]
lang/python/src/constants/data/encoding.py [moved from lang/python/gpg/constants/data/encoding.py with 100% similarity]
lang/python/src/constants/event.py [moved from lang/python/gpg/constants/event.py with 100% similarity]
lang/python/src/constants/import.py [moved from lang/python/gpg/constants/import.py with 100% similarity]
lang/python/src/constants/keylist/__init__.py [moved from lang/python/gpg/constants/keylist/__init__.py with 100% similarity]
lang/python/src/constants/keylist/mode.py [moved from lang/python/gpg/constants/keylist/mode.py with 100% similarity]
lang/python/src/constants/keysign.py [moved from lang/python/gpg/constants/keysign.py with 100% similarity]
lang/python/src/constants/md.py [moved from lang/python/gpg/constants/md.py with 100% similarity]
lang/python/src/constants/pk.py [moved from lang/python/gpg/constants/pk.py with 100% similarity]
lang/python/src/constants/protocol.py [moved from lang/python/gpg/constants/protocol.py with 100% similarity]
lang/python/src/constants/sig/__init__.py [moved from lang/python/gpg/constants/sig/__init__.py with 100% similarity]
lang/python/src/constants/sig/mode.py [moved from lang/python/gpg/constants/sig/mode.py with 100% similarity]
lang/python/src/constants/sig/notation.py [moved from lang/python/gpg/constants/sig/notation.py with 100% similarity]
lang/python/src/constants/sigsum.py [moved from lang/python/gpg/constants/sigsum.py with 100% similarity]
lang/python/src/constants/status.py [moved from lang/python/gpg/constants/status.py with 100% similarity]
lang/python/src/constants/tofu/__init__.py [moved from lang/python/gpg/constants/tofu/__init__.py with 100% similarity]
lang/python/src/constants/tofu/policy.py [moved from lang/python/gpg/constants/tofu/policy.py with 100% similarity]
lang/python/src/constants/validity.py [moved from lang/python/gpg/constants/validity.py with 100% similarity]
lang/python/src/core.py [moved from lang/python/gpg/core.py with 100% similarity]
lang/python/src/errors.py [moved from lang/python/gpg/errors.py with 100% similarity]
lang/python/src/results.py [moved from lang/python/gpg/results.py with 100% similarity]
lang/python/src/util.py [moved from lang/python/gpg/util.py with 100% similarity]
lang/python/version.py.in [moved from lang/python/gpg/version.py.in with 100% similarity]