forked from ckh08045/AutoPercenty
178 lines
3.3 KiB
Python
178 lines
3.3 KiB
Python
import sys
|
|
from cx_Freeze import setup, Executable
|
|
|
|
# 실행 파일에 대한 정보
|
|
executables = [
|
|
Executable('main.py', # 패키징할 메인 스크립트 파일
|
|
base=None, # 실행 파일에 대한 기본 플랫폼. None으로 설정하여 기본값 사용
|
|
# targetName='AutoPercenty.exe'
|
|
), # 생성될 실행 파일의 이름
|
|
]
|
|
|
|
# 포함할 freeze 목록
|
|
freeze_list = [
|
|
'altgraph',
|
|
'annotated-types',
|
|
'ansicon',
|
|
'astor',
|
|
'attrdict',
|
|
'attrs',
|
|
'Babel',
|
|
'bce-python-sdk',
|
|
'beautifulsoup4',
|
|
'blessed',
|
|
'blinker',
|
|
'bs4',
|
|
'cachetools',
|
|
'certifi',
|
|
'cffi',
|
|
'chardet',
|
|
'charset-normalizer',
|
|
'click',
|
|
'colorama',
|
|
'contourpy',
|
|
'cryptography',
|
|
'cssselect',
|
|
'cssutils',
|
|
'cycler',
|
|
'Cython',
|
|
'decorator',
|
|
'dnspython',
|
|
'editor',
|
|
'et-xmlfile',
|
|
'fake-useragent',
|
|
'filelock',
|
|
'fire',
|
|
'Flask',
|
|
'flask-babel',
|
|
'fonttools',
|
|
'fsspec',
|
|
'future',
|
|
'google',
|
|
'google-ai-generativelanguage',
|
|
'google-api-core',
|
|
'google-auth',
|
|
'google-cloud',
|
|
'google-generativeai',
|
|
'googleapis-common-protos',
|
|
'googletrans',
|
|
'grpcio',
|
|
'grpcio-status',
|
|
'h11',
|
|
'h2',
|
|
'hpack',
|
|
'hstspreload',
|
|
'httpcore',
|
|
'httpx',
|
|
'hyperframe',
|
|
'idna',
|
|
'imageio',
|
|
'imgaug',
|
|
'importlib-metadata',
|
|
'importlib-resources',
|
|
'inquirer',
|
|
'install',
|
|
'itsdangerous',
|
|
'Jinja2',
|
|
'jinxed',
|
|
'kiwisolver',
|
|
'lazy_loader',
|
|
'lmdb',
|
|
'lxml',
|
|
'MarkupSafe',
|
|
'matplotlib',
|
|
'mpmath',
|
|
'networkx',
|
|
'numpy',
|
|
'opencv-contrib-python',
|
|
'opencv-python',
|
|
'opencv-python-headless',
|
|
'openpyxl',
|
|
'opt-einsum',
|
|
'outcome',
|
|
'packaging',
|
|
'paddleocr',
|
|
'paddlepaddle',
|
|
'pandas',
|
|
'pdf2docx',
|
|
'pefile',
|
|
'pillow',
|
|
'premailer',
|
|
'proto-plus',
|
|
'protobuf',
|
|
'psutil',
|
|
'pyasn1',
|
|
'pyasn1-modules',
|
|
'pyclipper',
|
|
'pycparser',
|
|
'pycryptodome',
|
|
'pydantic',
|
|
'pydantic_core',
|
|
'pyinstaller',
|
|
'pyinstaller-hooks-contrib',
|
|
'pymongo',
|
|
'PyMuPDF',
|
|
'pyparsing',
|
|
'PyQt5',
|
|
'PyQt5-Qt5',
|
|
'PyQt5-sip',
|
|
'PySocks',
|
|
'python-dateutil',
|
|
'python-docx',
|
|
'pytz',
|
|
'pywin32-ctypes',
|
|
'PyYAML',
|
|
'rapidfuzz',
|
|
'rarfile',
|
|
'readchar',
|
|
'requests',
|
|
'rfc3986',
|
|
'rsa',
|
|
'runs',
|
|
'safeIO',
|
|
'scikit-image',
|
|
'scipy',
|
|
'selenium',
|
|
'selenium-stealth',
|
|
'shapely',
|
|
'six',
|
|
'sniffio',
|
|
'sortedcontainers',
|
|
'soupsieve',
|
|
'sympy',
|
|
'termcolor',
|
|
'tifffile',
|
|
'torch',
|
|
'torchvision',
|
|
'tqdm',
|
|
'translatepy',
|
|
'trio',
|
|
'trio-websocket',
|
|
'typing_extensions',
|
|
'tzdata',
|
|
'urllib3',
|
|
'visualdl',
|
|
'wcwidth',
|
|
'Werkzeug',
|
|
'wsproto',
|
|
'xmod',
|
|
'zipp'
|
|
]
|
|
|
|
# 패키지 정보 설정
|
|
options = {
|
|
'build_exe': {
|
|
'includes': freeze_list, # 포함할 freeze 목록
|
|
'packages': ["annotated_types"] # 필요 시 여기에 추가 패키지를 포함
|
|
}
|
|
}
|
|
|
|
# 실행 파일 생성
|
|
setup(
|
|
name='AutoPercenty', # 프로그램 이름
|
|
version='1.0', # 버전
|
|
description='퍼센티 자동화 프로그램', # 설명
|
|
executables=executables, # 실행 파일 정보
|
|
options=options # 패키지 정보
|
|
)
|