misc: switch to setuptools (and update debian packaging to match) (#17960)
This commit is contained in:
parent
8b02623d5d
commit
968a40525f
|
@ -1 +1 @@
|
|||
5
|
||||
9
|
||||
|
|
|
@ -2,8 +2,8 @@ Source: wcs-au-quotidien
|
|||
Section: web
|
||||
Priority: optional
|
||||
Maintainer: Frederic Peters <fpeters@entrouvert.com>
|
||||
Build-Depends: debhelper (>= 5.0.37.2), python
|
||||
Build-Depends-Indep: python-support (>= 0.4), gettext, python-quixote
|
||||
Build-Depends: python-setuptools (>= 0.6b3), python-all (>= 2.6.6-3), dh-python, debhelper (>= 9)
|
||||
Build-Depends-Indep: gettext, python-quixote
|
||||
Standards-Version: 3.8.0.1
|
||||
X-Python-Version: current
|
||||
|
||||
|
|
|
@ -4,56 +4,8 @@
|
|||
# Uncomment this to turn on verbose mode.
|
||||
#export DH_VERBOSE=1
|
||||
|
||||
PYTHON=/usr/bin/python
|
||||
DESTDIR=$(CURDIR)/debian/wcs-au-quotidien
|
||||
%:
|
||||
dh $@ --with python2
|
||||
|
||||
build: build-stamp
|
||||
|
||||
build-stamp:
|
||||
dh_testdir
|
||||
touch build-stamp
|
||||
|
||||
clean:
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
rm -f build-stamp
|
||||
|
||||
rm -f po/*.mo
|
||||
python setup.py clean
|
||||
rm -rf build
|
||||
|
||||
dh_clean
|
||||
|
||||
install: build
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_clean -k
|
||||
dh_installdirs
|
||||
|
||||
$(PYTHON) setup.py install --prefix=$(DESTDIR)/usr --no-compile
|
||||
override_dh_install:
|
||||
cd po && make install prefix=$(CURDIR)/debian/wcs-au-quotidien/
|
||||
install -d -m 755 $(DESTDIR)/var/lib/wcs-au-quotidien $(DESTDIR)/etc/wcs
|
||||
install -m 644 wcs-au-quotidien.cfg-sample $(DESTDIR)/etc/wcs/wcs-au-quotidien.cfg
|
||||
|
||||
|
||||
# Build architecture-independent files here.
|
||||
binary-indep: build install
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_installdocs
|
||||
dh_installchangelogs
|
||||
dh_installinit
|
||||
dh_link
|
||||
dh_strip
|
||||
dh_compress
|
||||
dh_fixperms
|
||||
dh_pysupport
|
||||
dh_installdeb
|
||||
dh_gencontrol
|
||||
dh_md5sums
|
||||
dh_builddeb
|
||||
|
||||
binary-arch: build install
|
||||
|
||||
binary: binary-indep binary-arch
|
||||
.PHONY: build clean binary-indep binary-arch binary install
|
||||
|
|
3
setup.py
3
setup.py
|
@ -6,6 +6,7 @@ import distutils.core
|
|||
|
||||
from distutils.command.sdist import sdist
|
||||
from quixote.ptl.qx_distutils import qx_build_py
|
||||
from setuptools import setup
|
||||
|
||||
VERSION = '1.20'
|
||||
|
||||
|
@ -50,7 +51,7 @@ class eo_sdist(sdist):
|
|||
if os.path.exists('VERSION'):
|
||||
os.remove('VERSION')
|
||||
|
||||
distutils.core.setup(
|
||||
setup(
|
||||
name = 'wcs-au-quotidien',
|
||||
version = get_version(),
|
||||
maintainer = 'Frederic Peters',
|
||||
|
|
Reference in New Issue