python: Use one copy of the source tree per Python version.
authorJustus Winter <justus@g10code.com>
Mon, 13 Feb 2017 15:44:53 +0000 (16:44 +0100)
committerJustus Winter <justus@g10code.com>
Mon, 13 Feb 2017 15:44:53 +0000 (16:44 +0100)
commitfe65a26ab584bd70fad45c7c4d44330e30a748a4
tree94d59632a7259748e3029e48197d1b5e1c93ddca
parent60273e8b2c11d42215a5707bc55e3e0d8f350e07
python: Use one copy of the source tree per Python version.

* lang/python/Makefile.am (copystamp): Create one copy per Python
version.
(all-local): Adapt.
(clean-local): Likewise.
(install-exec-local): Likewise.
* lang/python/tests/run-tests.py: Likewise.
--

Currently, we use one copy of the Python module's source to build for
all Python versions.  This is problematic, because SWIG writes a
wrapper file into the source tree.  Currently, this file works with
both Python 2 and 3, but this is purely by chance.

Improve the situation by creating one copy per Python version so that
SWIG can write version-specific code into each copy.

Signed-off-by: Justus Winter <justus@g10code.com>
lang/python/Makefile.am
lang/python/tests/run-tests.py