summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorAlexandre Fayolle <alexandre.fayolle@logilab.fr>2009-07-02 10:05:59 +0200
committerAlexandre Fayolle <alexandre.fayolle@logilab.fr>2009-07-02 10:05:59 +0200
commit3d97c36353fcc9cbc4e769b14c3a495f2843c01e (patch)
tree904b5dee645a78386321a2b74e89ea052a711715 /debian/rules
parente48dd359d591deb0c071e499664d8a8354dac930 (diff)
downloadpylint-3d97c36353fcc9cbc4e769b14c3a495f2843c01e.tar.gz
backported Debian packaging stuff from Debian
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules10
1 files changed, 7 insertions, 3 deletions
diff --git a/debian/rules b/debian/rules
index b1d09f9..725d29e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -25,7 +25,9 @@ clean:
find . -name "*.pyc" -delete
- dh_clean build-stamp build
+ rm -rf build
+
+ dh_clean build-stamp
install: build
dh_testdir
@@ -33,9 +35,11 @@ install: build
dh_clean -k
dh_installdirs
- NO_SETUPTOOLS=1 python setup.py -q install --no-compile --prefix=debian/pylint/usr/
+ NO_SETUPTOOLS=1 python setup.py -q install --no-compile \
+ --root=$(CURDIR)/debian/pylint \
+ --install-layout=deb
- rm -rf debian/pylint/usr/lib/python*/site-packages/pylint/test
+ rm -rf debian/pylint/usr/lib/python*/*-packages/pylint/test
# fixes shebangs
for exec in pylint pylint-gui symilar ; do \