[Spambayes-checkins] spambayes/windows/py2exe setup_all.py, 1.25, 1.26
Tony Meyer
anadelonbrin at users.sourceforge.net
Tue Feb 28 09:11:42 CET 2006
Update of /cvsroot/spambayes/spambayes/windows/py2exe
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4530/windows/py2exe
Modified Files:
setup_all.py
Log Message:
py2exe 0.6.4 introduces a new modulefinder, so our package paths have to be added to that, rather than the built-in modulefinder. If 0.6.4 isn't installed, then
just use the old system.
Index: setup_all.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/windows/py2exe/setup_all.py,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -d -r1.25 -r1.26
*** setup_all.py 27 Nov 2005 00:42:11 -0000 1.25
--- setup_all.py 28 Feb 2006 08:11:40 -0000 1.26
***************
*** 19,23 ****
# particularly for people who build from sources. Hook this in.
try:
! import modulefinder
import win32com
for p in win32com.__path__[1:]:
--- 19,30 ----
# particularly for people who build from sources. Hook this in.
try:
! # py2exe 0.6.4 introduced a replacement modulefinder.
! # This means we have to add package paths there, not to the built-in
! # one. If this new modulefinder gets integrated into Python, then
! # we might be able to revert this some day.
! try:
! import py2exe.mf as modulefinder
! except ImportError:
! import modulefinder
import win32com
for p in win32com.__path__[1:]:
More information about the Spambayes-checkins
mailing list