~openshot.code/openshot/main

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Jonathan Thomas
  • Date: 2011-09-15 03:34:32 UTC
  • Revision ID: jonathan.oomph@gmail.com-20110915033432-i399kwtyyavp034e
Sorry, but I had to revert the patch from revision 507.  It was breaking the Debian packaging.  If the setup.py installs these files, then our "openshot" Debian package will install these files too.  Which then conflicts with our "openshot-docs" package.  So... I'm not sure the best way to fix this, so for now, I'm reverting.

Also, I reverted my recent changes the MANIFEST.in file, which excluded the help folders from our "setup.py sdist" command, which doesn't make any since... now that I think about it.  These folders need to be in our source distribution, but not installed by the setup.py.

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
        filepath = filepath.replace('openshot/', '')
53
53
        locale_files.append(filepath)
54
54
        
55
 
# Add the help files
56
 
help_files = []
57
 
for path in glob.glob(os.path.join('docs', 'gnome', '*')):
58
 
        lang = os.path.basename(path)
59
 
        if lang == 'figures':
60
 
                continue
61
 
        path_xml = os.path.join('share', 'gnome', 'help', 'openshot', lang)
62
 
        help_files.append((path_xml, glob.glob('%s/*.xml' % path)))
63
 
 
64
 
# figures are not locale-specific
65
 
figures = glob.glob(os.path.join('docs', 'gnome', 'figures', '*.png'))
66
 
figures_path = os.path.join('share', 'gnome', 'help', 'openshot', 'figures')
67
 
help_files.append((figures_path, figures))
68
 
figures = glob.glob(os.path.join('docs', 'gnome', 'figures', 'effects', '*.png'))
69
 
figures_path = os.path.join('share', 'gnome', 'help', 'openshot', 'figures', 'effects')
70
 
help_files.append((figures_path, figures))
71
 
figures = glob.glob(os.path.join('docs', 'gnome', 'figures', 'transitions', '*.png'))
72
 
figures_path = os.path.join('share', 'gnome', 'help', 'openshot', 'figures', 'transitions')
73
 
help_files.append((figures_path, figures))
74
 
 
75
 
# OMFs are in a different directory
76
 
omfs = glob.glob(os.path.join('docs', 'omf', '*.omf'))
77
 
omf_path = os.path.join('share', 'omf', 'openshot')
78
 
help_files.append((omf_path, omfs))
79
55
 
80
56
# Call the main Distutils setup command
81
57
# -------------------------------------
87
63
                                        'openshot.windows' : ['ui/*.ui', 'ui/icons/*'],
88
64
                                        'openshot.uploads' : ['logos/*.png'],
89
65
                                        },
90
 
         data_files = os_files + help_files,
 
66
         data_files = os_files,
91
67
         **info.SETUP
92
68
)
93
69
# -------------------------------------