Hi Anthony,

I am still having difficulties in getting the hook working

I havet his script

#test include_files

from PyQt4.phonon import Phonon

print('ok')

and this setupscript


import sys

from cx_Freeze import setup, Executable

base = None
if sys.platform == "win32":
     base = "Win32GUI"

#buildOptions = dict(
#        include_files = [("Freeze", "Freeze")]
#        )
#
#        options = dict(build_exe = buildOptions),

setup(
         name = "Beacon keyer",
         version = "0.1",
         description = "ww2r beacon keyer",
         executables = [Executable("test_include_files.py", base = base)])

and added this hook to hooks.py

def load_PyQt4_phonon(finder, module):
     """phonon requires the plugins\phonon_backend\phono_ds94.dll into 
<target>\phonon_backend"""
     print('phonon hook')
     if module.path==None: module.path=['']
     dir = os.path.join(module.path[0], "Freeze")
     finder.IncludeFiles(dir, "Freeze")


I see the print from the hook being printed as phonon hook.

but just after the long list of m ......

I get:

Missing modules:
? PyQt4.phonon.Phonon imported from test_include_files__main__


When I change to import PyQt4 and the hook to def load_PyQt4
I get the 'phonon hook' printed.
no missing modules this time, but no files included either

The setup buildoptions method does work.

Any suggestions to explore this problem further?


With best regards,


Frans.


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
cx-freeze-users mailing list
cx-freeze-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users

Reply via email to