debian/rules
author Paul Tonelli <paul.tonelli@logilab.fr>
Tue, 08 Apr 2014 15:28:12 +0200
changeset 1468 3644b206edb5
parent 1459 ffe0a265ba3e
child 1730 5038fc7cd776
permissions -rwxr-xr-x
[apycotlib] move checkers/preprocessors to have same organisation in dev and packages various necessary changes: - path updates - import cubes.apycot in tests to be sure _apycotlib is added to path - rename pylint checkers to pycheckers to avoid confusion with package checkers - fix js path in jslint.py why: If you install a pkg, the checkers are installed in:: /usr/share/narval/checkers/apycot/* and /usr/share/narval is added to the path when launching them. In a dev environment, they were previously in :: _apycotlib/checkers/* This required specific paths to make a dev environment work (added in __init__.py). The new organisation puts checkers in:: _apycotlib/checkers/apycot/* The new organisation only requires to add _apycotlib to path to make checkers work. Same thing was done for preprpocessors.

#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
build: build-arch build-indep
build-arch:
	# Nothing to do

build-indep: build-stamp
build-stamp:
	dh_testdir
	NO_SETUPTOOLS=1 python setup.py -q build
	>$@

clean:
	dh_testdir
	rm -f build-stamp
	rm -rf build
	find . -name "*.pyc" -delete
	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs -i
	NO_SETUPTOOLS=1 python setup.py -q install --no-compile --prefix=debian/tmp/usr/

# Build architecture-independent files here.
binary-indep: build install
	dh_testdir
	dh_testroot -i
	dh_install -i 
	dh_installchangelogs -i
	dh_installexamples -i
	dh_installdocs -i -A README
	dh_installman -i
	dh_pysupport -i /usr/share/cubicweb /usr/share/narval
	dh_link -i
	dh_compress -i -X.py -X.ini -X.xml -Xtest
	dh_fixperms -i
	dh_installdeb -i
	dh_gencontrol -i
	dh_md5sums -i
	dh_builddeb -i


# Build architecture-dependent files here.
binary-arch:

binary: binary-indep
.PHONY: build clean binary-arch binary-indep binary