def main(): AppBase().add_default_module_path() from django_build.package_configs.basic_packager import BasicPackager from django_build.package_configs.django_packager import DjangoPackager from django_build.package_configs.twisted_packager import TwistedPackager from django_build.package_configs.iconizer_packager import IconizerPackage from django_build.packager_utils import get_build_exe_params, get_executables, run_packager_post_setup, \ run_packager_prepare packager_list = [ BasicPackager(), IconizerPackage(), DjangoPackager(), TwistedPackager(), ChannelPackager(), # RedisPackager(), ] run_packager_prepare(packager_list) executables = get_executables(packager_list) build_exe_params = get_build_exe_params(packager_list) setup( version="0.1", # This is required or build process will have exception. description="application starter", options={"build_exe": build_exe_params}, executables=executables, # include_package_data=True, # package_data = {'':['*.*', 'templates/*.*']}, # packages = find_packages(), ) run_packager_post_setup(packager_list)
def main(): buildOptions = dict(packages = ['PySide','PySide.QtCore','PySide.QtGui','atexit', 'numpy','libtfr','arf','arfview', 'scipy', 'scipy.signal', 'scipy.interpolate', 'sys', 'os', 'pyqtgraph','tempfile', 'signal', 'arfx', 'ewave'], excludes = ["Tkinter", "Tkconstants", "tcl"], copy_dependent_files=True) base = 'Win32GUI' if sys.platform=='win32' else None executables = [ Executable('../arfview/mainwin.py', base=base, targetName='arfview') ] mac_options = dict(bundle_name = 'arfview') try: setup(name='arfview', version = '1.0', description = 't', options = dict(build_exe = buildOptions, bdist_mac = mac_options), executables = executables) finally: subprocess.call('cp -r /Library/Python/2.7/site-packages/h5py %s' %build_dir, shell=True) copy_dependencies(build_dir)
def main(): if sys.version < required_python_version: s = "I'm sorry, but %s %s requires Python %s or later." print s % (name, version, required_python_version) sys.exit(1) # set default location for "data_files" to platform specific "site-packages" # location for scheme in INSTALL_SCHEMES.values(): scheme['data'] = scheme['purelib'] setup( name=name, scripts=scripts, version=version, description=desc, long_description=long_desc, classifiers=classifiers, author=author, author_email=author_email, url=url, license=cp_license, packages=packages, # download_url=download_url, data_files=data_files, executables=executables, )
def main(): buildOptions = dict(packages = ['PySide','PySide.QtCore','PySide.QtGui','atexit', 'numpy','libtfr','arf', 'scipy', 'scipy.signal', 'scipy.interpolate', 'sys', 'os', 'pyqtgraph','tempfile', 'signal', 'arfx', 'ewave'], excludes = ["Tkinter", "Tkconstants", "tcl"], copy_dependent_files=True) base = 'Win32GUI' if sys.platform=='win32' else None executables = [ Executable('main_window.py', base=base, targetName='Colony Database') ] mac_options = dict(bundle_name = 'arfview') try: setup(name='database', version = '0.1.0', description = 't', options = dict(build_exe = buildOptions, bdist_mac = mac_options), executables = executables) finally: copy_dependencies(build_dir)
def build (self): includeFiles = [ 'images', 'help', 'locale', 'versions.xml', 'styles', 'iconset', 'plugins', 'spell', ('../LICENSE.txt', 'LICENSE.txt'), ('../copyright.txt', 'copyright.txt'), ] + self._getExtraIncludeFiles() build_exe_options = { 'excludes': self._getExcludes(), 'packages': self._getPackages(), 'include_files': includeFiles, "bin_path_includes": self._getPathIncludes(), } build_exe_options.update (self._getExtraBuildExeOptions()) executable = self._getExecutable() setup ( name = "OutWiker", version = self._getCurrentVersion(), description = "Wiki + Outliner", options = {'build_exe': build_exe_options}, executables = [executable] )
def main(): if sys.platform.startswith('win'): base = 'Win32GUI' target_name = 'qutebrowser.exe' else: base = None target_name = 'qutebrowser' bdist_msi_options = { # random GUID generated by uuid.uuid4() 'upgrade_code': '{a7119e75-4eb7-466c-ae0d-3c0eccb45196}', 'add_to_path': False, } try: setupcommon.write_git_file() cx.setup( executables=[get_exe(base, target_name)], options={ 'build_exe': get_build_exe_options(), 'bdist_msi': bdist_msi_options, }, **setupcommon.setupdata ) finally: path = os.path.join(BASEDIR, 'qutebrowser', 'git-commit-id') if os.path.exists(path): os.remove(path)
def test_py2app_builds_and_runs(): '''Test a small script to make sure it builds properly''' setup, options, new_script = py2app_setup('Simple Working', WORKING_SCRIPT) setup(**options) #TODO MAKE SURE run_script runs as it should... clean_exit, stderr = run_script(WORKING_SCRIPT, freezer='py2app') assert clean_exit
def test_py2app_failure_condition2(): '''this module was playing up so testing it ..''' setup, options, new_script = py2app_setup('test_condition2', 'test_condition2.py') insert_code(new_script, "from __future__ import print_function",) setup(**options) clean_exit, stderr = run_script(new_script, freezer='py2app') assert clean_exit
def main(): """Main entry point.""" with temp_git_commit_file(): cx.setup( executables=[cx.Executable('scripts/run_frozen_tests.py', targetName='run-frozen-tests')], options={'build_exe': get_build_exe_options()}, **setupcommon.setupdata )
def main(): setup(name=NAME, version=VERSION, description=DESCRIPTION, executables=executables, options={ 'bdist_msi': bdist_msi_options, 'build_exe': exe_options}, )
def package_windows(dev): if not ISWINDOWS: print("Qt packaging only works under Windows.") return from cx_Freeze import setup, Executable distdir = 'dist' if op.exists(distdir): shutil.rmtree(distdir) options = { 'build_exe': { 'includes': 'atexit', 'excludes': ['tkinter'], 'icon': 'images\\main_icon.ico', 'include_msvcr': True, }, 'install_exe': { 'install_dir': distdir, } } executables = [ Executable( 'run.py', base='Win32GUI', targetDir=distdir, targetName='moneyGuru.exe', ) ] setup( script_args=['install'], options=options, executables=executables ) if not dev: # Copy qt plugins plugin_dest = op.join('dist', 'qt4_plugins') plugin_names = ['accessible', 'codecs', 'iconengines', 'imageformats'] copy_qt_plugins(plugin_names, plugin_dest) print("Copying forgotten DLLs") shutil.copy(find_in_path('msvcp110.dll'), distdir) print("Copying the rest") shutil.copytree('build\\help', 'dist\\help') shutil.copytree('build\\locale', 'dist\\locale') shutil.copytree('plugin_examples', 'dist\\plugin_examples') if not dev: # AdvancedInstaller.com has to be in your PATH # this is so we don'a have to re-commit installer.aip at every version change shutil.copy('qt\\installer.aip', 'installer_tmp.aip') print_and_do('AdvancedInstaller.com /edit installer_tmp.aip /SetVersion %s' % MoneyGuru.VERSION) print_and_do('AdvancedInstaller.com /build installer_tmp.aip -force') os.remove('installer_tmp.aip')
def test_py2app_failure_condition3_fixed(): ''' basically using open function on a datafile will fail if the modulea and datafiles are inside a zip as open doesn't know how to look in a zip. Error -> No such file or directory grammer.txt https://bitbucket.org/anthony_tuininga/cx_freeze/issues/151/using-modules-that-use-open-on-data-files''' setup, options, new_script = py2app_setup('test_condition3', 'test_condition3.py') insert_code(new_script, "import past") # 'from past.builtins import basestring') setup(**options) clean_exit, stderr = run_script(new_script, freezer='py2app') assert clean_exit
def main(): base = 'Win32GUI' if sys.platform.startswith('win') else None with temp_git_commit_file(): cx.setup( executables=[cx.Executable('scripts/dev/run_frozen_tests.py', targetName='run-frozen-tests'), cx.Executable('tests/integration/webserver_sub.py', targetName='webserver_sub'), freeze.get_exe(base, target_name='qutebrowser')], options={'build_exe': get_build_exe_options()}, **setupcommon.setupdata )
def build(version): setup( name="Songpress", version=version, description="Songpress - Il Canzonatore", options=options, executables=[Executable( "main.py", base=base, targetName='Songpress' if platform.system() == 'Linux' else "Songpress.exe", icon='img/songpress.ico', )] )
def build_binaries(): import cx_Freeze packages = setuptools.find_packages(exclude=['tests']) executables = [] for sciptfile in scipt_files: print(sciptfile) script_path = os.path.join(package_dir, '%s.py' % sciptfile) executables.append(cx_Freeze.Executable( script=script_path, base=None, # if no GUI # targetName=sciptfile + ".exe", compress=True, copyDependentFiles=True, initScript=None, targetDir=binary_dir, appendScriptToExe=False, appendScriptToLibrary=False, icon=icon )) cx_Freeze.setup( name=package_name, version=version, author=author, author_email=email, description=description, license=license_, keywords=keywords, url=url, long_description=readme, options={ 'build_exe': { "includes": requirements, "excludes": [ 'tkinter' ], "packages": packages, "path": [], 'append_script_to_exe': False, 'build_exe': binary_dir, 'compressed': True, 'copy_dependent_files': True, 'create_shared_zip': True, 'include_in_shared_zip': True, 'optimize': 2, 'include_files': data_dir } }, executables=executables )
def main(): root = os.path.dirname(os.getcwd()) build_dir = os.path.join(root, 'build') shutil.rmtree(build_dir, ignore_errors=True) packages = [ 'matplotlib', 'PyQt5.QtPrintSupport', 'h5py', 'appdirs', 'packaging'] includes = [] excludes = ['tkinter'] modules = [crispy, silx] modules_path = [os.path.dirname(module.__file__) for module in modules] include_files = [ (module, os.path.basename(module)) for module in modules_path] options = { 'build_exe': { 'packages': packages, 'includes': includes, 'excludes': excludes, 'include_files': include_files, 'include_msvcr': True, 'build_exe': build_dir, }, } base = None if sys.platform == 'win32': base = 'Win32GUI' executables = [ Executable( 'scripts/crispy', base=base, icon=os.path.join('assets', 'crispy.ico'), ), ] setup( name='crispy', version=get_version(), options=options, executables=executables, ) # Prune the build directory. os.remove(os.path.join( build_dir, 'crispy', 'modules', 'quanty', 'bin', 'Quanty')) # Create the installer. create_installer()
def test_py2app_failure_condition(): '''Our script fails to build under certain platforms and python versions due to dependancies not being found by our freezer, we need to manually include/exclude them''' setup, options, new_script = py2app_setup('test_condition', 'test_condition.py') insert_code(new_script, "from future import standard_library", "standard_library.install_aliases()",) if 'darwin' in sys.platform: #TODO confirm that mac handles the same as linux.. if not PY3: with pytest.raises(Exception): setup(**options) else: setup(**options)
def build(cmd = None, ver = None): if cmd: sys.argv.append(cmd) #print(sys.argv) # see http://cx-freeze.readthedocs.org/en/latest/distutils.html base = None if sys.platform == "win32": base = "Win32GUI" setup( name = "PyMangaReader", version = ver, description = "PyMangaReader", executables = [Executable("PyMangaReader.pyw", base=base)])
def main(): if len(sys.argv) > 1 and sys.argv[1] == "py2app": _setup_mac() return if len(sys.argv) > 1 and sys.argv[1] == "bdist_msi": specific_arguments = _setup_win() else: specific_arguments = _setup_src() def read_description(): readme = open('README.rst').read() try: changelog = open('CHANGELOG.rst').read() except FileNotFoundError: changelog = "" return readme + changelog common_arguments = { "name": application_name, "version": application_version, "author": application_author_name, "author_email": application_author_email, "url": application_url, "description": application_description, "long_description": read_description(), "license": application_license, "install_requires": application_dependencies, "platforms": ["any"], "classifiers": _classifier, "test_suite": "seriesmarker.test.test_runner" } arguments = dict(common_arguments) arguments.update(specific_arguments) setup(**arguments)
def setup(*args, **kwargs): # Checking preconditions and such signtool_path = get_windows_signtool_path() print('Using this signtool:', signtool_path) pfx_path = glob.glob(os.path.join('..', '*.pfx')) if len(pfx_path) != 1: raise RuntimeError('Expected to find exactly one PFX in the outer dir, found this: %r' % pfx_path) pfx_path = pfx_path[0] print('Using this certificate:', pfx_path) pfx_password = input('Enter password to read the certificate file: ').strip() # Freezing cx_Freeze.setup(*args, **kwargs) # Code signing the outputs print('Signing the outputs...') for out in glob.glob(os.path.join('dist', '*.msi')): out_copy = '.signed.'.join(out.rsplit('.', 1)) try: shutil.rmtree(out_copy) except Exception: pass shutil.copy(out, out_copy) print('Signing file:', out_copy) while True: try: subprocess.check_call([signtool_path, 'sign', '/f', pfx_path, '/p', pfx_password, '/t', WINDOWS_SIGNATURE_TIMESTAMPING_SERVER, out_copy]) except Exception as ex: print('SignTool failed:', ex) if input('Try again? y/[n] ').lower().strip()[0] == 'y': pass else: raise else: break print('All files were signed successfully')
def main(): """Main entry point.""" if sys.platform.startswith('win'): base = 'Win32GUI' target_name = 'qutebrowser.exe' else: base = None target_name = 'qutebrowser' bdist_msi_options = { # random GUID generated by uuid.uuid4() 'upgrade_code': '{a7119e75-4eb7-466c-ae0d-3c0eccb45196}', 'add_to_path': False, } bdist_dmg_options = { 'applications_shortcut': True, } bdist_mac_options = { 'qt_menu_nib': os.path.join(BASEDIR, 'misc', 'qt_menu.nib'), 'iconfile': os.path.join(BASEDIR, 'icons', 'qutebrowser.icns'), 'bundle_name': 'qutebrowser', } try: setupcommon.write_git_file() cx.setup( executables=[get_exe(base, target_name)], options={ 'build_exe': get_build_exe_options(), 'bdist_msi': bdist_msi_options, 'bdist_mac': bdist_mac_options, 'bdist_dmg': bdist_dmg_options, }, **setupcommon.setupdata ) finally: path = os.path.join(BASEDIR, 'qutebrowser', 'git-commit-id') if os.path.exists(path): os.remove(path)
def main(): """Main entry point.""" if sys.platform.startswith("win"): base = "Win32GUI" target_name = "qutebrowser.exe" else: base = None target_name = "qutebrowser" bdist_msi_options = { # random GUID generated by uuid.uuid4() "upgrade_code": "{a7119e75-4eb7-466c-ae0d-3c0eccb45196}", "add_to_path": False, } bdist_dmg_options = {"applications_shortcut": True} bdist_mac_options = { "qt_menu_nib": os.path.join(BASEDIR, "misc", "qt_menu.nib"), "iconfile": os.path.join(BASEDIR, "icons", "qutebrowser.icns"), "bundle_name": "qutebrowser", } try: setupcommon.write_git_file() cx.setup( executables=[get_exe(base, target_name)], options={ "build_exe": get_build_exe_options(), "bdist_msi": bdist_msi_options, "bdist_mac": bdist_mac_options, "bdist_dmg": bdist_dmg_options, }, **setupcommon.setupdata ) finally: path = os.path.join(BASEDIR, "qutebrowser", "git-commit-id") if os.path.exists(path): os.remove(path)
def build_launcher(): base = None base_gui = None if sys.platform == "win32": base = "Console" base_gui = "Win32GUI" setup( name = "kmgdgis3D_launcher", version = "1.0", description = "launcher", options = {"build_exe" : { "includes": ["zmq.backend.cython", "greenlet"], "include_files" : [], "include_msvcr": True } }, executables = [ #Executable("gui.py", #base = base_gui, #targetName = "sync_gui.exe", #icon ='res/nfdw_gui.ico' #), Executable("proxy.py", base = base, targetDir = "../bin", targetName = "kmgdgis3D_launcher.exe", icon ='../res/gamekit.ico' ), Executable("dwg2geojson.py", base = base, targetDir = "../bin", targetName = "geojson.exe", #icon ='../res/gamekit.ico' ), ] )
def main(): buildOptions = dict(packages = ['PySide','PySide.QtCore','PySide.QtGui','atexit', 'numpy','libtfr','arf', 'scipy', 'scipy.signal', 'scipy.interpolate', 'sys', 'os', 'pyqtgraph','tempfile', 'signal', 'arfx', 'ewave'], excludes = ["Tkinter", "Tkconstants", "tcl"], copy_dependent_files=True) base = 'Win32GUI' if sys.platform=='win32' else None executables = [ Executable('../_arfview/mainwin.py', base=base, targetName='arfview') ] mac_options = dict(bundle_name = 'arfview') try: setup(name='arfview', version = '0.1.0', description = 't', options = dict(build_exe = buildOptions, bdist_mac = mac_options), executables = executables) finally: #manually copying h5py and _arfview because cxfreeze won't copy them import h5py h5py_path = os.path.dirname(h5py.__file__) subprocess.call('cp -r %s %s' %(h5py_path,build_dir), shell=True) import _arfview #unzipping arfview egg and copying _arfview folder arfview_egg_path = os.path.dirname(os.path.dirname(_arfview.__file__)) tempdir = tempfile.mkdtemp() subprocess.call('unzip %s -d %s'%(arfview_egg_path, tempdir),shell=True) arfview_path = '/'.join([tempdir, '_arfview']) subprocess.call('cp -r %s %s'%(arfview_path,build_dir),shell=True) shutil.rmtree(tempdir) copy_dependencies(build_dir)
def test_cxfreeze_failure_condition(): '''Our script fails to build under certain platforms and python versions due to dependancies not being found by our freezer, we need to manually include/exclude them''' setup, options, new_script = cxfreeze_setup('test_condition', 'test_condition.py') insert_code(new_script, "from future import standard_library", "standard_library.install_aliases()",) if 'linux' in sys.path or 'darwin' in sys.platform: #TODO confirm that mac handles the same as linux.. if not PY3: with pytest.raises(Exception): setup(**options) else: setup(**options) elif sys.platform == 'win32': setup(**options) clean_exit, stderr = run_script(new_script, freezer='cxfreeze') if PY3: assert clean_exit else: #this failure condition is from cxfreeze and py2exe.. missing modules .. assert not clean_exit
os.environ['TK_LIBRARY'] = os.path.join(PYTHON_INSTALL_DIR, 'tcl', 'tk8.6') # </added> base = None if sys.platform == 'win32': base = 'Win32GUI' executables = [Executable('macgyver_maze_game.py', base=base)] # <added> options = { 'build_exe': { 'include_files': [ os.path.join(PYTHON_INSTALL_DIR, 'DLLs', 'tk86t.dll'), os.path.join(PYTHON_INSTALL_DIR, 'DLLs', 'tcl86t.dll'), "includes", ], 'packages': ["pygame", "random"] }, } # </added> setup( name='MacGyverMaze', version='1.1', description='Help macgyver to escape', url='https://github.com/vincenthouillon/macgyver-maze-game', # <added> options=options, # </added> executables=executables)
import cx_Freeze import textblob import spacy import sys base = None if sys.platform == 'win32': base = "Win32GUI" executables = [cx_Freeze.Executable("nlpiffy_gui.py")] cx_Freeze.setup( name="NLPiffy GUI", options={"build_exe": { "packages": ["tkinter", "textblob", "spacy"] }}, version="0.01", executables=executables)
import cx_Freeze executables = [cx_Freeze.Executable("PROJECT_GAME.py")] packages = ["pygame"] cx_Freeze.setup(name='GHOST SKULL', version="1.0", description="My Game Project", author='Juthaporn', executables=executables)
from cx_Freeze import setup, Executable setup(name="chess", version="0.1", description="Blackjack", executables=[Executable("main.py")])
import sys from cx_Freeze import setup, Executable setup(name="setup", version="0.1", executables=[Executable("Keylogger.py", base="Win32GUI")]) #Executable(nombre del archivo keylogger.py) #base="Win32GUI" -- MUY IMPORTANTE -- Para que no se ejecute ninguna consola al iniciar el programa
from cx_Freeze import setup, Executable setup(name='esriEnable', version='0.1', description='Esri Enable ArcGIS Online Accounts', executables=[Executable("esriEnable.py")])
import tkinter from cx_Freeze import setup, Executable os.environ[ 'TCL_LIBRARY'] = r'C:\Users\WILSONCAZARRESOUSA\AppData\Local\Programs\Python\Python37-32\tcl\tcl8.6' os.environ[ 'TK_LIBRARY'] = r'C:\Users\WILSONCAZARRESOUSA\AppData\Local\Programs\Python\Python37-32\tcl\tk8.6' executables = [ Executable('Cetus PCR.py', base='Win32GUI', shortcutName='Cetus PCR', shortcutDir='DesktopFolder', icon='cetus.ico'), Executable('functions.py', base='Win32GUI'), Executable('interface.py', base='Win32GUI') ] setup(name='ProjetoCetus', version='0.1', executables=executables, options={ 'build_exe': { 'includes': ['tkinter', 'serial', 'matplotlib'], 'include_files': ['cetus.ico', 'assets/tcl86t.dll', 'assets/tk86t.dll'], 'include_msvcr': True, } })
from cx_Freeze import setup, Executable base = None #Remplacer "monprogramme.py" par le nom du script qui lance votre programme executables = [Executable("main.py", base=base)] #Renseignez ici la liste complète des packages utilisés par votre application packages = ["idna", "pygame", "pickle", "Object", "Animation"] options = { 'build_exe': { 'packages': packages, }, } #Adaptez les valeurs des variables "name", "version", "description" à votre programme. setup(name="Mon Programme", options=options, version="1.0", description='Voici mon programme', executables=executables)
# -*- coding: utf-8 -*- # A simple setup script to create an executable using Zope which demonstrates # the use of namespace packages. # # qotd.py is a very simple type of Zope application # # Run the build process by running the command 'python setup.py build' # # If everything works well you should find a subdirectory in the build # subdirectory that contains the files needed to run the application import sys from cx_Freeze import setup, Executable options = {'build_exe': {'namespace_packages': ['zope']}} executables = [Executable('qotd.py')] setup(name='QOTD sample', version='1.0', description='QOTD sample for demonstrating use of namespace packages', options=options, executables=executables)
from sys import platform from cx_Freeze import setup, Executable base = None if platform == 'win32': base = 'Win32Gui' setup( name='tradutor_do_duzao', version='1.0', description='Tradutor feito na live de Python', options={'build_exe': { 'includes': ['tkinter', 'ttkbootstrap'] }}, executables=[Executable('tradutor.py', base=base)], )
import cx_Freeze import os import pygame, pygame.draw os.environ[ 'TCL_LIBRARY'] = r'D:\Anaconda\pkgs\python-3.7.0-hea74fb7_0\tcl\tcl8.6' os.environ[ 'TK_LIBRARY'] = r'C:\Users\Simon Berest\AppData\Local\Programs\Python\Python37-32\tcl\tk8.6' executables = [cx_Freeze.Executable("connect_five.py")] cx_Freeze.setup(options={ "build_exe": { "packages": ["pygame"], "include_files": [ "gomoku.ico", "ai.py", "board.py", "button.py", "player.py", "undo.py", "background_blur.jpg", "background_image.jpg", "Black.png", "Black_crown.png", "Black_trans.png", "gameboard.png", "instructions.png", "sidebar.png", "sidebar_ai.png", "title.png", "White.png", "White_crown.png", "White_trans.png", "button_click.mp3", "invalid.mp3", "place_0.mp3", "place_1.mp3", "place_2.mp3" ] } }, description="Connect Five for CSC290", icon="gomoku.ico", executables=executables)
from cx_Freeze import setup, Executable # Dependencies are automatically detected, but it might need # fine tuning. buildOptions = dict(packages=[], excludes=[]) import sys base = 'Win32GUI' if sys.platform == 'win32' else None executables = [ Executable('editor.py', base=base, targetName='Kiigame Editor.exe', icon="icon.ico") ] setup(name='Kiigame - Editor', version='0.3', description='', options=dict(build_exe=buildOptions), executables=executables)
script='../main_ashop.py', initScript=None, # base='Console', # useful for debugging base='Win32GUI', # use this to hide console output (releases) targetName='productus.exe', # compress=True, # copyDependentFiles=True, # appendScriptToExe=False, # appendScriptToLibrary=False, icon='../resources/ico/trawl2.ico' ) # Prompt to nuke existing directory deployed_path = 'build\exe.win64-3.6\ashop' if os.path.exists(deployed_path): if click.confirm('Path ' + deployed_path + ' exists. Delete?', default=True): shutil.rmtree(deployed_path) print('Deleted ' + deployed_path) setup( name='ASHOP Productus', version='0.1', author='FRAM Data', description='ASHOP Productus', options={'build_exe': build_exe_options}, executables=[exe] ) # Zip up our creation buildzipper.create_zip_archive(base_folder=deployed_path, filedesc='ashop')
base = None if sys.platform == 'win32': base = 'Win32GUI' options = { 'build_exe': { 'icon': 'images/applications_games.ico', 'include_files': [ 'images/applications_games.png', 'images/circle_error.png', 'images/circle_green.png', 'images/circle_grey.png', 'images/circle_red.png', ], 'excludes': [ 'PyQt4.QtXml', 'PyQt4.QtTest', 'PyQt4.QtSvg', 'PyQt4.QtSql', 'PyQt4.QtScript', 'PyQt4.QtOpenGL', 'PyQt4.QtNetwork', 'PyQt4.Qsci', '_bz2', '_hashlib', '_ssl' ] } } executables = [Executable('testsuite.pyw', base=base)] setup(name='TestSuite', version='0.2', description='TestSuite for manual mode', options=options, executables=executables)
"PyQt5.QtSvg", "PyQt5.QtTest", "PyQt5.QtXml", "PyQt5.QtWebSockets", ], "optimize": 2 } base = None if sys.platform == 'win32': base = 'Win32GUI' target = Executable( script='__init__.py', base=base, icon='images/icon.ico', shortcutName='iLecture Grading System', copyright='Software Engineering II Group 1, FUT Minna 2018', trademarks='Copy Right 2018- FUTMinna', targetName="iLGS.exe", ) setup( name='iLecture Grading System', version='1.0.0', description="Connecting Students Lecturer view to the school Admin", author='Group 1, SE II Futminna', #publisher = 'Mensaah Corps', options={'build_exe': build_exe_options}, executables=[target])
""" import os import sys dirname = None if getattr(sys, 'frozen', False): dirname = os.path.dirname(sys.executable) else: dirname = os.path.dirname(os.path.realpath(__file__)) root_path = os.path.dirname(os.path.dirname(dirname)) sys.path.append(root_path + '/anyrobot-pylibs') sys.path.append(root_path + '/anyrobot-system-manager') from cx_Freeze import setup, Executable # Dependencies are automatically detected, but it might need fine tuning. buildOptions = dict(packages=[], excludes=['collections.sys', 'collections._weakref']) base = 'Console' targetName = 'system-manage-cli' executables = [ Executable(dirname+'/system_manage.py', base=base, targetName=targetName) ] setup(name='cli', version='0.1.0', description='anyrobot system manager cli', options=dict(build_exe=buildOptions), executables=executables)
base = None if sys.platform == "win32": base = "Win32GUI" from lib import config setup(name="Chancecoin", version=config.CLIENT_VERSION, description="Chancecoin", options={ "build_exe": { "packages": ["os"], "includes": ["chancecoind"], "excludes": [], "include_files": [ "chancecoin.conf", "templates/casino.html", "templates/index.html", "templates/participate.html", "templates/template.html", "templates/wallet.html", "templates/error.html", "templates/technical.html", "templates/balances.html", "static/css/style.css", "static/images/aperture_alt_32x32.png", "static/images/calendar_alt_stroke_32x32.png", "static/images/cog_32x32.png", "static/images/dice_32x32.png", "static/images/favicon.ico", "static/images/fullscreen_exit_32x32.png", "static/images/logo.png" ] } }, executables=[Executable("gui.py", base=base)])
# You can import all Gtk Runtime data from gtk folder #gtkLibs= ['etc','lib','share'] # You can import only important Gtk Runtime data from gtk folder gtkLibs = [ 'lib\\gdk-pixbuf-2.0', 'lib\\girepository-1.0', 'share\\glib-2.0', 'lib\\gtk-3.0', 'share\\icons', 'share\\locale\\en', 'share\\locale\\ru', 'etc\\fonts' ] for lib in gtkLibs: includeFiles.append((os.path.join(includeDllPath, lib), lib)) base = None if sys.platform == "win32": base = "Win32GUI" setup(name="mssh", version="1.0", description="Multi Mikrotik SSH executor", options={ 'build_exe': { 'compressed': True, 'includes': ["gi"], 'excludes': ['wx', 'email', 'pydoc_data', 'curses'], 'packages': ["gi"], 'include_files': includeFiles } }, executables=[Executable("mssh.py", base=base)])
], "namespace_packages": [ "virtool" ], "packages": [ "_cffi_backend", "appdirs", "asyncio", "bcrypt", "cffi", "idna", "motor", "packaging", "uvloop" ] } options = { "build_exe": build_exe_options } executables = [ Executable('run.py', base="Console") ] importlib.import_module("virtool") setup(name='virtool', executables=executables, options=options)
application_title = "Word Guessing Game" main_python_file = "wordGuessing.py" include_files = "dictionary.txt" your_name = "Luke Reynolds" program_description = "A simple word guessing game built in python" #main import sys from cx_Freeze import setup, Executable base = None setup(name=application_title, version="1.0", description=program_description, author=your_name, options={"build_exe": { "include_files": include_files }}, executables=[Executable(main_python_file, base=base)])
from cx_Freeze import setup, Executable base = None executables = [Executable("Analysis.py", base=base)] packages = ["idna"] options = { 'build_exe': { 'packages': packages, }, } setup( name="Tweeter Sentiment Analysis", options=options, version="1.0", description='Tweeter tweets analysis', executables=executables )
from cx_Freeze import setup, Executable setup(name='clean_campaign', version='0.1', description='just clean call-centr campaign', executables=[Executable("clean_campaign.py")])
from cx_Freeze import setup, Executable base = None executables = [Executable("run.py", base=base)] packages = ["idna"] options = { 'build_exe': { 'packages': packages, }, } setup(name="Creative Checker", options=options, version="1.0.0", description='Moloco Creative Checker', executables=executables)
from cx_Freeze import setup, Executable import os, sys packages = ["smtplib", "ssl"] PYTHON_INSTALL_DIR = os.path.dirname(sys.executable) include_files = [ os.path.join(PYTHON_INSTALL_DIR, 'DLLs', 'libcrypto-1_1.dll'), os.path.join(PYTHON_INSTALL_DIR, 'DLLs', 'libssl-1_1.dll'), ".env", "message.txt" ] targetDir = "c:\\build\\" setup(name="livros", version="2.0", description="Livros", executables=[ Executable("main.py", base="Win32GUI", targetName="livros.exe", icon='books.ico') ])
import sys from cx_Freeze import setup, Executable # Dependencies are automatically detected, but it might need fine tuning. includefiles = ['gifsicle.exe', 'noimage.bin', 'config.ini', 'icon.ico'] exclude_libs = ['_ssl', 'pyreadline', 'doctest','optparse', 'matplotlib', "BaseHTTPServer", "SocketServer", "dateutil", "httplib", "itertools", "mpl_toolkits", "numpy.f2py", "pydoc_data", "urllib2", "zipimport", "scipy.sparse.linalg.eigen.arpack", "scipy.sparse._sparsetools", 'scipy'] build_exe_options = {"packages": ["numpy.core", "numpy.lib"], "optimize": 0, 'include_files':includefiles, "excludes":exclude_libs, "include_msvcr":True} # GUI applications require a different base on Windows (the default is for a # console application). base = None if sys.platform == "win32": base = "Win32GUI" setup( name = "CMN_binViewer", version = "1.0", options = {"build_exe": build_exe_options}, executables = [ Executable("CMN_binViewer.py", base=base, icon="icon.ico")] )
include_files.append(("share", "share")) include_files.append((os.path.join(site_dir, "rtree"), "rtree")) include_files.append(("README.md", "README.md")) include_files.append(("LICENSE", "LICENSE")) base = None ## Lets not open the console while running the app if sys.platform == "win32": base = "Win32GUI" buildOptions = dict( compressed=False, include_files=include_files, icon='share/flatcam_icon48.ico', # excludes=['PyQt4', 'tk', 'tcl'] excludes=[ 'scipy.lib.lapack.flapack.pyd', 'scipy.lib.blas.fblas.pyd', 'QtOpenGL4.dll' ]) print "INCLUDE_FILES", include_files execfile('clean.py') setup(name="FlatCAM", author="Juan Pablo Caram", version="8.4", description="FlatCAM: 2D Computer Aided PCB Manufacturing", options=dict(build_exe=buildOptions), executables=[Executable("FlatCAM.py", base=base)])
from cx_Freeze import setup, Executable base = None executablesreatch = [Executable("")] executables = [Executable("grapp.py", base=base)] packages = ["idna", "os", "re", "json"] options = { 'build_exe': { 'packages':packages, }, } setup( name = "grapp", options = options, version = "1.0", description = 'grapp a token discord', executables = executables, )
company_name = 'JRC' product_name = 'new_MFC' bdist_msi_options = { 'add_to_path': False, 'initial_target_dir': 'C:/Apps', } path = sys.path build_exe_options = {"path": path, "icon": "brain.ico"} base = None if sys.platform == "win32": base = "Win32GUI" exe = Executable( script='new_MFC/examples/sample_4degree_with_linear.py', base=base, icon=None, ) setup(name="new_MFC", version="1.0.0", description="A lightweight microsimulation free-flow acceleration model" "(MFC) that is able to capture the vehicle acceleration" "dynamics accurately and consistently", executables=[exe], options={'bdist_msi': bdist_msi_options}) # Please run build.bat file to generate an MSI installable file
from cx_Freeze import setup, Executable executables = [ Executable('example.py', targetName='hello_wx.exe', base='Win32GUI', icon='example.ico') ] excludes = [ 'logging', 'unittest', 'email', 'html', 'http', 'urllib', 'xml', 'unicodedata', 'bz2', 'select' ] zip_include_packages = ['collections', 'encodings', 'importlib', 'wx'] options = { 'build_exe': { 'include_msvcr': True, 'excludes': excludes, 'zip_include_packages': zip_include_packages, } } setup(name='hello_world', version='0.0.14', description='My Hello World App!', executables=executables, options=options)
from cx_Freeze import setup, Executable import sys setup( name="game.exe", version="1.0", author="Sam Von Ehren", description="Copyright 2013", executables=[Executable(script = "main.py", base = "Win32GUI")], )
import cx_Freeze import sys import os base = None if sys.platform == 'win32': base = "win32GUI" os.environ['TCL_LIBRARY'] = r"C:\Users\diksha\AppData\Local\Programs\Python\Python37-32\tcl\tcl8.6" os.environ['Tk_LIBRARY'] = r"C:\Users\diksha\AppData\Local\Programs\Python\Python37-32\tcl\tk8.6" executables = [cx_Freeze.Executable("note.py", base = base, icon="icon.ico")] cx_Freeze.setup( name="Notebook Text Editor", options = {"build_exe":{"packages":["tkinter","os"], "include_files":["icon.ico",'tcl86t.dll','tk86t.dll', 'icons2']}}, version = "0.01", description = "Tkinter Application", executables = executables )
from cx_Freeze import setup, Executable setup( name="connectfo", version="0.1", description="Connect Fo'!", executables=[Executable("connectfo.py")], includes=("game",), )
# GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # import sys from info import META_INFO, INSTALL, COMMANDS from cx_Freeze import setup # Setup function to use if sys.platform.startswith("win32"): META_INFO['name'] = 'MySQL Utilities' ARGS = { 'executable': [ cx_Freeze.Executable(exe, base="Console") for exe in INSTALL['scripts'] ], 'options': { 'bdist_msi': { 'add_to_path': True, }, } } ARGS.update(META_INFO) ARGS.update(INSTALL) ARGS.update(COMMANDS) setup(**ARGS)
# gather package/*.[pyx|c] extensions = list(chain.from_iterable(map(lambda s: _make_extensions(s + '.*'), packages))) if EXIST_CYTHON: print('running cythonize') extensions = cythonize(extensions) setup( name='genecoder', version=version, description='code analysis for genes', url='https://github.com/kerug/genecoder', long_description=open('README.rst').read() + '\n' + open('CHANGELOG.txt').read(), classifiers=['Topic :: Scientific/Engineering :: Bio-Informatics'], keywords='analyze gene', author='kerug', author_email='*****@*****.**', license='MIT', packages=packages, package_data={'genecoder': ['genecoder.ini']}, install_requires=_install_requires(), tests_require=_test_requires(), test_suite='nose.collector', zip_safe=False, ext_modules=extensions, scripts=[], entry_points={'console_scripts': ['genecoder = genecoder.main:main']}, cmdclass={'build_py': build_py, 'test': PyTest}, )
def main(): """Main entry point.""" with temp_git_commit_file(): cx.setup( executables=[cx.Executable("scripts/dev/run_frozen_tests.py", targetName="run-frozen-tests")], options={"build_exe": get_build_exe_options()}, **setupcommon.setupdata )