[setup.py] Fix for Python 3.2

This commit is contained in:
Yen Chi Hsuan 2016-01-17 17:39:09 +08:00
parent b42444d38b
commit 04546db7b0

View File

@ -44,10 +44,14 @@ py2exe_options = {
"dll_excludes": ['w9xpopen.exe', 'crypt32.dll'],
}
def u(s):
return s.decode('utf-8')
py2exe_console = [{
"script": "./youtube_dl/__main__.py",
"dest_base": "youtube-dl",
"other_resources": [(u'LOCALE_DATA', u'LOCALE_DATA.ZIP', zipped_folder('share'))],
"other_resources": [(u(b'LOCALE_DATA'), u(b'LOCALE_DATA.ZIP'), zipped_folder('share'))],
}]
py2exe_params = {