Projet

Général

Profil

« Précédent | Suivant » 

Révision 968a4052

Ajouté par Frédéric Péters il y a plus de 6 ans

misc: switch to setuptools (and update debian packaging to match) (#17960)

Voir les différences:

debian/compat
1
5
1
9
debian/control
2 2
Section: web
3 3
Priority: optional
4 4
Maintainer: Frederic Peters <fpeters@entrouvert.com>
5
Build-Depends: debhelper (>= 5.0.37.2), python
6
Build-Depends-Indep: python-support (>= 0.4), gettext, python-quixote
5
Build-Depends: python-setuptools (>= 0.6b3), python-all (>= 2.6.6-3), dh-python, debhelper (>= 9)
6
Build-Depends-Indep: gettext, python-quixote
7 7
Standards-Version: 3.8.0.1
8 8
X-Python-Version: current
9 9

  
debian/rules
4 4
# Uncomment this to turn on verbose mode.
5 5
#export DH_VERBOSE=1
6 6

  
7
PYTHON=/usr/bin/python
8
DESTDIR=$(CURDIR)/debian/wcs-au-quotidien
7
%:
8
	dh $@ --with python2
9 9

  
10
build: build-stamp
11

  
12
build-stamp:
13
	dh_testdir
14
	touch build-stamp
15

  
16
clean:
17
	dh_testdir
18
	dh_testroot
19
	rm -f build-stamp
20

  
21
	rm -f po/*.mo
22
	python setup.py clean
23
	rm -rf build
24

  
25
	dh_clean
26

  
27
install: build
28
	dh_testdir
29
	dh_testroot
30
	dh_clean -k
31
	dh_installdirs
32

  
33
	$(PYTHON) setup.py install --prefix=$(DESTDIR)/usr --no-compile
10
override_dh_install:
34 11
	cd po && make install prefix=$(CURDIR)/debian/wcs-au-quotidien/
35
	install -d -m 755 $(DESTDIR)/var/lib/wcs-au-quotidien $(DESTDIR)/etc/wcs
36
	install -m 644 wcs-au-quotidien.cfg-sample $(DESTDIR)/etc/wcs/wcs-au-quotidien.cfg
37

  
38

  
39
# Build architecture-independent files here.
40
binary-indep: build install
41
	dh_testdir
42
	dh_testroot
43
	dh_installdocs
44
	dh_installchangelogs
45
	dh_installinit
46
	dh_link
47
	dh_strip
48
	dh_compress
49
	dh_fixperms
50
	dh_pysupport
51
	dh_installdeb
52
	dh_gencontrol
53
	dh_md5sums
54
	dh_builddeb
55

  
56
binary-arch: build install
57

  
58
binary: binary-indep binary-arch
59
.PHONY: build clean binary-indep binary-arch binary install
setup.py
6 6

  
7 7
from distutils.command.sdist import sdist
8 8
from quixote.ptl.qx_distutils import qx_build_py
9
from setuptools import setup
9 10

  
10 11
VERSION = '1.20'
11 12

  
......
50 51
        if os.path.exists('VERSION'):
51 52
            os.remove('VERSION')
52 53

  
53
distutils.core.setup(
54
setup(
54 55
        name = 'wcs-au-quotidien',
55 56
        version = get_version(),
56 57
        maintainer = 'Frederic Peters',

Formats disponibles : Unified diff