コード例 #1
0
ファイル: freeze_setup.py プロジェクト: pocean2001/uPyIDE
import shutil
from pyqode.core.api.syntax_highlighter import get_all_styles
from pyqode.python.backend import server

# from src.uPyIDE import __version__

sys.path.append(os.path.join(os.path.dirname(__file__), 'src'))
import uPyIDE

# automatically build when run without arguments
if len(sys.argv) == 1:
    sys.argv.append("build")

# collect pygments styles
pygments_styles = []
for s in get_all_styles():
    module = 'pygments.styles.%s' % s.replace('-', '_')
    try:
        __import__(module)
    except ImportError:
        pass
    else:
        pygments_styles.append(module)
print('pygment styles', pygments_styles)

# Build options
options = {
    "excludes": ["PyQt5.uic.port_v3", "tcltk", "jedi"],
    "namespace_packages": ["pyqode"],
    "include_msvcr":
    True,
コード例 #2
0
import os
import sys
from cx_Freeze import setup, Executable
import shutil
from pyqode.core.api.syntax_highlighter import get_all_styles
from pyqode.python.backend import server
from pynotepad import __version__


# automatically build when run without arguments
if len(sys.argv) == 1:
    sys.argv.append("build")

# collect pygments styles
pygments_styles = []
for s in get_all_styles():
    module = 'pygments.styles.%s' % s.replace('-', '_')
    try:
        __import__(module)
    except ImportError:
        pass
    else:
        pygments_styles.append(module)
print('pygment styles', pygments_styles)


# Build options
options = {
    "excludes": ["PyQt5.uic.port_v3", "tcltk", "jedi"],
    "namespace_packages": ["pyqode"],
    "include_msvcr": True,