[pkg] Get rid of "shared" data 3.26
authorDenis Laxalde <denis.laxalde@logilab.fr>
Thu, 15 Feb 2018 10:24:13 +0100
branch3.26
changeset 12270 0e89483f50a1
parent 12269 f607080b82a9
child 12271 1f792d76fca3
[pkg] Get rid of "shared" data These are not used anymore per previous changesets. Related to #17132990.
cubicweb/__pkginfo__.py
--- a/cubicweb/__pkginfo__.py	Thu Feb 15 10:11:16 2018 +0100
+++ b/cubicweb/__pkginfo__.py	Thu Feb 15 10:24:13 2018 +0100
@@ -21,8 +21,7 @@
 """
 import sys
 from os import listdir
-from os.path import join, isdir
-import glob
+from os.path import join
 
 
 modname = distname = "cubicweb"
@@ -44,11 +43,6 @@
 ]
 
 _server_migration_dir = join(modname, 'misc', 'migration')
-_data_dir = join(modname, 'web', 'data')
-_wdoc_dir = join(modname, 'web', 'wdoc')
-_wdocimages_dir = join(_wdoc_dir, 'images')
-_views_dir = join(modname, 'web', 'views')
-_i18n_dir = join(modname, 'i18n')
 
 _pyversion = '.'.join(str(num) for num in sys.version_info[0:2])
 if '--home' in sys.argv:
@@ -70,27 +64,7 @@
         [join('share', 'cubicweb', 'migration'),
          [join(_server_migration_dir, filename)
           for filename in listdir(_server_migration_dir)]],
-        # web data
-        [join('share', 'cubicweb', 'cubes', 'shared', 'data'),
-         [join(_data_dir, fname) for fname in listdir(_data_dir)
-          if not isdir(join(_data_dir, fname))]],
-        [join('share', 'cubicweb', 'cubes', 'shared', 'data', 'images'),
-         [join(_data_dir, 'images', fname) for fname in listdir(join(_data_dir, 'images'))]],
-        [join('share', 'cubicweb', 'cubes', 'shared', 'data', 'jquery-treeview'),
-         [join(_data_dir, 'jquery-treeview', fname) for fname in listdir(join(_data_dir, 'jquery-treeview'))
-          if not isdir(join(_data_dir, 'jquery-treeview', fname))]],
-        [join('share', 'cubicweb', 'cubes', 'shared', 'data', 'jquery-treeview', 'images'),
-         [join(_data_dir, 'jquery-treeview', 'images', fname)
-          for fname in listdir(join(_data_dir, 'jquery-treeview', 'images'))]],
-        [join('share', 'cubicweb', 'cubes', 'shared', 'wdoc'),
-         [join(_wdoc_dir, fname) for fname in listdir(_wdoc_dir)
-          if not isdir(join(_wdoc_dir, fname))]],
-        [join('share', 'cubicweb', 'cubes', 'shared', 'wdoc', 'images'),
-         [join(_wdocimages_dir, fname) for fname in listdir(_wdocimages_dir)]],
-        [join('share', 'cubicweb', 'cubes', 'shared', 'i18n'),
-         glob.glob(join(_i18n_dir, '*.po'))],
-        # skeleton
-        ]
+    ]
 except OSError:
     # we are in an installed directory, don't care about this
     pass