From 04546db7b07298a7c2597dbeebbbf617342ebff5 Mon Sep 17 00:00:00 2001 From: Yen Chi Hsuan Date: Sun, 17 Jan 2016 17:39:09 +0800 Subject: [PATCH] [setup.py] Fix for Python 3.2 --- setup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 230ff33ee..bae063eee 100644 --- a/setup.py +++ b/setup.py @@ -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 = {