Setup.py downloads incorrect SDK versions
E.g, it downloads and installs the Linux64 SDK on Linux-ppc64le ...
The following patch fixes this:
diff --git a/utils/pypi/gmsh/setup.py.in b/utils/pypi/gmsh/setup.py.in
index eb109dfc1..b2dfb6d1e 100644
--- a/utils/pypi/gmsh/setup.py.in
+++ b/utils/pypi/gmsh/setup.py.in
@@ -24,11 +24,11 @@ iversion = version + '' # installer version (add e.g. '.post1' for update)
system = platform.system().lower()
machine = platform.machine().lower()
plat = None
-plat = 'Linux64' if 'linux' in system and '64' in machine else plat
-plat = 'Linux32' if 'linux' in system and '64' not in machine else plat
+plat = 'Linux64' if 'linux' in system and 'x86_64' in machine else plat
+plat = 'Linux32' if 'linux' in system and 'i686' in machine else plat
plat = 'Windows64' if 'windows' in system and '64' in machine else plat
plat = 'Windows32' if 'windows' in system and '64' not in machine else plat
-plat = 'MacOSX' if 'darwin' in system else plat
+plat = 'MacOSX' if 'darwin' in system and 'x86_64' in machine else plat
if plat is None:
raise TypeError(
"Platform '{}' is not supported.".format(system+'-'+machine))
(might need to apply the same patch to utils/pypi/gmsh-dev/setup.py.in
)
By the way, is there a way to open merge requests for gmsh?