From: Dima Kogan Date: Thu, 28 Aug 2025 15:42:03 -0700 X-Dgit-Generated: 2025.1.0-1 899a9683fee6a50c3fb47a65292bcc84e415064f Subject: removed setup.py; Im not using it, but debhelper tries to use it if it is there --- diff --git a/setup.py b/setup.py deleted file mode 100644 index 8f7e5b4c..00000000 --- a/setup.py +++ /dev/null @@ -1,153 +0,0 @@ -import platform - -import os -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. - """ - - Windows = "Windows" - Linux = "Linux" - Darwin = "Darwin" - - exeExtensions = { - Windows: ".exe", - Linux: "", - Darwin: ".app" - } - - def __init__(self, script, initScript=None, base=None, targetName=None, icons=None, shortcutName=None, - shortcutDir=None, copyright=None, trademarks=None): - - # despite supposed to be optional, targetName is actually required on some configurations - if not targetName: - targetName = os.path.splitext(os.path.basename(script))[0] - # add platform extension to targetName - targetName += PlatformExecutable.exeExtensions[platform.system()] - # get icon for platform if defined - icon = icons.get(platform.system(), None) if icons else None - if platform.system() in (self.Linux, self.Darwin): - initScript = os.path.join(currentDir, "setupInitScriptUnix.py") - elif platform.system() is self.Windows: - initScript = os.path.join(currentDir, "setupInitScriptWindows.py") - super(PlatformExecutable, self).__init__(script, initScript, base, targetName, icon, shortcutName, - shortcutDir, copyright, trademarks) - - -build_exe_options = { - # include dynamically loaded plugins - "packages": ["meshroom.nodes", "meshroom.submitters"], - "includes": [ - "idna.idnadata", # Dependency needed by SketchfabUpload node, but not detected by cx_Freeze - "timeit", - "pickletools", - "modulefinder", - "cProfile", - "colorsys", - "xml.dom.minidom", - "http.cookies", - "filecmp", - "logging.handlers", - "cmath", - "numpy" - ], - "include_files": ["CHANGES.md", "COPYING.md", "LICENSE-MPL2.md", "README.md", "bin"] -} -if os.path.isdir(os.path.join(currentDir, "tractor")): - build_exe_options["packages"].append("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 - 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", - ] - }) - -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", - description="Meshroom", - install_requires=["psutil", "PySide6", "markdown"], - setup_requires=[ - "cx_Freeze" - ], - version=meshroom.__version__, - options={"build_exe": build_exe_options}, - executables=executables, -)