mirror of
https://github.com/Second-Hand-Friends/kleinanzeigen-bot.git
synced 2026-03-12 10:31:50 +01:00
85 lines
2.0 KiB
Python
85 lines
2.0 KiB
Python
# -*- mode: python ; coding: utf-8 -*-
|
|
"""
|
|
Copyright (C) 2022 Sebastian Thomschke and contributors
|
|
SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
PyInstaller config file, see https://pyinstaller.readthedocs.io/en/stable/spec-files.html
|
|
"""
|
|
from PyInstaller.utils.hooks import copy_metadata, collect_data_files
|
|
|
|
datas = [
|
|
* copy_metadata('kleinanzeigen_bot'), # required to get version info
|
|
* collect_data_files("kleinanzeigen_bot"), # embeds *.yaml files
|
|
* collect_data_files("selenium_stealth"), # embeds *.js files
|
|
]
|
|
|
|
excluded_modules = [
|
|
"_aix_support",
|
|
"argparse",
|
|
"backports",
|
|
"bz2",
|
|
"cryptography.hazmat",
|
|
"distutils",
|
|
"doctest",
|
|
"ftplib",
|
|
"lzma",
|
|
"pep517",
|
|
"pdb",
|
|
"pip",
|
|
"pydoc",
|
|
"pydoc_data",
|
|
"optparse",
|
|
"setuptools",
|
|
"six",
|
|
"statistics",
|
|
"test",
|
|
"unittest",
|
|
"xml.sax"
|
|
]
|
|
|
|
from sys import platform
|
|
if platform != "darwin":
|
|
excluded_modules.append("_osx_support")
|
|
|
|
block_cipher = None
|
|
|
|
analysis = Analysis(
|
|
['kleinanzeigen_bot/__main__.py'],
|
|
pathex = [],
|
|
binaries = [],
|
|
datas = datas,
|
|
hiddenimports = ['pkg_resources'],
|
|
hookspath = [],
|
|
hooksconfig = {},
|
|
runtime_hooks = [],
|
|
excludes = excluded_modules,
|
|
win_no_prefer_redirects = False,
|
|
win_private_assemblies = False,
|
|
cipher = block_cipher,
|
|
noarchive = False
|
|
)
|
|
|
|
pyz = PYZ(analysis.pure, analysis.zipped_data, cipher = block_cipher)
|
|
|
|
import shutil
|
|
|
|
exe = EXE(pyz,
|
|
analysis.scripts,
|
|
analysis.binaries,
|
|
analysis.zipfiles,
|
|
analysis.datas,
|
|
[],
|
|
name = 'kleinanzeigen-bot',
|
|
debug = False,
|
|
bootloader_ignore_signals = False,
|
|
strip = shutil.which("strip") is not None,
|
|
upx = shutil.which("upx") is not None,
|
|
upx_exclude = [],
|
|
runtime_tmpdir = None,
|
|
console = True,
|
|
disable_windowed_traceback = False,
|
|
target_arch = None,
|
|
codesign_identity = None,
|
|
entitlements_file = None
|
|
)
|