From 1017e3c730d1789554f7d27fe562518fd31845d0 Mon Sep 17 00:00:00 2001 From: Virgil Dupras Date: Thu, 26 Jul 2012 12:48:47 -0400 Subject: [PATCH] Fixed dupeGuru building under virtualenv, which mistakenly didn't include distutils.sysconfig during the dependencies collection phase. --HG-- branch : xibless --- cocoa/me/dg_cocoa.py | 4 ++++ cocoa/pe/dg_cocoa.py | 3 +++ cocoa/se/dg_cocoa.py | 6 +++++- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/cocoa/me/dg_cocoa.py b/cocoa/me/dg_cocoa.py index 6d1a83d8..dbf7572f 100644 --- a/cocoa/me/dg_cocoa.py +++ b/cocoa/me/dg_cocoa.py @@ -11,3 +11,7 @@ from cocoa.inter import PySelectableList, PyColumns, PyTable from inter.all import * from inter.app_me import PyDupeGuru + +# When built under virtualenv, the dependency collector misses this module, so we have to force it +# to see the module. +import distutils.sysconfig \ No newline at end of file diff --git a/cocoa/pe/dg_cocoa.py b/cocoa/pe/dg_cocoa.py index f70d5f80..3fa05668 100644 --- a/cocoa/pe/dg_cocoa.py +++ b/cocoa/pe/dg_cocoa.py @@ -12,3 +12,6 @@ from cocoa.inter import PySelectableList, PyColumns, PyTable from inter.all import * from inter.app_pe import PyDupeGuru +# When built under virtualenv, the dependency collector misses this module, so we have to force it +# to see the module. +import distutils.sysconfig \ No newline at end of file diff --git a/cocoa/se/dg_cocoa.py b/cocoa/se/dg_cocoa.py index 59aaae07..1c4ae162 100644 --- a/cocoa/se/dg_cocoa.py +++ b/cocoa/se/dg_cocoa.py @@ -10,4 +10,8 @@ install_gettext_trans_under_cocoa() from cocoa.inter import PySelectableList, PyColumns, PyTable from inter.all import * -from inter.app_se import PyDupeGuru \ No newline at end of file +from inter.app_se import PyDupeGuru + +# When built under virtualenv, the dependency collector misses this module, so we have to force it +# to see the module. +import distutils.sysconfig \ No newline at end of file