[pkg] create the checkers and preprocesors folders in /usr/share/narval
authorPaul Tonelli <paul.tonelli@logilab.fr>
Fri, 18 Apr 2014 14:22:57 +0200
changeset 1489 286b8e16ffe4
parent 1488 05ddbef90877
child 1490 072edbeebb42
[pkg] create the checkers and preprocesors folders in /usr/share/narval these folders where previously created by narval. They are part of what is added by apycot and should therefore be created by apycot. The main changes is to include the __init__ files at the root folder of checkers and preprocessors.
__pkginfo__.py
debian/narval-apycot.install
--- a/__pkginfo__.py	Wed Apr 09 11:37:31 2014 +0200
+++ b/__pkginfo__.py	Fri Apr 18 14:22:57 2014 +0200
@@ -57,8 +57,12 @@
 # them to be included in the debian package
 
 if isdir('_apycotlib'): # test REQUIRED (to beimportable from everywhere)
+    data_files.append([join('share', 'narval', 'checkers'),
+                       listdir(join('_apycotlib', 'checkers'))])
     data_files.append([join('share', 'narval', 'checkers', modname),
                        listdir(join('_apycotlib', 'checkers', modname))])
+    data_files.append([join('share', 'narval', 'preprocessors'),
+                       listdir(join('_apycotlib', 'preprocessors'))])
     data_files.append([join('share', 'narval', 'preprocessors', modname),
                        listdir(join('_apycotlib', 'preprocessors', modname))])
 if isdir('ext'): # test REQUIRED (to beimportable from everywhere)
--- a/debian/narval-apycot.install	Wed Apr 09 11:37:31 2014 +0200
+++ b/debian/narval-apycot.install	Fri Apr 18 14:22:57 2014 +0200
@@ -1,4 +1,4 @@
-usr/share/narval/checkers/apycot
-usr/share/narval/preprocessors/apycot
+usr/share/narval/checkers
+usr/share/narval/preprocessors
 usr/share/narval/data
 usr/lib/python*