Meshroom/setup.py
Yann Lanthony f798050799 [setup] add ".ico" for Meshroom executable (Windows)
+ small rewrite of executable customization per platform
2018-08-03 17:24:04 +02:00

38 lines
977 B
Python

import sys
import setuptools # for bdist
from cx_Freeze import setup, Executable
build_exe_options = {
# include dynamically loaded plugins
"packages": ["meshroom.nodes", "meshroom.submitters"]
}
meshroomExe = Executable(
"meshroom/ui/__main__.py",
targetName="Meshroom",
)
# Customize executable for each target platform
if sys.platform.startswith("win32"):
# meshroomExe.base = "Win32GUI" # for no-console version
meshroomExe.targetName += ".exe"
meshroomExe.icon = "meshroom/ui/img/meshroom.ico"
elif sys.platform.startswith("darwin"):
meshroomExe.targetName += ".app"
# TODO: icon for Mac
setup(
name="Meshroom",
description="Meshroom",
install_requires=['psutil', 'pytest', 'PySide2'],
extras_require={
':python_version < "3.4"': [
'enum34',
],
},
version="1.0", # TODO: get correct version info
options={"build_exe": build_exe_options},
executables=[meshroomExe],
)