[Python-modules-commits] r24457 - in packages/python-flake8/trunk/debian (rules)
cjohnston-guest at users.alioth.debian.org
cjohnston-guest at users.alioth.debian.org
Sun May 19 22:29:25 UTC 2013
Date: Sunday, May 19, 2013 @ 22:29:23
Author: cjohnston-guest
Revision: 24457
Fix rules
Modified:
packages/python-flake8/trunk/debian/rules
Modified: packages/python-flake8/trunk/debian/rules
===================================================================
--- packages/python-flake8/trunk/debian/rules 2013-05-19 21:55:53 UTC (rev 24456)
+++ packages/python-flake8/trunk/debian/rules 2013-05-19 22:29:23 UTC (rev 24457)
@@ -1,9 +1,31 @@
#!/usr/bin/make -f
-# -*- makefile -*-
+PY2_PACKAGE_NAME=python-flake8
+PY3_PACKAGE_NAME=python3-flake8
+
+PYVERS=$(shell pyversions -r)
+PY3VERS=$(shell py3versions -r)
+
%:
- dh $@ --with python2
+ dh $@ --with python2,python3
override_dh_auto_clean:
rm -rf flake8.egg-info
dh_auto_clean
+override_dh_auto_build:
+ set -xe; \
+ for py in $(PYVERS) $(PY3VERS); do \
+ $$py setup.py build; \
+ done
+
+ # Remove me when dh_python2 can handle this file
+ rm -vf debian/*/usr/lib/python*/*-packages/*.egg-info/SOURCES.txt
+
+override_dh_python2:
+ dh_python2 --shebang=/usr/bin/python
+
+override_dh_python3:
+ dh_python3 --shebang=/usr/bin/python3
+
+override_dh_installchangelogs:
+ dh_installchangelogs CHANGES.rst
More information about the Python-modules-commits
mailing list