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-08-06 16:34:40 +0300
committerYann Lanthony <yann.lanthony@gmail.com>2018-08-06 21:27:11 +0300
commita05030f7fc8c3225c5640ce281dbfb03f1f9dd1c (patch)
tree5ce1242d3562fb9f9999bd0b46f3a881ce983492 /setup.py
parent4d19b388fde519c53906f742a5d208e1bc472522 (diff)
[setup] tweak included system libs on Linux
based on https://github.com/Ultimaker/cura-build/blob/master/packaging/setup_linux.py.in + add root "lib" folder to the LD_LIBRARY_PATH
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py71
1 files changed, 65 insertions, 6 deletions
diff --git a/setup.py b/setup.py
index e6a4f153..5e252914 100644
--- a/setup.py
+++ b/setup.py
@@ -5,12 +5,6 @@ import setuptools # for bdist
from cx_Freeze import setup, Executable
import meshroom
-build_exe_options = {
- # include dynamically loaded plugins
- "packages": ["meshroom.nodes", "meshroom.submitters"],
- "include_files": ['COPYING.md']
-}
-
class PlatformExecutable(Executable):
"""
@@ -41,6 +35,71 @@ class PlatformExecutable(Executable):
shortcutDir, copyright, trademarks)
+build_exe_options = {
+ # include dynamically loaded plugins
+ "packages": ["meshroom.nodes", "meshroom.submitters"],
+ "include_files": ['COPYING.md']
+}
+
+if platform.system() == PlatformExecutable.Linux:
+ # include required system libs
+ # from https://github.com/Ultimaker/cura-build/blob/master/packaging/setup_linux.py.in
+ build_exe_options.update({
+ "bin_path_includes": [
+ "/lib",
+ "/lib64",
+ "/usr/lib",
+ "/usr/lib64",
+ ],
+ "bin_includes": [
+ "libssl3",
+ "libssl",
+ "libcrypto",
+ ],
+ "bin_excludes": [
+ "linux-vdso.so",
+ "libpthread.so",
+ "libdl.so",
+ "librt.so",
+ "libstdc++.so",
+ "libm.so",
+ "libgcc_s.so",
+ "libc.so",
+ "ld-linux-x86-64.so",
+ "libz.so",
+ "libgcc_s.so",
+ "libglib-2",
+ "librt.so",
+ "libcap.so",
+ "libGL.so",
+ "libglapi.so",
+ "libXext.so",
+ "libXdamage.so",
+ "libXfixes.so",
+ "libX11-xcb.so",
+ "libX11.so",
+ "libxcb-glx.so",
+ "libxcb-dri2.so",
+ "libxcb.so",
+ "libXxf86vm.so",
+ "libdrm.so",
+ "libexpat.so",
+ "libXau.so",
+ "libglib-2.0.so",
+ "libgssapi_krb5.so",
+ "libgthread-2.0.so",
+ "libk5crypto.so",
+ "libkeyutils.so",
+ "libkrb5.so",
+ "libkrb5support.so",
+ "libresolv.so",
+ "libutil.so",
+ "libXrender.so",
+ "libcom_err.so",
+ "libgssapi_krb5.so",
+ ]
+ })
+
meshroomExe = PlatformExecutable(
"meshroom/ui/__main__.py",
targetName="Meshroom",