[med-svn] [pymia] 01/07: try following the new python guide
Gert Wollny
gert-guest at moszumanska.debian.org
Tue Dec 10 11:10:35 UTC 2013
This is an automated email from the git hooks/post-receive script.
gert-guest pushed a commit to branch master
in repository pymia.
commit 8d6e79cea5ae05ea7ff411172c9ad41ed30459d3
Author: Gert Wollny <gw.fossdev at gmail.com>
Date: Mon Dec 9 18:45:40 2013 +0100
try following the new python guide
---
debian/rules | 102 ++++++++++++++++++++++++++++++-----------------------------
1 file changed, 52 insertions(+), 50 deletions(-)
diff --git a/debian/rules b/debian/rules
index 9bac6b2..d5d3ca3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,57 +3,59 @@
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
-PACKAGE_DIR=$(CURDIR)/debian/python$(if $(patsubst 3.%,,$(1)),,3)-mia
-INSTALL_DIR=$(CURDIR)/debian/tmp/
-PYTHON2=$(shell pyversions -vr)
-PYTHON3=$(shell py3versions -vr)
+#PACKAGE_DIR=$(CURDIR)/debian/python$(if $(patsubst 3.%,,$(1)),,3)-mia
+#INSTALL_DIR=$(CURDIR)/debian/tmp/
+#PYTHON2=$(shell pyversions -vr)
+#PYTHON3=$(shell py3versions -vr)
-ifneq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
-DEB_CXXFLAGS_MAINT_STRIP=-O2
-DEB_CXXFLAGS_MAINT_APPEND=-O0
-endif
+#ifneq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
+#DEB_CXXFLAGS_MAINT_STRIP=-O2
+#DEB_CXXFLAGS_MAINT_APPEND=-O0
+#endif
+
+export PYBUILD_NAME=mia
%:
- dh $@ --with python2,python3
-
-
-override_dh_auto_build:
- dh_auto_build --buildsystem=python_distutils
- set -e; \
- for python in $(PYTHON3); do \
- python$$python setup.py build; \
- python$$python-dbg setup.py build; \
- done
-
-override_dh_auto_install:
- set -e; \
- for python in $(PYTHON2); do \
- python$$python setup.py install --install-layout=deb --root=$(INSTALL_DIR); \
- done
- set -e; \
- for python in $(PYTHON2); do \
- python$$python-dbg setup.py install --install-layout=deb --root=$(INSTALL_DIR); \
- done
- set -e; \
- for python in $(PYTHON3); do \
- python$$python setup.py install --install-layout=deb --root=$(INSTALL_DIR); \
- done
- set -e; \
- for python in $(PYTHON3); do \
- python$$python-dbg setup.py install --install-layout=deb --root=$(INSTALL_DIR); \
- done
- dh_numpy
- dh_numpy3
-
-
-override_dh_strip:
-ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
- dh_strip -ppython-mia --dbg-package=python-mia-dbg
- dh_strip -ppython3-mia --dbg-package=python3-mia-dbg
-endif
-
-
-override_dh_clean:
- dh_clean
- rm -rf build
+ dh $@ --with python2,python3 --buildsystem=pybuild
+
+
+#override_dh_auto_build:
+# dh_auto_build --buildsystem=python_distutils
+# set -e; \
+# for python in $(PYTHON3); do \
+# python$$python setup.py build; \
+# python$$python-dbg setup.py build; \
+# done
+
+#override_dh_auto_install:
+# set -e; \
+# for python in $(PYTHON2); do \
+# python$$python setup.py install --install-layout=deb --root=$(INSTALL_DIR); \
+# done
+# set -e; \
+## for python in $(PYTHON2); do \
+# python$$python-dbg setup.py install --install-layout=deb --root=$(INSTALL_DIR); \
+# done
+# set -e; \
+# for python in $(PYTHON3); do \
+# python$$python setup.py install --install-layout=deb --root=$(INSTALL_DIR); \
+# done
+# set -e; \
+# for python in $(PYTHON3); do \
+# python$$python-dbg setup.py install --install-layout=deb --root=$(INSTALL_DIR); \
+# done
+# dh_numpy
+# dh_numpy3
+#
+
+#override_dh_strip:
+#ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
+# dh_strip -ppython-mia --dbg-package=python-mia-dbg
+# dh_strip -ppython3-mia --dbg-package=python3-mia-dbg
+#endif
+
+
+#override_dh_clean:
+# dh_clean
+# rm -rf build
--
Alioth's /git/debian-med/git-commit-notice on /srv/git.debian.org/git/debian-med/pymia.git
More information about the debian-med-commit
mailing list