Files
hydra-launcher/python_rpc/setup.py
T
Chubby Granny Chaser 1a5525312b fix: offload process listing from main thread
Move native process enumeration into a worker so process watching does not block the main process, and add LF text-integrity checks for normalized files.
2026-04-27 19:57:18 +01:00

48 lines
1.2 KiB
Python

import os
import sys
from cx_Freeze import Executable, setup
def get_windows_openssl_includes():
if sys.platform != "win32":
return []
dll_dir = os.path.join(sys.base_prefix, "DLLs")
source_by_target = {
"libcrypto-1_1.dll": "libcrypto-1_1.dll",
"libcrypto-1_1-x64.dll": "libcrypto-1_1.dll",
"libssl-1_1.dll": "libssl-1_1.dll",
"libssl-1_1-x64.dll": "libssl-1_1.dll",
}
include_files = []
for target_name, source_name in source_by_target.items():
source_path = os.path.join(dll_dir, source_name)
if os.path.exists(source_path):
include_files.append((source_path, os.path.join("lib", target_name)))
return include_files
build_exe_options = {
"packages": ["libtorrent"],
"build_exe": "hydra-python-rpc",
"include_msvcr": True,
"include_files": get_windows_openssl_includes(),
}
setup(
name="hydra-python-rpc",
version="0.1",
description="Hydra",
options={"build_exe": build_exe_options},
executables=[
Executable(
"python_rpc/main.py",
target_name="hydra-python-rpc",
icon="build/icon.ico",
)
],
)