### makeapplication.py from bundlebuilder import buildapp buildapp( name='Blinklync.app', # what to build mainprogram='lync.py', # your app's main() argv_emulation=1, # drag&dropped filenames show up in sys.argv iconfile='myapp.icns', # file containing your app's icons standalone=1, # make this app self contained. includeModules=[], # list of additional Modules to force in includePackages=[], # list of additional Packages to force in libs=[], # list of shared libs or Frameworks to include ) ### end of makeapplication.py
from bundlebuilder import buildapp buildapp( name='HelloWorld.app', # what to build mainprogram='hello_world.py', # your app's main() argv_emulation=1, # drag&dropped filenames show up in sys.argv iconfile='myapp.icns', # file containing your app's icons standalone=1, # make this app self contained. includeModules=[], # list of additional Modules to force in includePackages=[], # list of additional Packages to force in libs=[], # list of shared libs or Frameworks to include )
### makeapplication.py from bundlebuilder import buildapp import glob, os package_root = '/Users/emonson/Programming/Python/VTK/MultiScaleSVD' qt_root = '/usr/local/Trolltech/Qt-4.7.0/lib' lib_list = [] resource_list = [] buildapp( name='load_only.app', # what to build mainprogram='load_only.py', # your app's main() # argv_emulation=1, # drag&dropped filenames show up in sys.argv # iconfile='myapp.icns', # file containing your app's icons standalone=1, # make this app self contained. includeModules=['encodings.ascii','encodings.utf_8'], # list of additional Modules to force in includePackages=[], # list of additional Packages to force in resources=resource_list, libs=lib_list, # list of shared libs or Frameworks to include ) ### end of makeapplication.py
#!/usr/bin/env python from bundlebuilder import buildapp buildapp( mainprogram = "LogInit.py", resources = ["LogInit.nib"], nibname = "LogInit", )
import os from bundlebuilder import buildapp from plistlib import Plist, Dict plist = Plist( CFBundleDocumentTypes=[ Dict( CFBundleTypeExtensions=["py", "pyw"], CFBundleTypeName="Python File", CFBundleTypeRole="Editor", NSDocumentClass="PyDEPythonDocument", ) ] ) buildapp( name="PyDE", mainprogram="main.py", resources=[os.path.join("Resources", x) for x in os.listdir("Resources") if x != "CVS"] + ["pythonfile.py", "PyDETextView.py", "PyFontify.py"], nibname="MainMenu.nib", plist=plist, )
from bundlebuilder import buildapp buildapp( name="QtPlaskin", mainprogram="qtplaskin.py", resources=["mainwindow.py", "zdplaskin.py", "runner.py", "mplwidget.py", "modeldata.py"], iconfile='qtplaskin2.icns' )
#!/usr/bin/env python from bundlebuilder import buildapp buildapp( mainprogram = "Sc21Viewer.py", resources = ["English.lproj" ], nibname = "MainMenu", )
# # After running python setup.py install, run this program from the command # line like so: # # % python2.3 buildapp.py build # # A double-clickable IDLE application will be created in the build/ directory. # from bundlebuilder import buildapp buildapp( name="IDLE", mainprogram="idle.py", argv_emulation=1, iconfile="Icons/idle.icns", )
# import os, glob from bundlebuilder import buildapp # See below. Set to wherever your wxMac dynlibs are installed. # (Probably /usr/local/lib/wxPython-2.5.2.?/lib) If you don't use all # the contribs libs then you can use a more restrictive list. wxLibs = "/opt/wx/2.5/lib/libwx*2.5.2.[dr]*" buildapp( name = "SuperDoodle", mainprogram = "superdoodle.py", # This tells bundlebuilder to include Python and everything else # that it needs to run the app standalone = 1, # Bunndlebuilder isn't yet able to find the shared libs that may be # needed by extension modules, so we have to help it out. libs = glob.glob(wxLibs), # Some modules will not be found automatically, so we need to help includeModules = ["cStringIO"], verbosity = 1 )
from bundlebuilder import buildapp from plistlib import Plist, Dict plist = Plist( CFBundleDocumentTypes = [ Dict( CFBundleTypeExtensions = ["txt", "text", "*"], CFBundleTypeName = "Text File", CFBundleTypeRole = "Editor", NSDocumentClass = "FuseDocument", ), ] ) buildapp( mainprogram = "fuse_gui_client.py", nibname = "MainMenu", resources = ["MainMenu.nib", "FuseDocument.nib", "client.py", "events.py"], plist = plist )
import os from bundlebuilder import buildapp from plistlib import Plist, Dict plist = Plist( CFBundleDocumentTypes = [ Dict( CFBundleTypeExtensions = [ "py", "pyw" ], CFBundleTypeName = "Python File", CFBundleTypeRole = "Editor", NSDocumentClass = "PyDEPythonDocument", ), ], ) buildapp( name = "PyDE", mainprogram = "main.py", resources = [ os.path.join("Resources", x) for x in os.listdir("Resources") if x != 'CVS' ] + [ 'pythonfile.py', 'PyDETextView.py', 'PyFontify.py'], nibname = "MainMenu.nib", plist = plist, )
# NOTE: Don't need to copy all of these libraries here, because it'll be taken # care of during dependency checks in MSSVD_OSX_MakeStandAloneBundle.cmake # libpath = '/usr/local/lib/vtk-5.7/' # for libfile in glob.glob( os.path.join(libpath, 'libvtk*.dylib') ): # liblist.append(libfile) # # libpath = '/Users/emonson/Programming/VTK_git/vtkVTG/build/bin' # for libfile in glob.glob( os.path.join(libpath, 'libvtk*.dylib') ): # lib_list.append(libfile) # liblist.append('/Users/emonson/Programming/VTK_git/vtkVTG/build/bin/libvtkvtgCharts.dylib') # liblist.append('/Users/emonson/Programming/VTK_git/vtkVTG/build/bin/libvtkvtgChartsPython.so') # liblist.append('/Users/emonson/Programming/VTK_git/vtkVTG/build/bin/libvtkvtgChartsPythonD.dylib') buildapp( name='MS_SVD_vis_20121107.app', # what to build mainprogram='main.py', # your app's main() # argv_emulation=1, # drag&dropped filenames show up in sys.argv # iconfile='myapp.icns', # file containing your app's icons standalone=1, # make this app self contained. # encodings.utf_8 is necessary for loading cell arrays of strings includeModules=['sip'], # list of additional Modules to force in includePackages=['vtk','vtkvtg','PyQt4','encodings'], # list of additional Packages to force in resources=resource_list, libs=lib_list, # list of shared libs or Frameworks to include ) ### end of makeapplication.py
from bundlebuilder import buildapp from plistlib import Plist, Dict plist = Plist( CFBundleDocumentTypes = [ Dict( CFBundleTypeExtensions = ["xml", "xml.gz", "*"], CFBundleTypeName = "XML File", CFBundleTypeRole = "Editor", NSDocumentClass = "ImageDocument", ), Dict( CFBundleTypeExtensions = ["dwg"], CFBundleTypeName = "DWG File", CFBundleTypeRole = "Viewer", NSDocumentClass = "ImageDocument", ), ] ) buildapp( mainprogram = "PythonCad.py", resources = ["PythonCAD/Interface/Cocoa/MainMenu.nib", "PythonCAD/Interface/Cocoa/ImageDocument.nib", "PythonCAD", "prefs.py"], nibname = "MainMenu", plist = plist, )
#!/usr/bin/env python from bundlebuilder import buildapp buildapp( mainprogram="Sc21Viewer.py", resources=["English.lproj"], nibname="MainMenu", )
from bundlebuilder import buildapp from plistlib import Plist, Dict plist = Plist(CFBundleDocumentTypes=[ Dict( CFBundleTypeExtensions=["xml", "xml.gz", "*"], CFBundleTypeName="XML File", CFBundleTypeRole="Editor", NSDocumentClass="ImageDocument", ), Dict( CFBundleTypeExtensions=["dwg"], CFBundleTypeName="DWG File", CFBundleTypeRole="Viewer", NSDocumentClass="ImageDocument", ), ]) buildapp( mainprogram="PythonCad.py", resources=[ "PythonCAD/Interface/Cocoa/MainMenu.nib", "PythonCAD/Interface/Cocoa/ImageDocument.nib", "PythonCAD", "prefs.py" ], nibname="MainMenu", plist=plist, )
# Just a simple shell around bundlebuilder. from bundlebuilder import buildapp buildapp()
#!/usr/bin/env python # Script to build a MacOS X Application from callmungereasygui.py # Just run: # python buildapp.py build from bundlebuilder import buildapp buildapp( name = "EasyMunger", mainprogram = "callmungereasygui.py", )
buildapp( name='Mapmatcher.app', # what to build mainprogram='src/sl/mapmatching/Mapmatcher.py', # your app's main() argv_emulation=1, # drag&dropped filenames show up in sys.argv iconfile='mapmatcher.icns', # file containing your app's icons standalone=1, # make this app self contained. includeModules=[ 'numpy', 'numpy.core', 'numpy.core.add', 'numpy.absolute', 'numpy.arccos', 'numpy.arccosh', 'numpy.arcsin', 'numpy.arcsinh', 'numpy.arctan', 'numpy.arctanh', 'numpy.bitwise_and', 'numpy.bitwise_or', 'numpy.bitwise_xor', 'numpy.bool_', 'numpy.ceil', 'numpy.conjugate', 'numpy.core.absolute', 'numpy.core.add', 'numpy.core.bitwise_and', 'numpy.core.bitwise_or', 'numpy.core.bitwise_xor', 'numpy.core.cdouble', 'numpy.core.complexfloating', 'numpy.core.conjugate', 'numpy.core.csingle', 'numpy.core.divide', 'numpy.core.double', 'numpy.core.equal', 'numpy.core.exp', 'numpy.core.float64', 'numpy.core.float_', 'numpy.core.greater', 'numpy.core.greater_equal', 'numpy.core.inexact', 'numpy.core.intc', 'numpy.core.integer', 'numpy.core.invert', 'numpy.core.isfinite', 'numpy.core.isinf', 'numpy.core.isnan', 'numpy.core.left_shift', 'numpy.core.less', 'numpy.core.less_equal', 'numpy.core.log', 'numpy.core.maximum', 'numpy.core.multiply', 'numpy.core.not_equal', 'numpy.core.number', 'numpy.core.power', 'numpy.core.remainder', 'numpy.core.right_shift', 'numpy.core.signbit', 'numpy.core.sin', 'numpy.core.single', 'numpy.core.sqrt', 'numpy.core.subtract', 'numpy.cosh', 'numpy.divide', 'numpy.e', 'numpy.fabs', 'numpy.float_', 'numpy.floor', 'numpy.floor_divide', 'numpy.fmod', 'numpy.greater', 'numpy.hypot', 'numpy.invert', 'numpy.isinf', 'numpy.left_shift', 'numpy.less', 'numpy.log', 'numpy.logical_and', 'numpy.logical_not', 'numpy.logical_or', 'numpy.logical_xor', 'numpy.maximum', 'numpy.minimum', 'numpy.negative', 'numpy.not_equal', 'numpy.power', 'numpy.random.rand', 'numpy.random.randn', 'numpy.remainder', 'numpy.right_shift', 'numpy.sign', 'numpy.sinh', 'numpy.tan', 'numpy.tanh', 'numpy.true_divide', 'yaml', 'wx', 'setuptools', 'scipy' ], # list of additional Modules to force in includePackages=['setuptools' 'networkx', 'numpy', 'osgeo', 'PyYAML', 'Shapely', 'RTree', ], # list of additional Packages to force in libs=[ '/Library/Frameworks/GDAL.framework', '/usr/local/include/spatialindex', ], # list of shared libs or Frameworks to include )
### makeapplication.py from bundlebuilder import buildapp import glob, os package_root = "/Users/emonson/Programming/Python/VTK/QtTests" qt_root = "/usr/local/Trolltech/Qt-4.7.0/lib" lib_list = [] lib_list.append(os.path.join(qt_root, "QtCore.framework")) lib_list.append(os.path.join(qt_root, "QtGui.framework")) resource_list = [] # resource_list.append(os.path.join(package_root,'BlankImage.png')) buildapp( name="QtListView_0211.app", mainprogram="QtListView.py", # your app's main() # argv_emulation=1, # drag&dropped filenames show up in sys.argv # iconfile='myapp.icns', # file containing your app's icons standalone=1, # make this app self contained. # encodings.utf_8 is necessary for loading cell arrays of strings includeModules=["encodings.ascii", "encodings.utf_8", "sip"], # list of additional Modules to force in includePackages=["vtk", "PyQt4"], # list of additional Packages to force in resources=resource_list, libs=lib_list, # list of shared libs or Frameworks to include ) ### end of makeapplication.py