[meld] vc: Explicitly import VC plugin modules to help cx_Freeze's detection
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] vc: Explicitly import VC plugin modules to help cx_Freeze's detection
- Date: Sun, 25 May 2014 20:06:46 +0000 (UTC)
commit 8b3c1453e76eb7e49dd2bc5b196fe79b2f80f5a1
Author: Kai Willadsen <kai willadsen gmail com>
Date: Mon May 26 05:52:03 2014 +1000
vc: Explicitly import VC plugin modules to help cx_Freeze's detection
Without this patch, the modules end up not being bundled in the
resulting libraries zip, even though the meld.vc package is explicitly
included.
meld/vc/__init__.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/meld/vc/__init__.py b/meld/vc/__init__.py
index 37270ac..1eaf3a1 100644
--- a/meld/vc/__init__.py
+++ b/meld/vc/__init__.py
@@ -26,6 +26,10 @@ import importlib
from . import _null
from ._vc import DATA_NAME, DATA_STATE, DATA_REVISION, DATA_OPTIONS
+# FIXME: This is a horrible hack to help cx_Freeze pick up these plugins when
+# freezing the distributable package.
+from . import (
+ git, mercurial, bzr, fossil, monotone, darcs, svk, svn, svn_17, cvs)
# Tuple with module name and vc.NAME field, ordered according to best-guess
# as to which VC a user is likely to want by default in a multiple-VC situation
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]