__pkginfo__.py
changeset 6522 c46b3b3291e8
parent 6510 b06310fc4e23
parent 6516 6b2e1e8d3a22
child 6538 3fc6b4aaaff3
equal deleted inserted replaced
6515:6e998b1be7fd 6522:c46b3b3291e8
    94     # --home install
    94     # --home install
    95     pydir = 'python' + _pyversion
    95     pydir = 'python' + _pyversion
    96 else:
    96 else:
    97     pydir = join('python' + _pyversion, 'site-packages')
    97     pydir = join('python' + _pyversion, 'site-packages')
    98 
    98 
       
    99 # data files that shall be copied into the main package directory
       
   100 package_data = {
       
   101     'cubicweb.web.views':['*.pt'],
       
   102     }
       
   103 
    99 try:
   104 try:
       
   105     # data files that shall be copied outside the main package directory
   100     data_files = [
   106     data_files = [
   101         # server data
   107         # server data
   102         [join('share', 'cubicweb', 'schemas'),
   108         [join('share', 'cubicweb', 'schemas'),
   103          [join('schemas', filename) for filename in listdir('schemas')]],
   109          [join('schemas', filename) for filename in listdir('schemas')]],
   104         [join('share', 'cubicweb', 'migration'),
   110         [join('share', 'cubicweb', 'migration'),
   117           if not isdir(join(_wdoc_dir, fname))]],
   123           if not isdir(join(_wdoc_dir, fname))]],
   118         [join('share', 'cubicweb', 'cubes', 'shared', 'wdoc', 'images'),
   124         [join('share', 'cubicweb', 'cubes', 'shared', 'wdoc', 'images'),
   119          [join(_wdocimages_dir, fname) for fname in listdir(_wdocimages_dir)]],
   125          [join(_wdocimages_dir, fname) for fname in listdir(_wdocimages_dir)]],
   120         [join('share', 'cubicweb', 'cubes', 'shared', 'i18n'),
   126         [join('share', 'cubicweb', 'cubes', 'shared', 'i18n'),
   121          [join(_i18n_dir, fname) for fname in listdir(_i18n_dir)]],
   127          [join(_i18n_dir, fname) for fname in listdir(_i18n_dir)]],
   122         # XXX: drop .pt files
       
   123         [join('lib', pydir, 'cubicweb', 'web', 'views'),
       
   124          [join(_views_dir, fname) for fname in listdir(_views_dir)
       
   125           if fname.endswith('.pt')]],
       
   126         # skeleton
   128         # skeleton
   127         ]
   129         ]
   128 except OSError:
   130 except OSError:
   129     # we are in an installed directory, don't care about this
   131     # we are in an installed directory, don't care about this
   130     pass
   132     pass