mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-28 17:57:16 +02:00
[setup] add all scripts in bin/ as executables
This commit is contained in:
parent
18be350e6f
commit
68ae588703
1 changed files with 17 additions and 17 deletions
34
setup.py
34
setup.py
|
@ -5,9 +5,9 @@ import setuptools # for bdist
|
|||
from cx_Freeze import setup, Executable
|
||||
import meshroom
|
||||
|
||||
|
||||
currentDir = os.path.dirname(os.path.abspath(__file__))
|
||||
|
||||
|
||||
class PlatformExecutable(Executable):
|
||||
"""
|
||||
Extend cx_Freeze.Executable to handle platform variations.
|
||||
|
@ -52,7 +52,6 @@ if os.path.isdir(os.path.join(currentDir, "tractor")):
|
|||
if os.path.isdir(os.path.join(currentDir, "simpleFarm")):
|
||||
build_exe_options["packages"].append("simpleFarm")
|
||||
|
||||
|
||||
if platform.system() == PlatformExecutable.Linux:
|
||||
# include required system libs
|
||||
# from https://github.com/Ultimaker/cura-build/blob/master/packaging/setup_linux.py.in
|
||||
|
@ -112,20 +111,21 @@ if platform.system() == PlatformExecutable.Linux:
|
|||
]
|
||||
})
|
||||
|
||||
meshroomExe = PlatformExecutable(
|
||||
"meshroom/ui/__main__.py",
|
||||
targetName="Meshroom",
|
||||
icons={PlatformExecutable.Windows: "meshroom/ui/img/meshroom.ico"}
|
||||
)
|
||||
|
||||
meshroomPhotog = PlatformExecutable(
|
||||
"bin/meshroom_batch"
|
||||
)
|
||||
|
||||
meshroomCompute = PlatformExecutable(
|
||||
"bin/meshroom_compute"
|
||||
)
|
||||
|
||||
executables = [
|
||||
# GUI
|
||||
PlatformExecutable(
|
||||
"meshroom/ui/__main__.py",
|
||||
targetName="Meshroom",
|
||||
icons={PlatformExecutable.Windows: "meshroom/ui/img/meshroom.ico"}
|
||||
),
|
||||
# Command line
|
||||
PlatformExecutable("bin/meshroom_batch"),
|
||||
PlatformExecutable("bin/meshroom_compute"),
|
||||
PlatformExecutable("bin/meshroom_newNodeType"),
|
||||
PlatformExecutable("bin/meshroom_statistics"),
|
||||
PlatformExecutable("bin/meshroom_status"),
|
||||
PlatformExecutable("bin/meshroom_submit"),
|
||||
]
|
||||
|
||||
setup(
|
||||
name="Meshroom",
|
||||
|
@ -141,5 +141,5 @@ setup(
|
|||
],
|
||||
version=meshroom.__version__,
|
||||
options={"build_exe": build_exe_options},
|
||||
executables=[meshroomExe, meshroomPhotog, meshroomCompute],
|
||||
executables=executables,
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue