From: Kevin A. <ka...@us...> - 2004-07-22 22:15:36
|
Update of /cvsroot/pythoncard/PythonCard/tools/codeEditor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12213 Modified Files: codeEditor.py Added Files: macbuild.py Log Message: bundlebuilder script for codeEditor Index: codeEditor.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/tools/codeEditor/codeEditor.py,v retrieving revision 1.117 retrieving revision 1.118 diff -C2 -d -r1.117 -r1.118 *** codeEditor.py 19 Jul 2004 18:21:44 -0000 1.117 --- codeEditor.py 22 Jul 2004 22:15:12 -0000 1.118 *************** *** 25,28 **** --- 25,30 ---- import webbrowser + # KEA 2004-07-22 # force imports for components used in .rsrc.py file # so we can do a make standalones with py2exe and bundlebuilder from PythonCard.components import codeeditor + USERCONFIG = 'user.config.txt' --- NEW FILE: macbuild.py --- import os, sys import bundlebuilder # I set this to make adding subfolders into the package easier # KEA 2004-07-22 # rather than hard-coding the path # we'll just get the path from this module ##packageroot = "/Users/kevino/oss/eclass/eclass_builder" packageroot = os.path.abspath(os.path.dirname(__file__)) # for the purposes of building the standalone # change to the directory the build script is in to simplify imports os.chdir(packageroot) # Create the AppBuilder myapp = bundlebuilder.AppBuilder(verbosity=1) # Tell it where to find the main script - the one that loads on startup myapp.mainprogram = os.path.join(packageroot, "codeEditor.py") myapp.standalone = 1 myapp.name = "CodeEditor" # includePackages forces certain packages to be added to the app bundle ##myapp.includePackages.append("encodings") ##myapp.includePackages.append("_xmlplus") # KEA 2004-07-22 # force imports for components used in .rsrc.py file #from PythonCard.components import button, checkbox, combobox, list, statictext, textfield # Here you add supporting files and/or folders to your bundle ##myapp.resources.append(os.path.join(packageroot, "about")) ##myapp.resources.append(os.path.join(packageroot, "autorun")) ##myapp.resources.append(os.path.join(packageroot, "Graphics")) myapp.resources.append(os.path.join(packageroot, "scriptlets")) myapp.resources.append(os.path.join(packageroot, "codeEditor.rsrc.py")) myapp.resources.append(os.path.join(packageroot, "modules", "runOptionsDialog.rsrc.py")) # bundlebuilder does not yet have the capability to detect what shared libraries # are needed by your app - so in this case I am adding the wxPython libs manually myapp.libs.append("/usr/local/lib/libwx_mac-2.4.0.dylib") myapp.libs.append("/usr/local/lib/libwx_mac-2.4.0.rsrc") # Here we build the app! myapp.setup() myapp.build() |