[cmor] 01/01: Use --single-version-externally-managed to avoid shipping a site.py and easy-install.pth Closes: #870169
Alastair McKinstry
mckinstry at moszumanska.debian.org
Tue Aug 1 12:03:33 UTC 2017
This is an automated email from the git hooks/post-receive script.
mckinstry pushed a commit to branch debian/master
in repository cmor.
commit f72585e9f7fd3f73a87348363f249512e8818a2a
Author: Alastair McKinstry <mckinstry at debian.org>
Date: Tue Aug 1 12:13:37 2017 +0100
Use --single-version-externally-managed to avoid shipping a site.py and easy-install.pth Closes: #870169
---
debian/changelog | 7 +++++++
debian/rules | 8 +++++---
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 3d886fe..cbbcdcb 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+cmor (3.2.5-2) unstable; urgency=medium
+
+ * Use --single-version-externally-managed to avoid shipping a site.py
+ and easy-install.pth Closes: #870169
+
+ -- Alastair McKinstry <mckinstry at debian.org> Tue, 01 Aug 2017 12:12:35 +0100
+
cmor (3.2.5-1) unstable; urgency=medium
* New upstream release
diff --git a/debian/rules b/debian/rules
index a498fd7..367d6ef 100755
--- a/debian/rules
+++ b/debian/rules
@@ -32,7 +32,7 @@ ifeq ($(BUILD_ARCH_CPU),s390x)
endif
%:
- dh $@ --with python2,python3
+ dh $@ --with python2,python3
override_dh_auto_configure:
autoreconf -fiv
@@ -70,10 +70,12 @@ override_dh_auto_install:
$(MAKE) install_shlib DESTDIR=$(DESTDIR)
mkdir -p $(DESTDIR)/usr/lib/python2.7/dist-packages $(DESTDIR)/usr/lib/python3/dist-packages
PYTHONPATH=$(DESTDIR)/usr/lib/python2.7/dist-packages \
- python2.7 ./setup.py install --prefix=$(DESTDIR)/usr --install-layout=deb
+ python2.7 ./setup.py install --prefix=/usr --install-layout=deb \
+ --single-version-externally-managed --root=$(DESTDIR)
for p in $(PY3VERS) ; do \
PYTHONPATH=$(DESTDIR)/usr/lib/python3/dist-packages \
- $$p ./setup.py install --prefix=$(DESTDIR)/usr --install-layout=deb ; \
+ $$p ./setup.py install --prefix=/usr --install-layout=deb \
+ --single-version-externally-managed --root=$(DESTDIR); \
done
dh_install -p libcmor2 libcmor.so.2 $(LIBDIR)
dh_install -p libcmor-dev libcmor.a $(LIBDIR)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/cmor.git
More information about the debian-science-commits
mailing list