mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-29 10:17:27 +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
28
setup.py
28
setup.py
|
@ -5,9 +5,9 @@ import setuptools # for bdist
|
||||||
from cx_Freeze import setup, Executable
|
from cx_Freeze import setup, Executable
|
||||||
import meshroom
|
import meshroom
|
||||||
|
|
||||||
|
|
||||||
currentDir = os.path.dirname(os.path.abspath(__file__))
|
currentDir = os.path.dirname(os.path.abspath(__file__))
|
||||||
|
|
||||||
|
|
||||||
class PlatformExecutable(Executable):
|
class PlatformExecutable(Executable):
|
||||||
"""
|
"""
|
||||||
Extend cx_Freeze.Executable to handle platform variations.
|
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")):
|
if os.path.isdir(os.path.join(currentDir, "simpleFarm")):
|
||||||
build_exe_options["packages"].append("simpleFarm")
|
build_exe_options["packages"].append("simpleFarm")
|
||||||
|
|
||||||
|
|
||||||
if platform.system() == PlatformExecutable.Linux:
|
if platform.system() == PlatformExecutable.Linux:
|
||||||
# include required system libs
|
# include required system libs
|
||||||
# from https://github.com/Ultimaker/cura-build/blob/master/packaging/setup_linux.py.in
|
# 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(
|
executables = [
|
||||||
|
# GUI
|
||||||
|
PlatformExecutable(
|
||||||
"meshroom/ui/__main__.py",
|
"meshroom/ui/__main__.py",
|
||||||
targetName="Meshroom",
|
targetName="Meshroom",
|
||||||
icons={PlatformExecutable.Windows: "meshroom/ui/img/meshroom.ico"}
|
icons={PlatformExecutable.Windows: "meshroom/ui/img/meshroom.ico"}
|
||||||
)
|
),
|
||||||
|
# Command line
|
||||||
meshroomPhotog = PlatformExecutable(
|
PlatformExecutable("bin/meshroom_batch"),
|
||||||
"bin/meshroom_batch"
|
PlatformExecutable("bin/meshroom_compute"),
|
||||||
)
|
PlatformExecutable("bin/meshroom_newNodeType"),
|
||||||
|
PlatformExecutable("bin/meshroom_statistics"),
|
||||||
meshroomCompute = PlatformExecutable(
|
PlatformExecutable("bin/meshroom_status"),
|
||||||
"bin/meshroom_compute"
|
PlatformExecutable("bin/meshroom_submit"),
|
||||||
)
|
]
|
||||||
|
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="Meshroom",
|
name="Meshroom",
|
||||||
|
@ -141,5 +141,5 @@ setup(
|
||||||
],
|
],
|
||||||
version=meshroom.__version__,
|
version=meshroom.__version__,
|
||||||
options={"build_exe": build_exe_options},
|
options={"build_exe": build_exe_options},
|
||||||
executables=[meshroomExe, meshroomPhotog, meshroomCompute],
|
executables=executables,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue