[Debian-med-packaging] New version of hyphy contains OSX-centric code
Andreas Tille
andreas at an3as.eu
Tue Sep 22 15:25:08 UTC 2015
Hi Steven,
I tried to build the latest version of hyphy (2.2.6) for Debian and
stumbled upon some Mac-centric code which lets the build fail on Linux.
I guess mac_ver() does not respond anything reasonable and I brute
force hacked it via
--- a/src/lib/setup.py
+++ b/src/lib/setup.py
@@ -51,8 +51,8 @@ includePaths += [linkPath, contribPath]
define_macros = [('__HYPHY_64__', None)] if '64' in architecture()[0] else []
# openmp on Mac OS X Lion is broken
-major, minor, patch = mac_ver()[0].split('.')
-openmp = ['-fopenmp'] if int(major) < 10 or (int(major) == 10 and int(minor) < 7) else []
+#major, minor, patch = mac_ver()[0].split('.')
+openmp = ['-fopenmp'] #if int(major) < 10 or (int(major) == 10 and int(minor) < 7) else []
setup(
name = 'HyPhy',
It would be great if you would use a more portable code that does not
fail on Linux machines.
Kind regards and thanks for providing hyphy as free software
Andreas.
--
http://fam-tille.de
More information about the Debian-med-packaging
mailing list