Skip to content

Commit

Permalink
Use lib extension defined by numpy
Browse files Browse the repository at this point in the history
  • Loading branch information
z2v committed Jul 22, 2015
1 parent 26d5c0d commit 40ee26b
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions PyDSTool/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import os

from distutils.util import get_platform
from numpy.distutils import misc_util

from .errors import *
from .common import *
Expand Down Expand Up @@ -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()

0 comments on commit 40ee26b

Please sign in to comment.