aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--setup-files/windows/setup.py37
1 files changed, 24 insertions, 13 deletions
diff --git a/setup-files/windows/setup.py b/setup-files/windows/setup.py
index 4492862..0e013d3 100644
--- a/setup-files/windows/setup.py
+++ b/setup-files/windows/setup.py
@@ -29,45 +29,53 @@ packages = [
'lvc.qtfaststart',
]
+
def resources_dir():
return os.path.dirname(resources.__file__)
+
def resource_data_files(subdir, globspec='*.*'):
dest_dir = os.path.join("resources", subdir)
dir_contents = glob(os.path.join(resources_dir(), subdir, globspec))
return [(dest_dir, dir_contents)]
+
def ffmpeg_data_files():
ffmpeg_dir = os.path.join(env_path, 'ffmpeg')
return [
- ('ffmpeg',
- [os.path.join(ffmpeg_dir, 'ffmpeg.exe')]),
- #('ffmpeg/presets',
- #glob(os.path.join(ffmpeg_dir, 'presets', '*.ffpreset'))),
- ]
+ ('ffmpeg',
+ [os.path.join(ffmpeg_dir, 'ffmpeg.exe')]),
+ # ('ffmpeg/presets',
+ # glob(os.path.join(ffmpeg_dir, 'presets', '*.ffpreset'))),
+ ]
+
def winsparkle_data_files():
winsparkle_dll = os.path.join(env_path, 'WinSparkle-0.3',
"WinSparkle.dll")
return [
- ('', [winsparkle_dll]),
+ ('', [winsparkle_dll]),
]
+
def gtk_theme_data_files():
engine_path = os.path.join(env_path, 'gtk2-themes-2009-09-07-win32_bin',
- 'lib', 'gtk-2.0', '2.10.0', 'engines', 'libclearlooks.dll')
+ 'lib', 'gtk-2.0', '2.10.0', 'engines',
+ 'libclearlooks.dll')
gtkrc_path = os.path.join(resources_dir(), 'windows', 'gtkrc')
return [
- ('etc/gtk-2.0', [gtkrc_path]),
- ('lib/gtk-2.0/2.10.0/engines', [engine_path])
+ ('etc/gtk-2.0', [gtkrc_path]),
+ ('lib/gtk-2.0/2.10.0/engines', [engine_path])
]
+
def avconv_data_files():
avconv_dir = os.path.join(env_path, 'avconv')
return [
- ('avconv',
- glob(os.path.join(avconv_dir, '*.*'))),
- ]
+ ('avconv',
+ glob(os.path.join(avconv_dir, '*.*'))),
+ ]
+
def data_files():
return list(itertools.chain(
@@ -76,15 +84,18 @@ def data_files():
ffmpeg_data_files(),
winsparkle_data_files(),
gtk_theme_data_files(),
- #avconv_data_files(),
+ # avconv_data_files(),
))
+
def gtk_includes():
return ['gtk', 'gobject', 'atk', 'pango', 'pangocairo', 'gio']
+
def py2exe_includes():
return gtk_includes()
+
class bdist_nsis(Command):
description = "create MVC installer using NSIS"
user_options = [