# HG changeset patch # User Adrien Di Mascio # Date 1247211393 -7200 # Node ID 6ba269240f3b6d5e0fcfa4f3322e03650de66615 # Parent e4229723b8242d28a261ce4e8f0cbb44099db900 [skeleton] the new implementation of data_files will never raise a OSError diff -r e4229723b824 -r 6ba269240f3b skeleton/__pkginfo__.py.tmpl --- a/skeleton/__pkginfo__.py.tmpl Thu Jul 09 20:13:54 2009 +0200 +++ b/skeleton/__pkginfo__.py.tmpl Fri Jul 10 09:36:33 2009 +0200 @@ -34,21 +34,16 @@ and not fname.endswith('~') and not isdir(join(dirpath, fname))] -try: - data_files = [ - # common files - [THIS_CUBE_DIR, [fname for fname in glob('*.py') if fname != 'setup.py']], - ] - # check for possible extended cube layout - for dirname in ('entities', 'views', 'sobjects', 'hooks', 'schema', 'data', 'i18n', 'migration'): - if isdir(dirname): - data_files.append([join(THIS_CUBE_DIR, dirname), listdir(dirname)]) - # Note: here, you'll need to add subdirectories if you want - # them to be included in the debian package -except OSError: - if exists(dirname(__file__)): - raise - # we are in an installed directory +data_files = [ + # common files + [THIS_CUBE_DIR, [fname for fname in glob('*.py') if fname != 'setup.py']], + ] +# check for possible extended cube layout +for dirname in ('entities', 'views', 'sobjects', 'hooks', 'schema', 'data', 'i18n', 'migration'): + if isdir(dirname): + data_files.append([join(THIS_CUBE_DIR, dirname), listdir(dirname)]) +# Note: here, you'll need to add subdirectories if you want +# them to be included in the debian package cube_eid = None # <=== FIXME if you need direct bug-subscription