From e4e112bde13d79d4648b7f366c726a64577fd83b Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Fri, 3 Sep 2010 21:50:42 +0200 Subject: Hook into apt pipeline --- setup.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index ef0b612..f79ef8e 100644 --- a/setup.py +++ b/setup.py @@ -3,9 +3,24 @@ from distutils.core import setup +data_files = [] + +try: + import lsb_release + if lsb_release.get_distro_information()['ID'] in [ 'Debian' ]: + data_files = [('../etc/apt/apt.conf.d/', + ['apt/50whatmaps_apt']), + ('../etc/apt/apt.conf.d/', + ['apt/20services']), + ] +except ImportError: + pass + setup(name = "whatmaps", author = 'Guido Günther', author_email = 'agx@sigxcpu.org', - scripts = [ 'whatmaps' ] + data_files = data_files, + scripts = [ 'whatmaps' ], ) +# vim:et:ts=4:sw=4:et:sts=4:ai:set list listchars=tab\:»·,trail\:·: -- cgit v1.2.3