From f9cedee608cac5f80189d6c84546c23585dbe776 Mon Sep 17 00:00:00 2001 From: SeBa Date: Tue, 5 Mar 2019 15:40:32 -0300 Subject: [PATCH 1/2] Update setup.py --- setup.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/setup.py b/setup.py index 6d0551a3f..68b74eafa 100644 --- a/setup.py +++ b/setup.py @@ -76,7 +76,7 @@ import designer except ImportError: # el script pyfpdf/tools/designer.py no esta disponible: - print "IMPORTANTE: no se incluye el diseƱador de plantillas PDF" + print("IMPORTANTE: no se incluye el diseƱador de plantillas PDF") # parametros para setup: kwargs = {} @@ -94,10 +94,10 @@ )] # fix permission denied runtime error on win32com.client.gencache.GenGeneratePath # (expects a __init__.py not pyc, also dicts.dat pickled or _LoadDicts/_SaveDicts will fail too) - # NOTE: on windows 8.1 64 bits, this is stored in C:\Users\REINGART\AppData\\Local\Temp\gen_py\2.7 - from win32com.client import gencache - gen_py_path = gencache.GetGeneratePath() or "C:\Python27\lib\site-packages\win32com\gen_py" - data_files += [( + # NOTE: on windows 8.1 64 bits, this is stored in C:\Users\REINGART\AppData\\Local\Temp\gen_py\2.7 + from win32com.client import gencache + gen_py_path = gencache.GetGeneratePath() or "C:\Python27\lib\site-packages\win32com\gen_py" + data_files += [( r"win32com\gen_py", [os.path.join(gen_py_path, "__init__.py"), os.path.join(gen_py_path, "dicts.dat")], @@ -114,7 +114,7 @@ "C:\python25\MSVCR71.dll", "C:\python25\lib\site-packages\wx-2.8-msw-unicode\wx\gdiplus.dll", ]) - + # includes for py2exe includes=['email.generator', 'email.iterators', 'email.message', 'email.utils', 'email.mime.text', 'email.mime.application', 'email.mime.multipart'] if 'pyi25' in globals() or 'pyfepdf' in globals(): From 3f2147a5cb9d08a9197afe72c4da24a1b860e332 Mon Sep 17 00:00:00 2001 From: SeBa Date: Tue, 5 Mar 2019 15:42:10 -0300 Subject: [PATCH 2/2] Update setup.py --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 68b74eafa..7432f3453 100644 --- a/setup.py +++ b/setup.py @@ -114,7 +114,7 @@ "C:\python25\MSVCR71.dll", "C:\python25\lib\site-packages\wx-2.8-msw-unicode\wx\gdiplus.dll", ]) - + # includes for py2exe includes=['email.generator', 'email.iterators', 'email.message', 'email.utils', 'email.mime.text', 'email.mime.application', 'email.mime.multipart'] if 'pyi25' in globals() or 'pyfepdf' in globals():