mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-29 10:17:27 +02:00
[install] Minor update to setup.py
This commit is contained in:
parent
52032fdfc4
commit
4cfdc10368
1 changed files with 5 additions and 3 deletions
8
setup.py
8
setup.py
|
@ -6,6 +6,8 @@ from cx_Freeze import setup, Executable
|
||||||
import meshroom
|
import meshroom
|
||||||
|
|
||||||
|
|
||||||
|
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.
|
||||||
|
@ -32,7 +34,6 @@ class PlatformExecutable(Executable):
|
||||||
# get icon for platform if defined
|
# get icon for platform if defined
|
||||||
icon = icons.get(platform.system(), None) if icons else None
|
icon = icons.get(platform.system(), None) if icons else None
|
||||||
if platform.system() in (self.Linux, self.Darwin):
|
if platform.system() in (self.Linux, self.Darwin):
|
||||||
currentDir = os.path.dirname(os.path.abspath(__file__))
|
|
||||||
initScript = os.path.join(currentDir, "setupInitScriptUnix.py")
|
initScript = os.path.join(currentDir, "setupInitScriptUnix.py")
|
||||||
super(PlatformExecutable, self).__init__(script, initScript, base, targetName, icon, shortcutName,
|
super(PlatformExecutable, self).__init__(script, initScript, base, targetName, icon, shortcutName,
|
||||||
shortcutDir, copyright, trademarks)
|
shortcutDir, copyright, trademarks)
|
||||||
|
@ -46,11 +47,12 @@ build_exe_options = {
|
||||||
],
|
],
|
||||||
"include_files": ["CHANGES.md", "COPYING.md", "LICENSE-MPL2.md", "README.md"]
|
"include_files": ["CHANGES.md", "COPYING.md", "LICENSE-MPL2.md", "README.md"]
|
||||||
}
|
}
|
||||||
if os.path.isdir("tractor"):
|
if os.path.isdir(os.path.join(currentDir, "tractor")):
|
||||||
build_exe_options["packages"].append("tractor")
|
build_exe_options["packages"].append("tractor")
|
||||||
if os.path.isdir("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
|
||||||
|
|
Loading…
Add table
Reference in a new issue