From 40ee26b70f426e23577de1f862f535802e68d9ce Mon Sep 17 00:00:00 2001 From: Vladimir Zakharov Date: Fri, 29 May 2015 15:24:32 +0300 Subject: [PATCH] Use lib extension defined by numpy --- PyDSTool/utils.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/PyDSTool/utils.py b/PyDSTool/utils.py index 570aa6d3..4e80afe3 100755 --- a/PyDSTool/utils.py +++ b/PyDSTool/utils.py @@ -6,6 +6,7 @@ import os from distutils.util import get_platform +from numpy.distutils import misc_util from .errors import * from .common import * @@ -756,11 +757,4 @@ def extra_arch_arg(arglist): def get_lib_extension(): - this = platform.system() - if this == 'Windows': - return ".pyd" - elif this not in ['Linux', 'IRIX', 'Solaris', 'SunOS', 'MacOS', 'Darwin', 'FreeBSD']: - print("Shared library extension not tested on this platform.") - print("If this process fails please report the errors to the") - print("developers.") - return ".so" + return misc_util.get_shared_lib_extension()