[meld] Fixed working on windows with cx_freeze 5



commit 0de0da72febc7db67ca8b1bea3154dfd4edab521
Author: galkinvv <galkin-vv ya ru>
Date:   Tue Oct 10 04:15:13 2017 +0300

    Fixed working on windows with cx_freeze 5
    
    All libs are put in zip like cx_freeze 4
    __name__ used instead of __package__
    since the __package__ is not defined by cx_freeze 5

 meld/vc/__init__.py |    2 +-
 setup_win32.py      |    2 ++
 2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/meld/vc/__init__.py b/meld/vc/__init__.py
index 656167f..c699954 100644
--- a/meld/vc/__init__.py
+++ b/meld/vc/__init__.py
@@ -40,7 +40,7 @@ vc_names = (
     "darcs",
 )
 
-_plugins = [importlib.import_module("." + vc, __package__) for vc in vc_names]
+_plugins = [importlib.import_module("." + vc, __name__) for vc in vc_names]
 
 
 def get_plugins_metadata():
diff --git a/setup_win32.py b/setup_win32.py
index 5fcd622..b1679ab 100644
--- a/setup_win32.py
+++ b/setup_win32.py
@@ -67,6 +67,8 @@ build_exe_options = {
     "packages": ["gi", "weakref"],
     "include_files": include_files,
     "bin_path_excludes": [""],
+    "zip_exclude_packages": [],
+    "zip_include_packages": ["*"],
 }
 
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]