Home GnuPG
Diffusion GPGME fe65a26ab584

python: Use one copy of the source tree per Python version.
fe65a26ab584Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

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>

Details

Provenance
justusAuthored on Feb 13 2017, 4:44 PM
Parents
rM60273e8b2c11: build: Use macOS' compatibility macros to enable all features.
Branches
Unknown
Tags
Unknown

Event Timeline

Justus Winter <justus@g10code.com> committed rMfe65a26ab584: python: Use one copy of the source tree per Python version. (authored by Justus Winter <justus@g10code.com>).Feb 13 2017, 4:44 PM