[Pkg-gnupg-commit] [gpgme] 254/412: python: Fix build system integration.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Thu Sep 22 21:26:58 UTC 2016
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch master
in repository gpgme.
commit 0bd7d8c1977183abc414e11aafa26a4f834ca2a5
Author: Justus Winter <justus at g10code.com>
Date: Tue Aug 2 18:42:26 2016 +0200
python: Fix build system integration.
* lang/python/Makefile.am: Be more careful when cleaning the build
directory, we must not delete the generated file 'pyme/version.py'.
Signed-off-by: Justus Winter <justus at g10code.com>
---
lang/python/Makefile.am | 20 +++++++++++++++++---
1 file changed, 17 insertions(+), 3 deletions(-)
diff --git a/lang/python/Makefile.am b/lang/python/Makefile.am
index f0df800..8e18dab 100644
--- a/lang/python/Makefile.am
+++ b/lang/python/Makefile.am
@@ -32,14 +32,25 @@ COPY_FILES = \
$(srcdir)/README \
$(srcdir)/MANIFEST.in \
$(srcdir)/gpgme-h-clean.py \
- $(srcdir)/pyme \
$(srcdir)/examples \
$(srcdir)/helpers.c $(srcdir)/helpers.h $(srcdir)/private.h
+COPY_FILES_PYME = \
+ $(srcdir)/pyme/callbacks.py \
+ $(srcdir)/pyme/constants \
+ $(srcdir)/pyme/core.py \
+ $(srcdir)/pyme/errors.py \
+ $(srcdir)/pyme/__init__.py \
+ $(srcdir)/pyme/results.py \
+ $(srcdir)/pyme/util.py
+
# For VPATH builds we need to copy some files because Python's
# distutils are not VPATH-aware.
-copystamp: $(COPY_FILES)
- if test "$(srcdir)" != "$(builddir)" ; then cp -r $^ . ; fi
+copystamp: $(COPY_FILES) $(COPY_FILES_PYME)
+ if test "$(srcdir)" != "$(builddir)" ; then \
+ cp -r $(COPY_FILES) . ; \
+ cp -r $(COPY_FILES_PYME) pyme ; \
+ fi
touch $@
all-local: copystamp
@@ -70,6 +81,9 @@ clean-local:
if test "$(srcdir)" != "$(builddir)" ; then \
find . -type d ! -perm -200 -exec chmod u+w {} ';' ; \
for F in $(COPY_FILES); do rm -rf -- `basename $$F` ; done ; \
+ for F in $(COPY_FILES_PYME); do \
+ rm -rf -- pyme/`basename $$F` ; \
+ done ; \
fi
install-exec-local:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gpgme.git
More information about the Pkg-gnupg-commit
mailing list