Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/alicevision/meshroom.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Lanthony <yann.lanthony@gmail.com>2018-06-08 15:55:16 +0300
committerYann Lanthony <yann.lanthony@gmail.com>2018-06-08 15:55:16 +0300
commit4ebbc9d841f22547067a234fb3ae1ea30b1ec25c (patch)
tree1ec5b78b7c8c84d8b4b71ed51a42ce90ab2846c5 /setup.py
parente44bbb7f3ea9f6b3baa13ef41516515f6ec8db0e (diff)
[setup] use cx_Freeze to package application
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py39
1 files changed, 36 insertions, 3 deletions
diff --git a/setup.py b/setup.py
index 9b0efd9f..baabdd56 100644
--- a/setup.py
+++ b/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,
)