Exemple #1
0
# -*- coding: utf-8 -*-
"""
Created on Wed Oct 08 22:20:28 2014

@author: lg
"""

import sys
from cx_Freeze import setup, Executable

# Dependencies are automatically detected, but it might need fine tuning.
build_exe_options = {"packages": ["os", "glob2"], "excludes": ["tkinter"]}

# 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="pyaide",
      version="0.1",
      description="My GUI application!",
      options={"build_exe": build_exe_options},
      executables=[Executable("pyaide.py", base=base)])
Exemple #2
0
# 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

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

options = {
    'build_exe': {
        'includes': 'atexit',
        'include_msvcr':True
    }
}
executables = [
    Executable('EDU-Classeur.py',
               base=base,
               icon="logo-Classuer.ico")
]

setup(name='EDU-Classeur',
      version='2.0',
      description='Gestionnaire de classe',
      options=options,
      executables=executables
      )
application_title = "Inventory"
main_python_file = "index.py"

import sys

from cx_Freeze import setup, Executable

base = None

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

includes = []
include_files = ['themes']

setup(name=application_title,
      version="0.1",
      description="inventory",
      options={
          "build_exe": {
              "includes": includes,
              "include_files": include_files
          }
      },
      executables=[Executable(main_python_file, base=base)])
Exemple #4
0
import sys
from cx_Freeze import setup, Executable

build_exe_options = {"packages": ["time", "pygame", "math", "random"]}

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

setup(name="snake",
      version="0.1",
      keywords="snake",
      license="Python Software Foundation License",
      maintainer="Siddharth Sahay",
      maintainer_email="*****@*****.**",
      description="Snake!",
      options={"build_exe": build_exe_options},
      executables=[Executable("snake.py", base=base)])
Exemple #5
0
        INCLUDE_FILES.append((language_dir, target_dir))

OPTIONS = {
    'build_exe': {
        'includes': ['gi', 'numbers', 'win32com.client', 'win32com.server'],
        'packages': [
            'gi', 'cffi', 'cryptography', 'google', 'axolotl', 'pkg_resources',
            'Crypto', 'pycparser', 'keyring', 'PIL', 'idna', 'qrcode',
            'certifi'
        ],
        'include_files':
        INCLUDE_FILES,
    }
}

setup(
    name='Gajim',
    version='0.16.10',
    description='A full featured Jabber client',
    author='Gajim Development Team',
    url='http://gajim.org/',
    download_url='http://gajim.org/downloads.php',
    license='GPL',
    options=OPTIONS,
    executables=[
        Executable('src/gajim.py',
                   icon='data/pixmaps/gajim.ico',
                   base='Win32GUI')
    ],
)
Exemple #6
0
if sys.platform == "win32":
    base = "Win32GUI"

additional_imports = [
    'numpy.core._methods', 'numpy.lib.format',
    "matplotlib.backends.backend_tkagg", 'scipy.spatial', 'tkinter'
]
#'TKinter', 'six']

packages = ['matplotlib', 'scipy', 'scipy.spatial', 'tkinter']

include_files = [r"C:\Python34\DLLs\tcl86t.dll", r"C:\Python34\DLLs\tk86t.dll"]

os.environ['TCL_LIBRARY'] = r'C:\Python34\tcl\tcl8.6'
os.environ['TK_LIBRARY'] = r'C:\Python34\tcl\tk8.6'

setup(
    name="BinConverterGUI",
    version="1.0",
    description=
    "BinConverterGUI converts the raw .bin files produced by DacqUSB to the normal Tint format."
    + "This will allow the user to select a threshold to use retroactively.",
    options={
        "build_exe": {
            'packages': packages,
            "include_files": include_files,
            'includes': additional_imports
        }
    },
    executables=[Executable("BinConverterGUI.py", base=base)])
Exemple #7
0
 def _getExecutable(self):
     return Executable("runoutwiker.py",
                       icon="images/outwiker.ico",
                       targetName="outwiker")
Exemple #8
0
from cx_Freeze import setup, Executable

additional_mods = [
    'numpy.core._methods', 'numpy.lib.format',
    'scipy.sparse.csgraph._validation', 'scipy.spatial.ckdtree'
]

setup(name="noteshrink",
      version="0.1",
      description="noteshrink",
      options={'build_exe': {
          'includes': additional_mods
      }},
      executables=[Executable("noteshrink.py")])
Exemple #9
0
#!/usr/bin/env python3

import os
import re

from cx_Freeze import setup, Executable

with open(os.path.join("r128gain", "__init__.py"), "rt") as f:
    version = re.search("__version__ = \"([^\"]+)\"", f.read()).group(1)

build_exe_options = {"optimize": 0, "excludes": ["tkinter"]}

setup(name="r128gain",
      version=version,
      author="desbma",
      packages=["r128gain"],
      options={"build_exe": build_exe_options},
      executables=[
          Executable(os.path.join("r128gain", "__main__.py"),
                     targetName="r128gain.exe")
      ])
Exemple #10
0
import sys
base = 'Win32GUI' if sys.platform == 'win32' else None

includes = []
include_files = [
    r"C:\Progra~1\Python36-32\Lib\site-packages\numpy",
    r"C:\Progra~1\Python36-32\DLLs\tcl86t.dll",
    r"F:\PyTool\postbuildplat12\config.ini",
    r"F:\PyTool\postbuildplat12\image",
    r"C:\Progra~1\Python36-32\DLLs\tk86t.dll"
]

executables = [
    Executable(script=r'F:\PyTool\postbuildplat12\main.py',
               base=base,
               targetName='Postbuild.exe',
               icon="image/icon6.ico")
]

setup(
    name='Postbuild',
    version='1.0',
    author="Kanwairen",
    description='Tool',
    # options = dict(build_exe = buildOptions),
    executables=executables,
    # options={"build_exe": {"includes": includes, "include_files": include_files, "excludes": ["PyQt5", "numpy", "notebook"], "optimize":2, "compressed":1}})
    options={
        "build_exe":
        dict(includes=includes,
             include_files=include_files,
Exemple #11
0
import sys
from cx_Freeze import setup, Executable
#LAS LIBRERIAS SE INSTALAN CON OTRO.PY
include_files = [
    'Acupunator.py', 'requirements.txt', 'setup.py', 'templates/', 'img/',
    'packages/'
]
setup(name="Acupunator",
      version="1.0",
      description="Sistema de realidad virtual para estudiar acupuntura",
      options={'build_exe': {
          'include_files': include_files
      }},
      author='Rodrigo García Ávila, Luis Enrique Hernández Tapia',
      executables=[
          Executable("Acupunator.py", base="Win32GUI", icon="acupunator.ico")
      ])
Exemple #12
0
        ".",
    ),
    (
        "SampleFileGenerator",
        "ProgramMenuFolder",
        "Generator",
    ),
]

msi_data = {
    "Directory": directory_table,
}

setup(name="sample_file_generator",
      version="1.0.0",
      description="My Calculator",
      options={
          "build_exe": build_exe_options,
          'bdist_msi': {
              'data': msi_data
          }
      },
      executables=[
          Executable(
              "sample_file_generator.py",
              base=base,
              shortcutName="Generator",
              shortcutDir="SampleFileGenerator",
          )
      ])
Exemple #13
0
            'language_level': '3',
        }
    },
}

if len(sys.argv) > 1 and sys.argv[1] in ("build", "build_exe"):
    from cx_Freeze import setup, Executable

    options['build_exe'] = {
        'packages': packages,
        'excludes': ['test', 'unittest'],
        'includes': includes,
        'include_files': ['resources/'],
        "path": [cython_output_dir] + sys.path,
    }
    executables = [Executable("main.py", targetName=G.APP_NAME + (".exe" if sys.platform == 'win32' else '')), Executable("server.py")]

else:
    from distutils.core import setup

    executables = []

setup(
    name=G.APP_NAME,
    cmdclass={'build_ext': build_ext},
    options=options,
    requires=['pyglet', 'Cython'],
    version=G.APP_VERSION,
    description="",
    ext_modules=ext_modules,
    executables=executables,
Exemple #14
0
import sys
from cx_Freeze import setup, Executable
import os.path
PYTHON_INSTALL_DIR = os.path.dirname(os.path.dirname(os.__file__))
os.environ['TCL_LIBRARY'] = os.path.join(PYTHON_INSTALL_DIR, 'tcl', 'tcl8.6')
os.environ['TK_LIBRARY'] = os.path.join(PYTHON_INSTALL_DIR, 'tcl', 'tk8.6')

# Dependencies are automatically detected, but it might need fine tuning.
build_exe_options = {
    "packages": ["os"],
    'include_files': ['tcl86t.dll', 'tk86t.dll']
}

# 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="Melody",
      version="0.1",
      description="Music Player!",
      options={"build_exe": build_exe_options},
      executables=[Executable("music player.py", base=base)])
Exemple #15
0
import sys
from cx_Freeze import setup, Executable

base = None 
if sys.platform == "win32":
    base = "Win32GUI"
   
exe = Executable(script="codewords.py", base=base)
 
include_files=["resources/music", "resources/graphics", "resources/sound",
                     "resources/fonts"]
includes=[]
excludes=[]
packages=[]

setup(version="0.1",
         description="A Python Game",
         author="iminurnamez",
         name="Code Words",
         options={"build_exe": {"includes": includes, "include_files": include_files, "packages": packages, "excludes": excludes}},
         executables=[exe])

Exemple #16
0
     'Intended Audience :: System Administrators',
     'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)',
     'Programming Language :: Python',
     'Topic :: Desktop Environment :: Gnome',
     'Topic :: Software Development',
     'Topic :: Software Development :: Version Control',
 ],
 options={
     "build_exe": build_exe_options,
     "bdist_msi": bdist_msi_options,
 },
 executables=[
     Executable(
         "bin/meld",
         base="Win32GUI",
         icon="data/icons/meld.ico",
         targetName="Meld.exe",
         shortcutName="Meld",
         shortcutDir="ProgramMenuFolder",
     ),
 ],
 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']),
Exemple #17
0
use_cx_freeze = False
for cmd in ["bdist_msi"]:
    if cmd in sys.argv:
        use_cx_freeze = True
        break

if use_cx_freeze:
    try:
        from cx_Freeze import setup, Executable  # noqa re-import setup
        executables = [
            Executable(
                script="ftpsync/pyftpsync.py",
                base=None,
                # base="Win32GUI",
                targetName="pyftpsync.exe",
                # icon="docs/logo.ico",
                shortcutName="pyftpsync",
                # copyright="(c) 2012-2018 Martin Wendt",  # requires cx_Freeze PR#94
                # trademarks="...",
            )
        ]
    except ImportError:
        # tox has problems to install cx_Freeze to it's venvs, but it is not needed
        # for the tests anyway
        print(
            "Could not import cx_Freeze; 'build' and 'bdist' commands will not be available."
        )
        print("See https://pypi.python.org/pypi/cx_Freeze")
        executables = []
else:
    print(
Exemple #18
0
import sys
from cx_Freeze import setup, Executable

# Dependencies are automatically detected, but it might need fine tuning.
build_exe_options = {
    "packages": ["re"],
    "packages": ["docx"],
    "packages": ["lxml"],
    "excludes": ["tkinter"]
}
#build_exe_options = {"excludes": ["tkinter"]}

# 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="guifoo",
      version="0.1",
      description="My GUI application!",
      options={"build_exe": build_exe_options},
      executables=[Executable("make_preeti_docx.py", base=base)])
Exemple #19
0
 def _getExecutable(self):
     return Executable("runoutwiker.py",
                       base='Win32GUI',
                       icon="images/outwiker.ico",
                       targetName="outwiker.exe")
Exemple #20
0
import sys
from cx_Freeze import setup, Executable

# Dependencies are automatically detected, but it might need fine tuning.
build_exe_options = {"packages": ["os"], 'excludes': ['collections.abc']}

# GUI applications require a different base on Windows (the default is for a
# console application).
base = None
if sys.platform == "win32":
    base = "Win32GUI"

target = Executable(script="pydef_main_window.py",
                    base=base,
                    compress=False,
                    copyDependentFiles=True,
                    appendScriptToExe=True,
                    appendScriptToLibrary=False,
                    icon="icon.ico")

setup(name="Python for Defect Energy Formation",
      version="1.0.0",
      description="Python for Defect Energy Formation",
      author="E. Pean",
      options={"build_exe": build_exe_options},
      executables=[target])
Exemple #21
0
import sys

from cx_Freeze import setup, Executable
from ts2 import utils

build_exe_options = {
    "includes": ["atexit"],
    "packages": ["re", "sqlite3"],
    "include_files":
    [("data/drain.ts2", "simulations/drain.ts2"),
     ("data/liverpool-st.ts2", "simulations/liverpool-st.ts2"),
     ("README.md", "doc/README.txt"), ("README_fr.md", "doc/README_fr.txt"),
     ("COPYING", "doc/COPYING.txt"), ("i18n/ts2_fr.qm", "i18n/ts2_fr.qm")],
    "include_msvcr":
    True,
    "icon":
    "images/ts2.ico"
}

base = None

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

setup(name="ts2",
      version=utils.TS2_VERSION,
      description="Train Signalling Simulation",
      options={"build_exe": build_exe_options},
      executables=[Executable("ts2.py", base=base)])
Exemple #22
0
import sys
from cx_Freeze import setup, Executable

base = None
icon = "src/favicon.ico"
if sys.platform == 'win32':
    base = 'Win32GUI'

if len(sys.argv) > 2:
    if sys.argv[2] == "c":
        base = ""
    sys.argv.remove("c")

includefiles = [
    "src/favicon.ico", "src/Readme.txt", "src/ProgramFiles",
    "src/OfficialFiles", "src/Examples", "src/OJ Palette.png"
]
packages = ["Tkinter", "tkFileDialog"]
executables = [Executable('src/OJEdit.py', base=base, icon=icon)]

build_exe_options = {"packages": ["numpy"], "include_files": includefiles}

setup(
    name='OJ Edit',
    version='2.1.1',
    description='OJ Editing Tool',
    executables=executables,
    options={"build_exe": build_exe_options},
)
Exemple #23
0
        "Source": "https://github.com/nabla-c0d3/sslyze",
        "Changelog": "https://github.com/nabla-c0d3/sslyze/releases",
        "Documentation": "https://nabla-c0d3.github.io/sslyze/documentation",
    },
    # Package info
    packages=find_packages(include=["sslyze", "sslyze.*"]),
    package_data={
        "sslyze": ["py.typed"],
        "sslyze.plugins.certificate_info.trust_stores":
        ["pem_files/*.pem", "pem_files/*.yaml"],
    },
    entry_points={"console_scripts": ["sslyze = sslyze.__main__:main"]},
    # Dependencies
    install_requires=[
        "nassl>=4.0.0,<5.0.0",
        "cryptography>=2.6,<3.5",
        "tls-parser>=1.2.2,<1.3.0",
        "typing_extensions ; python_version<'3.8'",  # To remove when we drop support for Python 3.7
    ],
    # cx_freeze info for Windows builds with Python embedded
    options={
        "build_exe": {
            "packages": ["cffi", "cryptography"],
            "include_files": get_include_files()
        }
    },
    executables=[
        Executable(path.join("sslyze", "__main__.py"), targetName="sslyze.exe")
    ],
)
Exemple #24
0
import sys
import os
from cx_Freeze import setup, Executable
import matplotlib

# Dependencies are automatically detected, but it might need fine tuning.

build_exe_options = {
    "packages":
    ["os", "sys", "pickle", "datetime", "numpy", "matplotlib", "PIL", "math"],
    "include_files": ["includes\images\oldLogoSDJ.jpeg"],
    "includes": ["tkinter"],
    "optimize":
    1
}

# 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="MonSuperProgramme",
      version="1.7.5",
      description="Calcule les coeficients d'une equation du second degre",
      options={"build_exe": build_exe_options},
      executables=[Executable("IHMSecondaryEquation.py", base=base)])
Exemple #25
0
import sys
from cx_Freeze import setup, Executable

include = ["autorun.inf", ".env"]
base = None

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

setup(
    name="simpleGame",
    version="0.1",
    description="simple game",
    options={"build_exe": {
        "include_files": include
    }},
    executables=[Executable("client.py", base=base)],
)
Exemple #26
0
import random
from time import sleep
from os import system, name
import sys
from cx_Freeze import setup, Executable

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

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

buildOptions = dict(packages=[], includes=[], include_files=[], excludes=[])

setup(name="Jogo da Forca",
      version="1.0",
      description="Jogo da Forca",
      options=dict(build_exe=buildOptions),
      executables=executables)
Exemple #27
0
import sys
from cx_Freeze import setup, Executable

VERSION = '1.0'

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

executables = [
    Executable(
        "ISC_PY_Program.py",
        base=base,
        targetName='DLP-NIR-SDK-PY.exe',
        copyright="Copyright (C) 2019 InnoSpectra Corporation",
    )
]
build_exe_options = {
    'includes': [
        'Forms/config_ui', 'Forms/devicelist', 'Forms/devices_ui',
        'Forms/main_ui', 'Forms/mainwindow', 'Forms/scanconfigdialog',
        'SDK/device', 'SDK/scan', 'SDK/scanconfig'
    ],
    'include_files': [
        'SDK/hidapi.dll', 'SDK/iscpy.cp36-win32.pyd', 'SDK/iscpy.pyd',
        'SDK/libdlpspec.dll', 'SDK/lmdfu.dll', 'SDK/lmusbdll.dll',
        'ISC_Logo.ico'
    ]
}

# build_msi_options = {'add_to_path': False,
Exemple #28
0
from cx_Freeze import setup, Executable

executables = [
    Executable('sys_security.py',
               targetName='sys_security.exe',
               base='Win32GUI')
]
include_files = ['data']

options = {
    'build_exe': {
        'include_msvcr': True,
        'include_files': include_files,
    }
}

setup(name='sys_security',
      version='0.0.1',
      description='Sys_security - lab 1,2',
      executables=executables,
      options=options)
Exemple #29
0
from cx_Freeze import setup, Executable
import shutil
import os

# Dependencies are automatically detected, but it might need
# fine tuning.
buildOptions = dict(packages=["dns"],
                    excludes=[],
                    include_files=['resolvers.txt', 'names.txt', 'LICENSE'])

executables = [Executable('subbrute.py', 'Console')]

setup(name='SubBrute',
      version='1.1',
      description='A fast and accurate subdomain enumeration tool.',
      options=dict(build_exe=buildOptions),
      executables=executables)

#copy from the build directory to ./windows/
src = "build\\exe.win32-3.4\\"
dest = "windows"
src_files = os.listdir(src)
for file_name in src_files:
    full_file_name = os.path.join(src, file_name)
    if (os.path.isfile(full_file_name)):
        shutil.copy(full_file_name, dest)
Exemple #30
0
import sys
from cx_Freeze import setup, Executable

# Dependencies are automatically detected, but it might need
# fine tuning.
build_exe_options = {"packages": ["os", "sys"], "excludes": ["tkinter"]}

# GUI applications require a different base on Windows (the default is for a
# console application).
base = None
if sys.platform == "win32":
    base = "win32gui"
print(base)
setup(name="小型编译器",
      version="1.0",
      description="小型编译器",
      options={"build_exe": build_exe_options},
      executables=[Executable("main_ui.py", base=base,
                              targetName='compiler.exe',
                              icon='images/app.ico'
                              )
                   ])