mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-27 23:17:20 +02:00
[setup] use cx_Freeze to package application
This commit is contained in:
parent
e44bbb7f3e
commit
4ebbc9d841
1 changed files with 36 additions and 3 deletions
39
setup.py
39
setup.py
|
@ -1,7 +1,40 @@
|
|||
from setuptools import setup
|
||||
import sys
|
||||
|
||||
import setuptools # for bdist
|
||||
from cx_Freeze import setup, Executable
|
||||
|
||||
|
||||
def getExecutableExtension():
|
||||
""" Return file extension for an executable program based on current platform. """
|
||||
if sys.platform == "win32":
|
||||
return ".exe"
|
||||
if sys.platform == "darwin":
|
||||
return ".app"
|
||||
return ""
|
||||
|
||||
|
||||
build_exe_options = {
|
||||
# include dynamically loaded plugins
|
||||
"packages": ["meshroom.nodes", "meshroom.submitters"]
|
||||
}
|
||||
|
||||
executables = [
|
||||
Executable(
|
||||
"meshroom/ui/__main__.py",
|
||||
targetName="Meshroom" + getExecutableExtension(),
|
||||
),
|
||||
]
|
||||
|
||||
setup(
|
||||
name="Meshroom",
|
||||
description="Photogrammetry Software",
|
||||
requires=['psutil', 'pytest', 'PySide2']
|
||||
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=executables,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue