[Python-modules-commits] [fparser] 06/06: Package now builds python, python3 versions
Alastair McKinstry
mckinstry at moszumanska.debian.org
Wed Jul 26 09:33:11 UTC 2017
This is an automated email from the git hooks/post-receive script.
mckinstry pushed a commit to branch debian/master
in repository fparser.
commit a1b437f27b7686e5a953dedd99b9105356842d9f
Author: Alastair McKinstry <mckinstry at debian.org>
Date: Wed Jul 26 07:18:57 2017 +0100
Package now builds python, python3 versions
---
debian/python-fparser.install | 1 -
debian/python3-fparser.install | 1 -
debian/rules | 22 ++++++++++++++++------
3 files changed, 16 insertions(+), 8 deletions(-)
diff --git a/debian/python-fparser.install b/debian/python-fparser.install
deleted file mode 100644
index 9e364b5..0000000
--- a/debian/python-fparser.install
+++ /dev/null
@@ -1 +0,0 @@
-usr/lib/python2*
\ No newline at end of file
diff --git a/debian/python3-fparser.install b/debian/python3-fparser.install
deleted file mode 100644
index d44e49e..0000000
--- a/debian/python3-fparser.install
+++ /dev/null
@@ -1 +0,0 @@
-usr/lib/python3*
\ No newline at end of file
diff --git a/debian/rules b/debian/rules
index 65e701b..3969c47 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,13 +1,23 @@
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
-# export DH_VERBOSE=1
+export DH_VERBOSE=1
# magic debhelper rule
%:
- dh $@ --with python2
+ dh $@ --with python2,python3
-#override_dh_auto_install:
-# set -e && for py3vers in $(shell py3versions -sv); do \
-# python$$py3vers setup.py install --install-layout=deb \
-# --root $(CURDIR)/debian/python3-gsw; \
+override_dh_auto_install:
+ python2 setup.py install --install-layout=deb \
+ --root $(CURDIR)/debian/python-fparser
+ set -e && for py3vers in $(shell py3versions -sv); do \
+ python$$py3vers setup.py install --install-layout=deb \
+ --root $(CURDIR)/debian/python3-fparser; \
+ done
+ -find . -name __pycache__ -exec rm -rf {} \;
+
+
+override_dh_auto_clean:
+ # dh_auto_clean avoid bug where this calls python, not python3
+ python3 setup.py clean
+ rm -fr build src/fparser.egg-info
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/fparser.git
More information about the Python-modules-commits
mailing list