Example #1
0
#coding=utf8
import sys
from distutils.core import setup
import sys
from cx_Freeze import setup, Executable
import tornado
import flask

build_exe_options = {
    "packages": [
        "numpy",
        "tornado",
        "flask",
        "asyncio",
        "tqdm",
        "jinja2",
        "flask_cors",
    ],
    "excludes": ["tkinter", "matplotlib", "pandas"]
}

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

setup(name="nlp2018",
      version="0.1",
      description="nlp2018",
      options={"build_exe": build_exe_options},
      executables=[Executable("web_server.py", base=base)])
Example #2
0
from cx_Freeze import setup, Executable
import sys
import os

includes = {
    'packages': [
        'tkinter', 'sympy', 'matplotlib', 'numpy', 'PyQt5', 'Calculus',
        'Scalc', 'Graph'
    ]
}
os.environ['TCL_LIBRARY'] = 'D:\\Python3.5\\tcl\\tcl8.6'
os.environ['TK_LIBRARY'] = 'D:\\Python3.5\\tcl\\tk8.6'
include_files = [
    r'D:\\Python3.5\\DLLs\\tcl86t.dll', r'D:\\Python3.5\\DLLs\\tk86t.dll'
]
exe = Executable(
    script='GUI.py',
    base='Console',
)

setup(name='Omni Calulator',
      version='0.54.2',
      options={'build_exe': includes},
      description="""!Professional Calculator!""",
      executables=[exe])
Example #3
0
import sys
from cx_Freeze import setup, Executable

include_files = ['autorun.inf']
base = None

if sys.platform == 'win32':
    base = 'Win32GUI'

setup(name='puzzle',
      version="0.1",
      description="Server-Client Software",
      options={'build.exe': {
          'include_files': include_files
      }},
      executables=[Executable('client.py', base=base)])
Example #4
0
import sys
from cx_Freeze import setup, Executable

build_exe_options = {
    "packages": ["os"],
    "excludes": ["tkinter"],
    "include_files": ["commun", "production", "gestion"]
}

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

setup(name="DUNE production bobine 2.0",
      version="2.0",
      description="Analyse production de bobines sur la machine Mondon",
      options={"build_exe": build_exe_options},
      executables=[
          Executable(script="main_production.py",
                     base=base,
                     icon="commun/assets/icons/logo_dune_production.ico",
                     targetName="DUNE_production_bobines.exe")
      ])
from cx_Freeze import setup, Executable

base = None

executables = [Executable("comparecsv.py", base=base)]

packages = ["idna"]
options = {
    'build_exe': {
        'packages': packages,
    },
}
setup(
    name="Compare Csv files",
    options=options,
    version="1.0",
    description=
    'Compare 2 csv files and output the records that exist only in source file',
    executables=executables,
    requires=['pandas'])
Example #6
0
# A very simple setup script to test adding extension handling to an MSI file.
#
# This script defines three ways for the hello.py executable to handle text files,
# that are registered in the operating system.
#
# hello.py is a very simple 'Hello, world' type script which also displays the
# environment in which the script runs
#
# Run the build process by running the command 'python setup.py bdist_msi'

from cx_Freeze import setup, Executable

executables = [Executable("hello.py")]

bdist_msi_options = {
    "extensions": [
        # open / print / view text files
        {
            "extension": "txt",
            "verb": "open",
            "executable": "hello.exe",
            "context": "Edit with hello.py",
        },
        {
            "extension": "txt",
            "verb": "print",
            "executable": "hello.exe",
            "context": "Print with hello.py",
            "argument": '--print "%1"',
        },
        {
Example #7
0
from cx_Freeze import setup, Executable

setup(name = "ScriptToBeExecutable" ,
      version = "0.1" ,
      description = "" ,
      executables = [Executable("/home/tzablock/IdeaProjects/PythonLearn/src/spark/python/cxFreezCreatingPythonExecutable/ScriptToBeExecutable.py")])
Example #8
0
from cx_Freeze import setup, Executable
import idna
import random

base = None    

executables = [Executable("Contacts.py", base=base)]

packages = ["idna"]
options = {
    'build_exe': {    
        'packages':packages,
    },    
}

setup(
    name = "GuessNumber_Game",
    options = options,
    version = "1.1",
    description = 'Play with Numbers',
    executables = executables
)
#changes
#added new code to the base
#0218 changes
Example #9
0
from cx_Freeze import setup, Executable

base = None

executables = [Executable("MainMdiProgram.py", base=base)]

packages = ["idna"]
options = {
    'build_exe': {
        'packages': packages,
    },
}

setup(name="SQL Conversion",
      options=options,
      version="0.5",
      description='SQL Conversion',
      executables=executables)
Example #10
0
# python exeCreator.py build
from cx_Freeze import setup, Executable

base = None
filename = input(
    "Enter the filename(relative) or path(elsewhere) to create its .exe: (without the file extension) -   "
)
packages = list(
    map(
        str,
        input(
            f"Enter the packages used/imported in your {filename}.py file in a single line separated with space(\" \"):\n"
        ).split()))
executables = [Executable(filename + ".py", base=base)]

options = {
    'build_exe': {
        'packages': packages,
    },
}

setup(name="<Shashank V Ray>",
      options=options,
      version="1.0",
      description="Python File",
      executables=executables)
Example #11
0
def getTargetName():
    myOS = platform.system()
    if myOS == 'Linux':
        return "Client"
    elif myOS == 'Windows':
        return "Client.exe"
    else:
        return "Client.dmg"


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

exe = Executable(
    script="client.py",
    base=base,
    icon="chat.ico",
)

setup(
    name="Chat",
    version="1.2",
    description="Chat client based python by Ron Benbenishti",
    author="Ron Benbenishti",
    targetName=getTargetName(),
    executables=[exe],
    options={
        'build_exe': {
            'includes': includes,
            'packages': packages,
            'include_files': includefiles
Example #12
0
icon = os.path.join(include_res, 'favicon.ico')

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

build_exe_optoins = {
    'includes': ['win32timezone'],
    'excludes': ['tkinter'],
    'include_files': [include_res],
}

options = {
    'build_exe': build_exe_optoins,
}

executables = [Executable('rdp_login.py', base=base, icon=icon)]

setup(
    name='pandora',
    version='1.0',
    description='pandora',
    options=options,
    executables=executables,
)

# copy platforms to build
build_folder = os.path.join(os.getcwd(), 'build')
program_folder = os.path.join(build_folder, os.listdir(build_folder)[0])
shutil.copytree(include_platforms, os.path.join(program_folder, 'platforms'))
Example #13
0
        # 依赖的包
        ,
        "packages": ["os"],
        "includes": ["pygame", "time", "sys"],
        "include_files": ["./img"]
        # 额外添加的文件
        #, 'include_files':['image_rc.py']
    }
}

executables = [
    Executable(
        # 工程的 入口
        'Dafeiji.py',
        base=base
        # 生成 的文件 名字
        ,
        targetName='Dafeiji.exe'
        # 生成的EXE的图标
        #, icon = "test_32.ico" #图标, 32*32px
    )
]

setup(
    # 产品名称
    name='dafeiji',
    # 版本号
    version='1.0',
    # 产品说明
    description='My game-dafeiji',
    options=options,
    executables=executables)
Example #14
0
excludes = []
packages = []
# add other dirs to search for custom modules
path = ["libs"] + sys.path

# base="Win32GUI" should be used only for Windows UIs
if sys.platform == "win32":
    base = "Win32GUI"
# Console App
base = None

setup(
    name=__pyfile__,
    description='set the hostname of a windows client via MySQL',
    version=__version__,
    executables=[Executable(__pyfile__ + '.py', base=base, icon='App.ico')],
    options={
        'build_exe': {
            'packages': packages,
            'includes': includes,
            'include_files': include_files,
            'include_msvcr': True,
            'excludes': excludes,
            'path': path
        }
    },
)

# Copy needed directories ------------------------

# search all build subdirs
Example #15
0
import sys
import os
from cx_Freeze import setup, Executable

includes = []
include_files = [
    r"C:\Users\lucas\PycharmProjects\CaminhoCritico\task1.txt",
    r"C:\Users\lucas\PycharmProjects\CaminhoCritico\task2.txt",
    r"C:\Users\lucas\PycharmProjects\CaminhoCritico\task3.txt"
]
base = 'Win32GUI' if sys.platform == 'win32' else None

setup(
    name='Caminho Crítico',
    version='1.0',
    description='Algoritmo de Caminho Critico',
    options={
        "build_exe": {
            "includes": includes,
            "include_files": include_files
        }
    },
    executables=[
        Executable(
            r'C:\Users\lucas\PycharmProjects\CaminhoCritico\caminhoCritico.py',
            base=base)
    ])
Example #16
0
import sys
from cx_Freeze import setup, Executable
import os

# Run in cmd: python setup.py build

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

#buildOptions = dict(include_files = ['fotos/', 'icons/', 'docs/', 'tcl85.dll', 'tk85.dll', 'erros.log'])
buildOptions = dict(
    include_files=['icons/', 'data/', 'tcl86t.dll', 'tk86t.dll'],
    packages=['jdcal'])

setup(name="Paragon GIS Analyst",
      version="1.2",
      description="Simple GUI Application",
      author="Nuno Venâncio",
      options=dict(build_exe=buildOptions),
      executables=[
          Executable("pgisaGUI.py", base=base, icon="icons/OpenSignal.ico")
      ])
Example #17
0
from cx_Freeze import setup, Executable

executables = [Executable('tic_tac_toe.py', base='Win32GUI')]

includes = ['pygame', 'settings', 'button', 'game_functions', 'entry_pole']

options = {'build_exe': {'includes': includes, 'build_exe': 'Tic-Tac-Toe'}}

setup(name='tic_tac_toe',
      version='1.0.0',
      description='My app',
      executables=executables,
      options=options)
Example #18
0
# to build the app run this file with this command -> $ python setup.py bdist_mac --iconfile="upload.icns"
# On Mac OS, move the created app in the build folder to the applications folder for it to work
import sys
from cx_Freeze import setup, Executable

# Dependencies are automatically detected, but it might need fine tuning.
build_exe_options = {"packages": ["requests"],  "excludes": ["tkinter"], "include_files": ["upload.icns","masi.jpg", "REDCAP_API_KEY.txt"]}

bdist_mac_options = {"include_resources": [("REDCAP_API_KEY.txt", "REDCAP_API_KEY.txt"),
                                           ("masi.jpg", "masi.jpg")],
                     "iconfile": ["upload.icns"]}

# 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="InterviewUploader",
      version="0.1",
      description="UPLOADER!",
      options={"bdist_mac": bdist_mac_options,
               "build_exe": build_exe_options},
      executables=[Executable("interview_uploader.py")])
Example #19
0
from distutils.dir_util import copy_tree
# packages: 'numpy','scipy','sklearn','matplotlib', 'PyQt4','tkinter','matplotlib.backends.backend_tkagg' -> devem estar presentes se nao deverao estar instalados na maquina do usuario
# Dependencies are automatically detected, but some modules need help.
#'numpy','scipy','sklearn','matplotlib','matplotlib.backends.backend_tkagg'
# includes'libpython3.5m.so.1.0','libc.so.6' -> dár erro de fragmentação tem que apagar depois
buildOptions = dict(
    packages = ['numpy','scipy','sklearn','matplotlib', 'PyQt4','tkinter','matplotlib.backends.backend_tkagg'],
    excludes = ['PyQt5'],
    # We can list binary includes here if our target environment is missing them.
    bin_includes = [], # deve apagar antes de distribuir para nao dar erro de fragmentacao
    include_files = ['img',],
    
  )

executables = [
    Executable(
        'taba.py',
        base = None,
        targetName = 'Taba',
    )
]

setup(
    name='Taba',
    version = '0.1',
    description = 'taba linux 64',
    options = dict(build_exe = buildOptions),
    executables = executables
)
#copy_tree('/home/amauri/eclipse-workspace/TABA2/img', '/home/amauri/eclipse-workspace/TABA2/build/exe.linux-x86_64-3.6/img')
Example #20
0
# Unnecessary libs
excludes = []

bin_includes = []
# ,'idna.idnadata'
# Packages
packages = []

# Optimization level
optimize = 0

# If true, only errors and warning will be displayed when excuting cx_freeze
silent = True

target = Executable(
    script="gmg.py",
    copyright="Copyright © 2019 GMG",
)

setup(name="Guide_Me_Glasses",
      version="0.1",
      description="",
      options={
          'build_exe': {
              'includes': includes,
              'excludes': excludes,
              'bin_includes': bin_includes,
              'packages': packages,
              'include_files': include_files,
              'optimize': 1,
              'silent': silent
          }
Example #21
0
from cx_Freeze import setup, Executable

import wx
import matplotlib
matplotlib.use('WXAgg')
import Image
import numpy
import wxmplot
from wxmplot.plotframe import PlotFrame
import epics
import Carbon

libca = epics.ca.initialize_libca()

DATA_FILES = []
exe_opts = {'includes': ['epics', 'wx', 'matplotlib', 
                         'Image', 'ctypes', 'numpy', 'Carbon.Appearance'],
           'excludes': ['Tkinter', '_tkinter', 'Tkconstants', 'tcl',
           '_imagingtk', 'PIL._imagingtk', 'ImageTk',
        'PIL.ImageTk', 'FixTk''_gtkagg', '_tkagg',
        'qt', 'PyQt4Gui', 'email'],
        }

setup(name='GSE Microscope',
      version =1.0,
      description = "GSECARS XRM Microscope Control", 
      options = {'build_exe': exe_opts},
      executables = [Executable('MicroscopeDisplay.py', base=None)])

Example #22
0
from cx_Freeze import setup, Executable

executables = [Executable('spider.py')]

setup(name='spider',
      version='0.1',
      description='spider',
      executables=executables)
Example #23
0
                     silent=True)

buildMSI_Options = dict(install_icon="src/app.ico",
                        target_name="SMSAPI-" + current_version,
                        initial_target_dir=r'[ProgramFilesFolder]\%s' %
                        "SMSAPI",
                        product_code="{58437303-2b2d-4c5c-84ff-5a8d77222bde}",
                        upgrade_code="{59e50bd5-2592-43dd-abbe-50422457e001}",
                        data=msi_data)

base = 'Win32GUI' if sys.platform == 'win32' else None

executables = [
    Executable('main.py',
               base=base,
               targetName='smsapi' + "-" + current_version,
               icon="src/app.ico",
               copyright="GNU/GPL")
]

classifiers = [
    'Development Status :: ' + status + ' ' + current_version,
    'Environment :: Windows GUI', 'Intended Audience :: End Users/Desktop',
    'License :: OSI Approved :: GNU GENERAL PUBLIC LICENSE',
    'Operating System :: Microsoft :: Windows',
    'Programming Language :: Python', 'Topic :: Communications :: SMS text'
]

setup(
    name='SMSAPI',
    version=current_version,
Example #24
0
import sys
import os
from cx_Freeze import setup, Executable

#buildOptions = dict(include_files = ["../music/"])
#options = dict(build_exe = buildOptions)

options = {"include_files" : ["../music/", "../font/", "../data/", "../img/"]

}

setup(
    name = "exe",
    version = "0.1",
    description = "Jeux",
    executables = [Executable("main.py")],
    options={"build_exe":options}
)
Example #25
0
from cx_Freeze import setup, Executable

# On appelle la fonction setup
setup(
    name = "Projet_Voltaire_Hack",
    version = "1",
    description = "A project developped by BAALBAKYA",
    executables = [Executable("voltaire_project_hack.py")],
)
Example #26
0
        ("i18n/ts2_pl.qm", "i18n/ts2_pl.qm"),
        ("data/README", "data/README"),
    ],
    "include_msvcr": True,
}

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

setup(
    name=__APP_SHORT__,
    version=__VERSION__,
    description=__APP_LONG__,
    options={"build_exe": build_exe_options},
    executables=[Executable("start-ts2.py", base=base, targetName="ts2.exe", icon="images/ts2.ico")]
)

if sys.platform == "win32":
    print("############# Making the installer ###################")
    compiler = find_file('Compil32.exe', 'C:\\Program Files (x86)')
    if not compiler:
        compiler = find_file('Compil32.exe', 'C:\\Program Files')
    if compiler:
        print("Inno Setup Compiler found at: %s" % compiler)
        os.system("\"%s\" /cc setup.iss" % compiler)
    else:
        print("No Inno Setup Compiler found, exiting.")
        sys.exit()

print("############### End of building process ##############")
Example #27
0
     'Topic :: Software Development :: Version Control',
 ],
 options={
     "build_exe": build_exe_options,
     "bdist_msi": bdist_msi_options,
     #  cx_freeze + bdist_dumb fails on non-empty prefix
     "install": {
         "prefix": "."
     },
     #  freezed binary doesn't use source files, they are only for humans
     "install_lib": {
         "compile": False
     },
 },
 executables=[
     Executable(**executable_options),
 ],
 packages=[
     'meld',
     'meld.matchers',
     'meld.ui',
     'meld.vc',
 ],
 package_data={'meld': ['README', 'COPYING', 'NEWS']},
 scripts=['bin/meld'],
 data_files=[
     ('share/man/man1', ['meld.1']),
     ('share/doc/meld-' + meld.conf.__version__, ['COPYING', 'NEWS']),
     ('share/meld', ['data/meld.css']),
     ('share/meld/icons',
      glob.glob("data/icons/*.png") + glob.glob("data/icons/COPYING*")),
#     ## 'execute()' method is used to compile a 'SQL' statement
#     ## below statement is used to create tha 'datacamp' database
#
#     "GRANT ALL PRIVILEGES ON *.*TO 'root' @ '%' IDENTIFIED BY 'dbms';"
#     cursor.execute("GRANT ALL PRIVILEGES ON * . * TO '" + username + "'@'localhost'")
#     #databases= cursor.execute("show databases")
#
#     ## printing the list of databases
#     #print(databases)
#
# except Exception as e:
#     print(e)

import sys
from cx_Freeze import setup, Executable

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

options = {"build_exe": {"includes": "atexit"}}

executables = [Executable("face-recognition-layout.py", base=base)]

setup(
    name="simple_PyQt5",
    version="0.1",
    description="Sample cx_Freeze PyQt5 script",
    options=options,
    executables=executables,
)
Example #29
0
    "includes": ["requests", "urllib"],
    'excludes': [
        'collections.sys', 'collections._sre', 'collections._json',
        'collections._locale', 'collections._struct', 'collections.array',
        'collections._weakref'
    ],
}

setup(name="PESTERCHUM",
      version="3.41",
      description="P3ST3RCHUM",
      options={"build_exe": build_exe_options},
      executables=[
          Executable(
              "pesterchum.py",
              base=base,
              compress=True,
              icon="pesterchum.ico",
          ),
          Executable(
              "pesterchum_debug.py",
              base=base,
              compress=True,
              icon="pesterchum.ico",
          )
      ])

#Replace exe.win-amd64-2.7 with whatever it seems to generate as for you.
if sys.platform == "win32":
    os.rename("build/exe.win-amd64-2.7", "build/pesterchum")

shutil.copytree("themes", "build/pesterchum/themes")
Example #30
0
import sys
from cx_Freeze import setup, Executable

##Uncomment the following lines if it is a GUI application and you don't want the CONSOLE WINDOw.

base = None

if (sys.platform== "win32"):

	base = "win32GUI"

setup(
	name ="viper5.py" , 
	version = "0.1" , 
	description = "test" , 
	executables = [Executable("viper5.py",base=base)] 
       )

##The command line: c:\python32\python.exe setup.py build
##NOTE: first go to the python32 folder in command prompt.
##then use the command above.