+try:
+ import py2exe
+ """This will create an exe that needs Microsoft Visual C++ 2008 Redistributable Package"""
+ py2exe_params = {
+ 'console': py2exe_console,
+ 'options': { "py2exe": py2exe_options },
+ 'zipfile': None
+ }
+except ImportError:
+ if 'py2exe' in sys.argv:
+ print("Cannot import py2exe", file=sys.stderr)
+ exit(1)
+ py2exe_params = {}
+
+# Get the version from youtube_dl/version.py without importing the package